Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that linux cannot restart the php service

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to solve the problem that linux cannot restart the php service. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The solution that linux cannot restart the php service is as follows: 1. Close php-fpm;2 through "/ etc/init.d/php-fpm stop" and join boot via "echo" nohup / usr/sbin/php-fpm-R > / dev/....

The operating environment of this article: centos 6.5 system, PHP7.1 version, DELL G3 computer

Solution to the problem that root cannot start php-fpm in linux:

Centos 6.564-bit machine, with yum installed php-fpm, due to special reasons need to use the root account to start php-fpm, but found that it can not be started.

1. Modify user and group

# vim / etc/php-fpm.d/www.conf; RPM: apache Choosed to be able to access some dir as httpd user = root / / changed to root; RPM: Keep a group allowed to write in log dir. Group = root / / changed to root

When restarting php-fpm, the following error is reported

ERROR: [pool www] please specify user and group other than root [09-Jan-2015 16:54:26] ERROR: FPM initialization failed

Solution:

# / etc/init.d/php-fpm stop / / close php-fpm # nohup / usr/sbin/php-fpm-R > / dev/null 2 > & 1 & # echo "nohup / usr/sbin/php-fpm-R > / dev/null 2 > & 1 &" > > / etc/rc.local / / join boot

Thank you for reading! This is the end of this article on "how to solve the problem that linux cannot restart php service". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report