Home > Backend Development > PHP Problem > 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?

藏色散人
Release: 2023-03-17 12:54:01
Original
1904 people have browsed it

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
Copy after login

Edit this configuration file:

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

Try to start again:

/usr/local/php/sbin/php-fpm
Copy after login
Copy after login

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
Copy after login

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

groupadd www
useradd -g www www
Copy after login

Start again:

/usr/local/php/sbin/php-fpm
Copy after login
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template