The page you are looking for is temporarily unavailable. Please try again later.

September 2, 2019 170 views
Nginx PHP Frameworks PHP Initial Server Setup LEMP

As the title states, I am receiving the following error after installing PHP 7.3 on my Centos 7 Distro: The page you are looking for is temporarily unavailable. Please try again later.

Prior to this occurring, I have set up my initial LEMP using How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7. The end result was 5.4 showing when I did the info page from my IP. I did not see anything current regarding PHP 7.X, so I installed it using How to Install PHP 7.3 in CentOS 7. After confirming that 7.3 was installed using php -v, I refreshed the info page and it states the error. Screenshot - https://internal.scrnshot.app/9UmZyjQTSlj.png

So, I have researched many sources online such as StackOverflow, and I continue to get the same solution that does not work. This is what I have for listen in /etc/php-fpm.d/www.conf -

listen = /var/run/php-fpm/php-fpm.sock

listen.owner = nobody
listen.group = nobody

user = nginx
group = nginx

This is the error from the log after tailing it live from my IP -
2019/09/02 22:20:50 [crit] 2059#0: *20 connect() to unix:/var/run/php-fpm/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: my.ip.add.ress, server: server.ip.address, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "67.205.142.48"

I have not found one solution to allow me to use 7.3 from Google or Digital Ocean forums.

2 Answers

That could happen if the page is taking to long to load. Are you loading any external javascript files in your header? Maybe when some is trying to access that page at that time server is not responding properly. You might also find some hints in your webserver’s log files: /var/log/nginx/error.log

edited by MattIPv4

Hello,

As far as I can see from the error, Nginx does not have permissions to connect to the socket file. I would recommend updating your PHP-FPM conf file to:

listen.owner = nginx
listen.group = nginx

And then restart PHP-FPM.

After that make sure that PHP-FPM is up and running and check the permissions of the socket file.

Let me know how it goes.
Regards,
Bobby

Have another answer? Share your knowledge.