Home  >  Article  >  Backend Development  >  Problems encountered when running php-fpm on linux

Problems encountered when running php-fpm on linux

不言
不言Original
2018-04-04 13:54:352660browse

This article is to share with you how to solve the problems encountered when running PHP-fpm on Linux. Friends in need can refer to it

It can be run as mentioned above, but three errors will be reported.

1.ERROR: failed to open error_log (/home/homework/php/var/log/php-fpm.log):

I found that there is no such file in my folder. Just add it.

2.ERROR: failed to open configuration file '/home/homework/php/etc/php-fpm.conf': No such file or directory

Under php/etc




  1. ##cp php-fpm.conf.default php-fpm.conf

Just make a copy.

3.ERROR: [pool www] cannot get uid for user 'www'

Enter the configuration file copied above

Change user and group from www to Nobody can


Related recommendations:

The detailed process of php version switching and common php-fpm FAQs in the online Linux environment

php-fpm start and stop exception handling

The above is the detailed content of Problems encountered when running php-fpm on linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn