Sunday, September 21, 2014

Internal server error 500 timeout CentOS httpd.conf

If you get "Internal server error 500" while you run php script you need to modify httpd.conf file and set IPCCommTimeout.

Edit file in Webmin:
1. Select Webmin > Servers > Apache server > Global configuration > Edit config files
2. Select httpd.conf file to edit
3. Find your domain configuration (usualy is at the bottom) it should start like: <VirtualHost 31.31.31.31:80>
4. Locate </Directory>
5. Insert: IPCCommTimeout 7200
6. Save the file
7. Stop apache at the top right corner
8. Start apache at the top right corner

That's it.

Edit file via ftp (I'm using WinSCP):
1. Locate file etc/httpd/https.donf
2. Locate your domain configuration  (usualy is at the bottom) it should start like: <VirtualHost 31.31.31.31:80>
3. Locate </Directory>
4. Insert: IPCCommTimeout 7200
5. Save the file
6. Restart apache server using PuTTY # service httpd restart

Hope it helps

No comments:

Post a Comment