search
HomeBackend DevelopmentPHP ProblemWhat should I do if there is no fpm after php is compiled?

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Article

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor