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".
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version
Visual web development tools

Atom editor mac version download
The most popular open source editor
