Author Topic: All versions of PHP-FPM 8.2.x compiles but doesn't work.  (Read 3151 times)

0 Members and 3 Guests are viewing this topic.

Offline
*
All versions of PHP-FPM 8.2.x compiles but doesn't work.
« on: January 03, 2024, 02:53:37 PM »
I am having an issue with PHP-FPM 8.2.x. Compiling seems to go okay and doesn't crash with any errors, but when I select it to use, I get a 503 error on all of the websites that I set in Web Server domain Conf. I can't run a simple phpinfo.php in the directory; i get the same result - nothing but a 503 error.

Can someone help me with this issue? Is anyone else experiencing this same issue?

Offline
****
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #1 on: January 03, 2024, 08:31:27 PM »
from cli, systemctl status php-fpm82

If it's not running try starting it
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #2 on: January 03, 2024, 10:12:13 PM »
Thank you Sir! I had already tried restarting it and it was running. Ran your command and got the green active signal - so it is running. The site will execute html, but nothing that is PHP.

Oh, wait a minute... What do you make of this:

 php-fpm82.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm82.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2024-01-03 01:57:08 EST; 15h ago
  Process: 15912 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 2095 (php-fpm)
   CGroup: /system.slice/php-fpm82.service
           └─2095 php-fpm: master process (/opt/alt/php-fpm82/usr/etc/php-fpm.conf)

Jan 03 16:46:17 helium11.domain.com systemd[1]: Reloading The PHP FastCGI Process Manager.
Jan 03 16:46:17 helium11.domain.com systemd[1]: Can't open PID file /opt/alt/php-fpm82/usr/var/run/php-fpm.pid (yet?) after reload: No such file or directory
Jan 03 16:46:17 helium11.domain.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: [03-Jan-2024 16:46:18] NOTICE: PHP message: PHP Warning:  PHP Startup: uploadprogress: Unable to initialize module
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: Module compiled with module API=20210902
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: PHP    compiled with module API=20220829
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: These options need to match
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: in Unknown on line 0
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: [03-Jan-2024 16:46:18] NOTICE: using inherited socket fd=8, "/opt/alt/php-fpm82/usr/var/sockets/cwpsvc.sock"



Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: Module compiled with module API=20210902
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: PHP    compiled with module API=20220829
Jan 03 16:46:18 helium11.domain.com php-fpm[2095]: These options need to match

The above looks like a candidate as to why it is not executing anything as those versions do not match... Any thoughts or suggestions? Thanks in advance for your help!

Offline
*
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #3 on: January 03, 2024, 10:23:11 PM »
Yes, now it is down to the mismatch.

● php-fpm82.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm82.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2024-01-03 17:17:27 EST; 2s ago
  Process: 15912 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 18504 (php-fpm)
   CGroup: /system.slice/php-fpm82.service
           └─18504 php-fpm: master process (/opt/alt/php-fpm82/usr/etc/php-fpm.conf)

Jan 03 17:17:27 helium11.domain.com systemd[1]: Started The PHP FastCGI Process Manager.
Jan 03 17:17:27 helium11.domain.com php-fpm[18504]: [03-Jan-2024 17:17:27] NOTICE: PHP message: PHP Warning:  PHP Startup: uploadprogress: Unable to initialize module
Jan 03 17:17:27 helium11.domain.com php-fpm[18504]: Module compiled with module API=20210902
Jan 03 17:17:27 helium11.domain.com php-fpm[18504]: PHP    compiled with module API=20220829
Jan 03 17:17:27 helium11.domain.com php-fpm[18504]: These options need to match
Jan 03 17:17:27 helium11.domain.com php-fpm[18504]: in Unknown on line 0


Offline
****
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #4 on: January 03, 2024, 11:16:13 PM »
remove the upload progress module and restart to see if it starts working.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #5 on: January 03, 2024, 11:38:59 PM »
As I suspected; upload progress throws an error if you select it or not. Still seeing the API mismatch...

● php-fpm82.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm82.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2024-01-03 18:09:14 EST; 1min 3s ago
 Main PID: 41643 (php-fpm)
   CGroup: /system.slice/php-fpm82.service
           └─41643 php-fpm: master process (/opt/alt/php-fpm82/usr/etc/php-fpm.conf)

Jan 03 18:09:14 helium11.domain.com systemd[1]: Started The PHP FastCGI Process Manager.
Jan 03 18:09:14 helium11.domain.com php-fpm[41643]: [03-Jan-2024 18:09:14] NOTICE: PHP message: PHP Warning:  PHP Startup: uploadprogress: Unable to initialize module
Jan 03 18:09:14 helium11.domain.com php-fpm[41643]: Module compiled with module API=20210902
Jan 03 18:09:14 helium11.domain.com php-fpm[41643]: PHP    compiled with module API=20220829
Jan 03 18:09:14 helium11.domain.com php-fpm[41643]: These options need to match
Jan 03 18:09:14 helium11.domain.com php-fpm[41643]: in Unknown on line 0

