Home  >  Article  >  Backend Development  >  What should I do if there is no fpm after php is compiled?

What should I do if there is no fpm after php is compiled?

藏色散人
藏色散人Original
2022-11-10 10:13:211727browse

Solution to the problem that fpm does not exist after php is compiled: 1. Go to the "/usr/local/php/etc" directory and copy "php-fpm.conf.default" to "php-fpm.conf"; 2. Edit the configuration file; 3. Restart "php-fpm".

What should I do if there is no fpm after php is compiled?

The operating environment of this tutorial: Windows 7 system, PHP version 8.1, Dell G3 computer.

What should I do if there is no fpm after php is compiled?

The error message says that php-fpm.conf cannot be found

It turns out that php-fpm.conf is not there yet. We go to the /usr/local/php/etc directory and change php -Copy fpm.conf.default into php-fpm.conf

cd /usr/local/php/etc/
cp php-fpm.conf.default php-fpm.conf

Edit this configuration file:

vim php-fpm.conf
 
pid = run/php-fpm.pid
user = www
group = www

Try to start again:

/usr/local/php/sbin/php-fpm

An error is reported again saying that the www user does not exist:

[26-Feb-2015 15:57:38] ERROR: [pool www] cannot get uid for user 'www'
[26-Feb-2015 15:57:38] ERROR: FPM initialization failed

Okay, let’s create a new www user group:

groupadd www
useradd -g www www

Start again:

/usr/local/php/sbin/php-fpm

There is no output, indicating success! ! !

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What should I do if there is no fpm after php is compiled?. 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