Author Topic: I cannot run php versions above Php 7.2 on my Centos Web Panel Server.  (Read 1885 times)

0 Members and 1 Guest are viewing this topic.

I have used centos web panel many times before, I use it with license, but interestingly, it compiles and installs php versions above php7.2, which I downloaded from the php-fpm-selector section, and although it installs, I get the following error logs when I access the site in the error log. I'm buying.
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
[Thu Nov 03 20:22:52.624791 2022] [proxy_fcgi:error] [pid 6170:tid 140171877996288] [client] AH01079: failed to make connection to backend: httpd-UDS
[Thu Nov 03 20:22:52.800069 2022] [proxy:error] [pid 6170:tid 140171869603584] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php- fpm74/usr/var/sockets/cocukgiy.sock (*:80) failed

Re: I cannot run php versions above Php 7.2 on my Centos Web Panel Server.
« Reply #1 on: January 14, 2023, 11:45:54 PM »
When installing a new version of php-fpm, the sockets config is not automatically created for you; you must do it manually. So after building it and will create an error of the .sock file missing. So you have to copy over your older users directory. For example, after enabling php 7.4, I had to create:
this way:
Code: [Select]
sudo cp -r /opt/alt/php-fpm72/usr/etc/php-fpm.d/users /opt/alt/php-fpm74/usr/etc/php-fpm.d/usersand then edit the new conf files to reflect the new version:
Code: [Select]
sudo perl -pi.back -e 's/php-fpm72/php-fpm74/g;' /opt/alt/php-fpm74/usr/etc/php-fpm.d/users/*.confThen restart the php-fpm process:
Code: [Select]
sudo service php-fpm74 restart