Error 503 for WordPress on PHP-FPM 7.3.4

Started by ring_c, April 29, 2019, 05:29:09 AM

Previous topic - Next topic

ring_c

I've built PHP 7.3.4 and configured a test wordpress site webserver to use it but I get a 503 error.
I've tried with other sites - and the same result.
I've tried disabling plugins, but the error is still there.


Anyone managed to run Wordpress on PHP 7.3.4?

ring_c

#1
Ok, I've made some more tests. I've installed 7.3.3 and got the same 503 error.
Eventually I've installed 7.3.0 and got the same.

Any idea?

glorency

Don't forget to fix the permission
Go to User Account >> Fix Permission >> Select the user

ring_c

Quote from: glorency on April 29, 2019, 10:28:18 AM
Don't forget to fix the permission
Go to User Account >> Fix Permission >> Select the user
Tried that already. Didn't help.

glorency

Check the error log and share with us
# tail -f /usr/local/apache/domlogs/domain.com.error.log

are you using apache only OR NGINX+php-fpm+virnish ?

ring_c

There you go:

[Mon Apr 29 18:25:18.935259 2019] [proxy:error] [pid 29643:tid 139770902599424] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/alt/php-fpm73/usr/var/sockets/wpkcf.sock (*) failed
[Mon Apr 29 18:25:18.935382 2019] [proxy_fcgi:error] [pid 29643:tid 139770902599424] [client xxx.253.221.xxx:57924] AH01079: failed to make connection to backend: httpd-UDS



By the way it's:
nginx -> varnish -> apache -> php-fpm

glorency

Will you follow below the process again ?
>>Goto WebServer Settings >> WebServer Domain Conf >> Select a UserName >> username >> nginx -> varnish -> apache -> php-fpm
>>Now Fix the permission : User Accounts >> Fix Permissions

Restart if service is enabled (depends on your version)
# /bin/systemctl reload php-fpm71.service 

Restart all the services from CWP dashboard. Don't forget to share the log again with details .

ring_c

I assume you mean:
# /bin/systemctl reload php-fpm73.service 
Correct?


ring_c

When executing:
# /bin/systemctl reload php-fpm73.service

I get:

Job for php-fpm73.service invalid
I've followed all your steps (although already done them all except for the reload of php-fpm73. I get the same result and same error log. But I think we now understand there's an issue with php-fpm73. Unfortunately, I don't know what the issue is.

ring_c

#10
Trying to compare between /opt/alt/php-fpm73/ and /opt/alt/php-fpm72/ I've found out that /opt/alt/php-fpm73/usr/var/sockets/ is empty, while /opt/alt/php-fpm73/usr/var/sockets/ has .sock files for wach user.

Could that help?

glorency

If missing , then create those sock file as per your need

[root@host sockets]# cd /opt/alt/php-fpm73/usr/var/sockets

[root@host sockets]# ll

srw-r----- 1 cwpsvc   cwpsvc 0 Apr 30 11:48 cwpsvc.sock
srw-rw---- 1 nobody   nobody 0 Apr 30 11:48 nobody.sock
srw-rw---- 1 realmart nobody 0 Apr 30 11:48 realmart.sock


ring_c

Created, but still doesn't work.
Also, still same error when trying to reload php-fpm73:


Job for php-fpm73.service invalid

ring_c

Oh damn! It works now!!!
All I did was going to the PHP-FPM selector screen in the GUI panel of CWP - Clicking the yellow recycle icon for reload, didn't work and gave again the error above. But when I clicked the Green right arrow icon for starting PHP-FPM73 - guess what! It worked!

Now to the question - why isn't the service automatically starting after compiling the php version?


The ssh command is:
/bin/systemctl start php-fpm73.servce