Author Topic: PHP FPM 7.3 Error centOS  (Read 5806 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP FPM 7.3 Error centOS
« on: March 01, 2022, 03:55:51 AM »


I don't understand what is happening, I install wordpress with Nginx on CentOS installed the CWP, spend an hour, hours and the file with the username .sock that is in /opt/alt/php-fpm73/var/sockets and deletes, which causes a 502, I have to change to apache because I can't use nginx, could someone help me?


connect() to unix:/opt/alt/php-fpm73/usr/var/sockets/djflakf1.sock failed (2: No such file or directory) while connecting to upstream,

Offline
***
Re: PHP FPM 7.3 Error centOS
« Reply #1 on: March 01, 2022, 06:36:26 PM »
The picture says that you haven't clicked on "alt" folder. So, click it.

Edit:
Nevermind, I can see the issue
Path /opt/alt/php-fpm*/var/socket does not exist.
It should be /opt/alt/php-fpm*/usr/var/socket

Have you modified the php-fpm template or conf files recently?
It should be like this:
Code: [Select]
[%backend%]
listen = /opt/alt/%phpfpmver%/usr/var/sockets/%backend%.sock
listen.allowed_clients = 127.0.0.1
....
....
« Last Edit: March 01, 2022, 06:46:25 PM by iraqiboy90 »

Offline
*
Re: PHP FPM 7.3 Error centOS
« Reply #2 on: March 01, 2022, 07:20:15 PM »
The picture says that you haven't clicked on "alt" folder. So, click it.

Edit:
Nevermind, I can see the issue
Path /opt/alt/php-fpm*/var/socket does not exist.
It should be /opt/alt/php-fpm*/usr/var/socket

Have you modified the php-fpm template or conf files recently?
It should be like this:
Code: [Select]
[%backend%]
listen = /opt/alt/%phpfpmver%/usr/var/sockets/%backend%.sock
listen.allowed_clients = 127.0.0.1
....
....

This is my block file configuration, that file show this path

fastcgi_pass    unix:/opt/alt/php-fpm73/usr/var/sockets/djflakf1.sock;



i didnt change any other file... like i told u i installed nginx and after a few hours that file is deleted, im talking about djflakf1.sock , after that i have 502 bad gateway

Offline
***
Re: PHP FPM 7.3 Error centOS
« Reply #3 on: March 01, 2022, 10:46:44 PM »
It looks like I read your first post a bit wrong. You mentioned first "/opt/alt/php-fpm73/var/sockets" and then put the log mentioning "/opt/alt/php-fpm73/usr/var/sockets/".

Please rebuild your vhosts using "Webserver Settings - Webserver Main Conf - Rebuild all vhosts on save"
or do this with SSH: "sh /scripts/cwpsrv_rebuild_user_conf"

Also, just a tip, not sure if you did this yet, but DON'T edit the conf files directly. They will be reset by CWP every day or with a CWP panel automatic update.
« Last Edit: March 01, 2022, 10:51:58 PM by iraqiboy90 »

Offline
*
Re: PHP FPM 7.3 Error centOS
« Reply #4 on: March 02, 2022, 12:18:14 AM »
Excuse me, maybe I expressed myself incorrectly, the problem I have is this, following your advice, I did the reinstallation of everything with nginx php-fpm, first using the command you gave me but it gave me the following error



Then I did the process using web server selection and the reconstruction of the vhosts, done that I have the same problem again with error 502 bad gateway, and it throws me the error that I mentioned about the missing file djflakf1.sock, which should be located in /opt/alt/php-fpm73/usr/var/sockets/djflakf1.sock , this file is no longer there, so even if I do the reconstruction that you recommend, the problem persists.

I could use a snapshot that I have in the virtual machine to go back to a state where those files are, but after an hour or two, those files are deleted without giving me a reason why.

For this problem I have to use apache, but I want to use nginx

Offline
****
Re: PHP FPM 7.3 Error centOS
« Reply #5 on: March 02, 2022, 09:17:04 PM »
question:  is the php-fpm73 service running??   

systemctl status php-fpm73.service

if it is not running, start it

systemctl start php-fpm73.service
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP FPM 7.3 Error centOS
« Reply #6 on: March 03, 2022, 12:36:58 AM »
 *20 connect() to unix:/usr/local/cwp/php71/var/sockets/djflakf1.sock failed (13: Permission denied) while connecting to upstream, client: 185.191.171.39,

Offline
****
Re: PHP FPM 7.3 Error centOS
« Reply #7 on: March 03, 2022, 12:46:20 AM »
*20 connect() to unix:/usr/local/cwp/php71/var/sockets/djflakf1.sock failed (13: Permission denied) while connecting to upstream, client: 185.191.171.39,

please post the output from:

ls -al /usr/local/cwp/php71/var/sockets/*
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP FPM 7.3 Error centOS
« Reply #8 on: March 03, 2022, 01:08:32 AM »

Offline
****
Re: PHP FPM 7.3 Error centOS
« Reply #9 on: March 03, 2022, 02:54:00 AM »
please check

/usr/local/cwp/php71/etc/php-fpm.d/users/djflakfl.conf

make sure that the following are set:

Code: [Select]
listen.group = "djflakfl"
listen.mode = 0660
user = "djflakfl"
group = "djflakfl"

if any are not set correctly, please correct them, and restart cwpphp via

systemctl restart cwpsrv-phpfpm.service



*** Temporarily, you can "  chmod 660 /usr/local/cwp/php71/var/sockets/djflakfl.sock  "
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP FPM 7.3 Error centOS
« Reply #10 on: March 03, 2022, 03:19:58 AM »
please check

/usr/local/cwp/php71/etc/php-fpm.d/users/djflakfl.conf

make sure that the following are set:

Code: [Select]
listen.group = "djflakfl"
listen.mode = 0660
user = "djflakfl"
group = "djflakfl"

if any are not set correctly, please correct them, and restart cwpphp via

systemctl restart cwpsrv-phpfpm.service



*** Temporarily, you can "  chmod 660 /usr/local/cwp/php71/var/sockets/djflakfl.sock  "



My site is working now with NGINX... however doing u steps

content of the file




Using the command for restart



Offline
****
Re: PHP FPM 7.3 Error centOS
« Reply #11 on: March 03, 2022, 03:36:48 AM »
you can safely ignore the polkit error.  It's not what's causing your issue. 

As to the issue.  the cwp-phpfpm is mean for the backend, but if it's working with nginx, I guess you can use it.  The frontend servers are supposed to use the php-fpm's installed in /opt/alt

if the socket files are disappearing, then it sounds like those versions are crashing for some reason, and it would need to be investigated further.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: PHP FPM 7.3 Error centOS
« Reply #12 on: March 05, 2022, 08:54:05 PM »
Thanks for u help, now im want to upgrade php 7.1 that u can see here /usr/local/cwp/php71 to 7.3 how can i do that?