Offline
****
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #6 on: January 04, 2024, 12:00:21 AM »
please post output of

ls /opt/alt/php-fpm82/usr/lib/php/extensions
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #7 on: January 04, 2024, 12:06:08 AM »
no-debug-non-zts-20220829

I might add by renaming the upload progress.ini file and restarting I get this now which is of no help...

● php-fpm82.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm82.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2024-01-03 18:38:02 EST; 2s ago
  Process: 44562 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 44669 (php-fpm)
   CGroup: /system.slice/php-fpm82.service
           └─44669 php-fpm: master process (/opt/alt/php-fpm82/usr/etc/php-fpm.conf)

Jan 03 18:38:02 helium11.domain.com systemd[1]: Started The PHP FastCGI Process Manager.

Offline
****
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #8 on: January 04, 2024, 12:28:13 AM »
Without upload, your not getting a startup error. 

Let's try the command

journalctl -xe -u php-fpm82
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #9 on: January 04, 2024, 12:32:15 AM »
Here you go:

Code: [Select]
[root@helium11 ~]# journalctl -xe -u php-fpm82
Jan 03 18:14:31 helium11.domain.com php-fpm[42305]: These options need to match
Jan 03 18:14:31 helium11.domain.com php-fpm[42305]: in Unknown on line 0
Jan 03 18:35:11 helium11.domain.com systemd[1]: Stopping The PHP FastCGI Process Manager...
-- Subject: Unit php-fpm82.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has begun shutting down.
Jan 03 18:35:11 helium11.domain.com systemd[1]: Stopped The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has finished shutting down.
Jan 03 18:35:11 helium11.domain.com systemd[1]: Started The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has finished starting up.
--
-- The start-up result is done.
Jan 03 18:37:44 helium11.domain.com systemd[1]: Reloading The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has begun reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has begun reloading its configuration
Jan 03 18:37:44 helium11.domain.com systemd[1]: Can't open PID file /opt/alt/php-fpm82/usr/var/run/php-fpm.pid (yet?) after reload: No such file or directory
Jan 03 18:37:44 helium11.domain.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has finished reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has finished reloading its configuration
--
-- The result is done.
Jan 03 18:37:44 helium11.domain.com php-fpm[43989]: [03-Jan-2024 18:37:44] NOTICE: using inherited socket fd=8, "/opt/alt/php-fpm82/usr/var/sockets/cwpsvc.sock"
Jan 03 18:37:44 helium11.domain.com php-fpm[43989]: [03-Jan-2024 18:37:44] NOTICE: using inherited socket fd=9, "/opt/alt/php-fpm82/usr/var/sockets/nobody.sock"
Jan 03 18:37:51 helium11.domain.com systemd[1]: Reloading The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has begun reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has begun reloading its configuration
Jan 03 18:37:51 helium11.domain.com systemd[1]: Can't open PID file /opt/alt/php-fpm82/usr/var/run/php-fpm.pid (yet?) after reload: No such file or directory
Jan 03 18:37:51 helium11.domain.com systemd[1]: Reloaded The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has finished reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has finished reloading its configuration
--
-- The result is done.
Jan 03 18:37:51 helium11.domain.com php-fpm[43989]: [03-Jan-2024 18:37:51] NOTICE: using inherited socket fd=8, "/opt/alt/php-fpm82/usr/var/sockets/cwpsvc.sock"
Jan 03 18:37:51 helium11.domain.com php-fpm[43989]: [03-Jan-2024 18:37:51] NOTICE: using inherited socket fd=9, "/opt/alt/php-fpm82/usr/var/sockets/nobody.sock"
Jan 03 18:38:02 helium11.domain.com systemd[1]: Stopping The PHP FastCGI Process Manager...
-- Subject: Unit php-fpm82.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has begun shutting down.
Jan 03 18:38:02 helium11.domain.com systemd[1]: Stopped The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has finished shutting down.
Jan 03 18:38:02 helium11.domain.com systemd[1]: Started The PHP FastCGI Process Manager.
-- Subject: Unit php-fpm82.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit php-fpm82.service has finished starting up.
--
-- The start-up result is done.
lines 751-826/826 (END)

