Not found /var/run/php-fpm/php7.4-fpm.sock or /var/run/php-fpm/
P粉036800074
P粉036800074 2023-10-30 20:36:23
0
1
562

Using: Ubuntu 20.04

PHP startup failedbecause /var/run/php-fpm/php7.4-fpm.sock and /var/run/php-fpm/php7.4-fpm.pidare missing.

The details are as follows: (Feedback fromsystemctl status php7.4-fpm.service)

● php-fpm7.4[3465899]: Error: Unable to bind Listening socket at address "/var/run/php-fpm/php7.5-fpm.sock": There is no such thing File or directory (2)

● php-fpm7.4[3465899]: Error: Unable to bind Listening socket at address "/run/php-fpm/php7.5-fpm.pid": There is no such thing File or directory (2)

I checked "/etc/php/7.4/fpm/pool.d/www.conf" but there is the following code in the file:

;li sten = 127.0.0.1:9000 lis ten = /var/run/php-fpm/php7.4-fpm.sock


P粉036800074
P粉036800074

reply all (1)
P粉894008490

First problem: It is searching forphp7.5-fpm.sockinstead ofphp7.4-fpm.sock

But since you confirmed that your/etc/php/7.4/fpm/pool.d/www.confdoes havelisten = /var/run/php-fpm/php7.4 -fpm.sock, I assumephp7.5-fpm.socknaming has been processed/adjusted.

Second Problem: When your FPM is running, the.sockfile does not exist. To resolve this issue, run the following command:

mkdir -p /var/run/php-fpm touch /var/run/php-fpm/php7.4-fpm.sock

Notice: If your permission is denied, you should usesudoto execute the above command.

Then restart your PHP-FPM service.

Hope it helps!

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!