• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved News Wordpress Install Error 503??

DIHI

New Pleskian
Hello

Just bought a shiny new VPS from Leaseweb, I have it with Plesk Web Admin for ease of use. I have just auto installed Wordpress from the Plesk panel and now when I go to my domain or wordpress admin panel I am met with a error 503 page:


Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


I uninstalled that version and manually installed myself but still get the same result, it must be a server / Plesk configuration but I have no idea where to begin and Leaseweb want me to pay for help!

Any ideas appreciated

Thanks in advance
 
Some lines from the error log:

Code:
2016-07-13 13:02:29    Error    84.51.183.224    503    GET / HTTP/1.1        Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0    1.35 K    Apache access
2016-07-13 13:02:29    Error    84.51.183.224    503    GET / HTTP/1.1        Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0    1.35 K    Apache access
2016-07-13 13:02:29    Error            (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/xxx.wales/php-fpm.sock (*) failed                Apache error
2016-07-13 13:02:29    Error    84.51.183.224        AH01079: failed to make connection to backend: httpd-UDS                Apache error
2016-07-13 13:02:29    Error            (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/xxx.wales/php-fpm.sock (*) failed                Apache error
2016-07-13 13:02:29    Error    84.51.183.224        AH01079: failed to make connection to backend: httpd-UDS                Apache error
2016-07-13 13:14:05    Error    37.115.119.239    503    GET /admin.php HTTP/1.0        Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.8.131 Version/11.10    1.35 K    Apache access
2016-07-13 13:14:05    Error            (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/xxx.wales/php-fpm.sock (*) failed                Apache error
2016-07-13 13:14:05    Error    37.115.119.239        AH01079: failed to make connection to backend: httpd-UDS                Apache error
2016-07-13 13:14:06    Error    37.115.119.239    404    GET /administrator/index.php HTTP/1.0        Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.8.131 Version/11.10    1.31 K    Apache access
2016-07-13 13:14:06    Error    37.115.119.239    503    GET /wp-login.php HTTP/1.0        Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.8.131 Version/11.10    1.35 K    Apache access
2016-07-13 13:14:06    Error            (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/xxx.wales/php-fpm.sock (*) failed                Apache error
2016-07-13 13:14:06    Error    37.115.119.239        AH01079: failed to make connection to backend: httpd-UDS                Apache error
 
Any help with this would be great, had to wait all afternoon for this to be moderator approved really want to get cracking but can't, definitely a server / plesk issue just do not know what :(

Thanks in advance
 
Hi DIHI,

pls. consider to add

Code:
    if (!-e $request_filename){
        rewrite ^(.*)$ /index.php break;
    }

as additional NGINX directive over your Plesk Control Panel, when you use wordpress.

Home > Subscriptions > YOUR_DOMAIN.COM > Websites & Domains > Apache & nginx Settings
 
It seems that the PHP-FPM service of the PHP version that you have selected for the webspace is not running. Please try to restart it by
# service plesk-php<version>-fpm restart
For example for PHP 5.6:
# service plesk-php56-fpm restart
For example for PHP 7.0:
# service plesk-php70-fpm restart

If it does not restart, please post the error message on restart attempt here for further discussion.
 
Versions:
PHP: 5.4.16 by OS Vendor -- FMP application served by nginx
But on the main domain page it says PHP Version 7.0.20

I added a screenshot of the PHP settings at the bottom of this post.

No....it's running.

I did a service status on it....and it was running.

I also looked at the log and it showed it had started, etc: /var/log/plesk-php70-fpm/error.log

Now, this was a brand new install of WP and I got the error when I tried to go to the Administrative page.

This is the error I was getting originally (from the server log):

No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/www/vhosts/system/example.com/php-fpm.sock (*) failed

I tried this fix ( PHP 7.0 FPM does not work for domains ), but it turns out that was not the problem:

I don't know what the issue was exactly, but this fixed it:

On the Apache & ngins Settings page:

Fix----> Uncheck Proxy mode under nginx settings. <------ Fix

Apparently this bypasses using Apache entirely and just nginx (not totally sure of this)

After that everything is working.

Sorry I don't know enough to elaborate, but maybe you know what the deal was.

Originally I had just the Proxy mode checked (which I thought bypassed nginx and used Apache only)....

But with that setting I was getting the error above.

PHP Settings:

jsawwPHP.jpg


z
 
This fix worked for me:

On the Apache & nginx Settings page:

Fix----> Uncheck Proxy mode under nginx settings. <------ Fix

z
 
Unchecking proxy mode means "Nginx only" hosting. The requests will not be passed through to Apache any longer, so surely the "AH01079: failed to make connection to backend: httpd-UDS" error won't appear any longer, because now all requests are handled by Nginx and PHP-FPM through Nginx. It could be considered a workaround, but it is not a solution.
 
Well, I did what that page said. Put PHP-FPM into Debug logging by changing the conf file....but never got a chance to look at the log, cause my hosting company 'fixed' it.....I guess that would be the way to find out wtf is wrong...... Apparently he says a directory is missing and he creates it......weird......

This is a pretty new Dedicated Server I'm on.....and I was getting that error immediately after the WP install.....So it seems to be an Apache problem with PHP-FPM.........fwiw..........z
 
Back
Top