We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Error in the log and PHP error log file
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Error in the log and PHP error log file
Hello,
Title says it I sometimes get a error 500 on the webpage and a refresh of the page solves it.
I am reading this in the log:
upstream prematurely closed connection while reading response header from upstream
I am reading something about NGINX and timeout or RAM issues but I have RAM enough so that is not a problem.
Also where can I find the log file for PHP errors, because I want to search for the 500 error what is showing up sometimes.
Title says it I sometimes get a error 500 on the webpage and a refresh of the page solves it.
I am reading this in the log:
upstream prematurely closed connection while reading response header from upstream
I am reading something about NGINX and timeout or RAM issues but I have RAM enough so that is not a problem.
Also where can I find the log file for PHP errors, because I want to search for the 500 error what is showing up sometimes.
Re: Error in the log and PHP error log file
If you want to see php errors enable display_errors options /etc/php.ini
Sometimes error 500 also means that your php script is repsonding too slow.
Checkout nginx and httpd configuration with increased timeouts
Sometimes error 500 also means that your php script is repsonding too slow.
Checkout nginx and httpd configuration with increased timeouts
Code: Select all
wget http://c.vestacp.com/0.9.8/rhel/nginx-long.conf -O /etc/nginx/nginx.conf
wget http://c.vestacp.com/0.9.8/rhel/httpd-long.conf -O /etc/httpd/conf/httpd.conf
service httpd restart
service nginx restart
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Re: Error in the log and PHP error log file
Thank you very much for the really quick response, will try it out this afternoon.skid wrote:If you want to see php errors enable display_errors options /etc/php.ini
Sometimes error 500 also means that your php script is repsonding too slow.
Checkout nginx and httpd configuration with increased timeoutsCode: Select all
wget http://c.vestacp.com/0.9.8/rhel/nginx-long.conf -O /etc/nginx/nginx.conf wget http://c.vestacp.com/0.9.8/rhel/httpd-long.conf -O /etc/httpd/conf/httpd.conf service httpd restart service nginx restart
Also I think 30 SEC is too little maybe? For us it is to little we are using a script that access another server via a API so it needs more time.