Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Error in the log and PHP error log file

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
ricardo777
Posts: 25
Joined: Mon Sep 30, 2013 8:42 am

Error in the log and PHP error log file
  • Quote

Post by ricardo777 » Sat Oct 12, 2013 8:37 am

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.
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Error in the log and PHP error log file
  • Quote

Post by skid » Sat Oct 12, 2013 9:43 am

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

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
Top

ricardo777
Posts: 25
Joined: Mon Sep 30, 2013 8:42 am

Re: Error in the log and PHP error log file
  • Quote

Post by ricardo777 » Sat Oct 12, 2013 10:59 am

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 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
Thank you very much for the really quick response, will try it out this afternoon.

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.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password