Offline
****
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #10 on: January 04, 2024, 04:16:52 AM »
can you post the log file from /usr/local/apache/domlogs/(site)/error.log
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #11 on: January 04, 2024, 05:11:59 AM »
I had to truncate this due to the forum restrictions. These are what I see on my test domain (since I can't have my production domains down). I'm not quite sure what this error means, but I have not been to Google yet.

Code: [Select]
[[Wed Jan 03 21:37:10.570731 2024] [proxy_fcgi:error] [pid 2380:tid 140119331821312] [client 10.188.20.1:51401] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:37:11.496859 2024] [proxy:error] [pid 2488:tid 140119440078592] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm81/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:37:11.496993 2024] [proxy_fcgi:error] [pid 2488:tid 140119440078592] [client 10.188.20.1:64537] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:37:12.032458 2024] [proxy:error] [pid 2488:tid 140119348606720] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm81/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:37:12.032536 2024] [proxy_fcgi:error] [pid 2488:tid 140119348606720] [client 10.188.20.1:32596] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:37:15.477160 2024] [proxy:error] [pid 2488:tid 140119323428608] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm81/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:37:15.477236 2024] [proxy_fcgi:error] [pid 2488:tid 140119323428608] [client 10.188.20.1:36303] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:37:17.635418 2024] [proxy:error] [pid 2488:tid 140119298250496] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm81/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:37:17.635484 2024] [proxy_fcgi:error] [pid 2488:tid 140119298250496] [client 10.188.20.1:19897] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:37:18.591774 2024] [proxy:error] [pid 2488:tid 140119273072384] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm81/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:37:18.591837 2024] [proxy_fcgi:error] [pid 2488:tid 140119273072384] [client 10.188.20.1:42529] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:37:19.355047 2024] [proxy:error] [pid 2488:tid 140119247894272] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm81/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:37:19.355102 2024] [proxy_fcgi:error] [pid 2488:tid 140119247894272] [client 10.188.20.1:28712] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:14.964958 2024] [proxy:error] [pid 2488:tid 140119205930752] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm81/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:14.965040 2024] [proxy_fcgi:error] [pid 2488:tid 140119205930752] [client 10.188.20.1:15960] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:42.135155 2024] [proxy:error] [pid 2709:tid 140119456864000] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:42.135300 2024] [proxy_fcgi:error] [pid 2709:tid 140119456864000] [client 10.188.20.1:53810] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:43.532198 2024] [proxy:error] [pid 2709:tid 140119440078592] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:43.532304 2024] [proxy_fcgi:error] [pid 2709:tid 140119440078592] [client 10.188.20.1:48769] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:44.654736 2024] [proxy:error] [pid 2709:tid 140119348606720] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:44.654815 2024] [proxy_fcgi:error] [pid 2709:tid 140119348606720] [client 10.188.20.1:25435] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:46.507450 2024] [proxy:error] [pid 2709:tid 140119331821312] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:46.507521 2024] [proxy_fcgi:error] [pid 2709:tid 140119331821312] [client 10.188.20.1:34783] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:47.464329 2024] [proxy:error] [pid 2709:tid 140119306643200] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:47.464428 2024] [proxy_fcgi:error] [pid 2709:tid 140119306643200] [client 10.188.20.1:8962] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:47.736767 2024] [proxy:error] [pid 2709:tid 140119273072384] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:47.736841 2024] [proxy_fcgi:error] [pid 2709:tid 140119273072384] [client 10.188.20.1:23496] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:48.001107 2024] [proxy:error] [pid 2709:tid 140119256286976] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:48.001171 2024] [proxy_fcgi:error] [pid 2709:tid 140119256286976] [client 10.188.20.1:58463] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:48.226217 2024] [proxy:error] [pid 2707:tid 140119448471296] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:48.226335 2024] [proxy_fcgi:error] [pid 2707:tid 140119448471296] [client 10.188.20.1:20273] AH01079: failed to make connection to backend: httpd-UDS
[Wed Jan 03 21:38:48.412620 2024] [proxy:error] [pid 2709:tid 140119239501568] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm80/usr/var/sockets/domain.sock (*:80) failed
[Wed Jan 03 21:38:48.412712 2024] [proxy_fcgi:error] [pid 2709:tid 140119239501568] [client 10.188.20.1:10503] AH01079: failed to make connection to backend: httpd-UDS

Offline
*
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #12 on: January 04, 2024, 05:29:44 AM »
The log entries above what I posted are not the 8.2.13 ones but they have the same error. In my puttering about I discovered it would appear that this issue on this domain is not isolated to PHP-FPM 8.2.13 rather no PHP-FPM works on it!

This all started when I was pressed to migrate two sites to 8.2. After compiling it, when I would set CWP to use it on said dopomains I just get a 503 error and no parsing of php stuff. Apache is working as I can run html on the sites.

Offline
****
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #13 on: January 04, 2024, 05:30:17 AM »
Your test domain is trying to use php-fpm81, which is probably not started.  Go to Webserver Domain config and change the php version to 8.2 and see what happens.
Google Hangouts:  rcschaff82@gmail.com

Offline
****
Re: All versions of PHP-FPM 8.2.x compiles but doesn't work.
« Reply #14 on: January 04, 2024, 05:33:33 AM »
check the following.

systemctl | grep php


They all should be running
Google Hangouts:  rcschaff82@gmail.com