• 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

500 Internal Server Error

J

JonathanY

Guest
My plesk just updated automatically this morning and now I am receiving 500 Internal Server Errors on all the PHP pages.

It also changed the directory of my where my domain is hosted. Previously the site was located at /var/www now it is located at /var/www/vhosts/domain.com/httpdocs

I'm not sure why it updated my file path but I have tried removing the .htaccess files already.

Any ideas on how I can troubleshoot this? Everything was working fine last night, and after update, I cannot see any PHP pages.

If i need to check an error log, please tell me the location, because I am confused to where the logs are when trying to find them :/

I am running plesk on debian.
 
What do you have for this:

tail -f /var/www/vhosts/domain.com/statistics/logs/error_log

With any of the domains displaying that error ?

Also, may I suggest you rebuild the vhosts?

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Lastly do you have Nginx enabled or NOT?
 
This is what is displayed from the error_log

[Wed Aug 15 13:20:02 2012] [error] [client 66.249.73.210] Premature end of sct headers: calendar.php
[Wed Aug 15 13:21:40 2012] [warn] [client 69.127.232.53] (104)Connection resey peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 15 13:21:40 2012] [error] [client 69.127.232.53] Premature end of sct headers: index.php
[Wed Aug 15 13:21:45 2012] [warn] [client 69.127.232.53] (104)Connection resey peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 15 13:21:45 2012] [error] [client 69.127.232.53] Premature end of sct headers: index2.php
[Wed Aug 15 13:22:55 2012] [error] [client 157.55.16.229] File does not existvar/www/vhosts/ecgaming.us/httpdocs/robots.txt
[Wed Aug 15 13:23:00 2012] [error] [client 66.249.73.210] File does not existvar/www/vhosts/ecgaming.us/httpdocs/hot-news
[Wed Aug 15 13:23:37 2012] [error] [client 157.55.16.229] File does not existvar/www/vhosts/ecgaming.us/httpdocs/2012
[Wed Aug 15 13:24:05 2012] [warn] [client 66.249.73.210] (104)Connection resey peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 15 13:24:05 2012] [error] [client 66.249.73.210] Premature end of sct headers: calendar.php
[Wed Aug 15 13:27:27 2012] [warn] RSA server certificate CommonName (CN) `Par allels Panel' does NOT match server name!?
[Wed Aug 15 13:27:28 2012] [warn] RSA server certificate CommonName (CN) `Par allels Panel' does NOT match server name!?
[Wed Aug 15 13:27:32 2012] [warn] [client 69.127.232.53] (104)Connection rese t by peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 15 13:27:32 2012] [error] [client 69.127.232.53] Premature end of sc ript headers: index2.php
[Wed Aug 15 13:27:33 2012] [warn] [client 69.127.232.53] (104)Connection rese t by peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 15 13:27:33 2012] [error] [client 69.127.232.53] Premature end of sc ript headers: index2.php
[Wed Aug 15 13:28:28 2012] [warn] [client 66.249.73.210] (104)Connection rese t by peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 15 13:28:28 2012] [error] [client 66.249.73.210] Premature end of sc ript headers: calendar.php
[Wed Aug 15 13:29:01 2012] [warn] [client 69.127.232.53] (104)Connection rese t by peer: mod_fcgid: error reading data from FastCGI server
[Wed Aug 15 13:29:01 2012] [error] [client 69.127.232.53] Premature end of sc ript headers: index2.php

I rebuilt the vhosts, but no messages came up, it just waited a little and then the next line came up. Not sure if that's the way it works.

And Nginx is disabled from the Parallels Plesk panel.
 
tail: cannot open `/var/log/httpd/suexec_log' for reading: No such file or directory

This is what I got, I don't have a httpd folder in /log/

:/

I did find suexe.log in /apache2/ directory using this: tail -f /var/log/apache2/suexec.log

[2012-08-15 14:08:12]: uid: (10002/ecg) gid: (1005/1005) cmd: cgi_wrapper
[2012-08-15 14:08:12]: directory is writable by others: (/var/www/cgi-bin/cgi_wrapper)
[2012-08-15 14:08:55]: uid: (10002/ecg) gid: (1005/1005) cmd: cgi_wrapper
[2012-08-15 14:08:55]: directory is writable by others: (/var/www/cgi-bin/cgi_wrapper)
[2012-08-15 14:09:41]: uid: (10002/ecg) gid: (1005/1005) cmd: cgi_wrapper
[2012-08-15 14:09:41]: directory is writable by others: (/var/www/cgi-bin/cgi_wrapper)
[2012-08-15 14:12:20]: uid: (10002/ecg) gid: (1005/1005) cmd: cgi_wrapper
[2012-08-15 14:12:20]: directory is writable by others: (/var/www/cgi-bin/cgi_wrapper)
[2012-08-15 14:15:37]: uid: (10002/ecg) gid: (1005/1005) cmd: cgi_wrapper
[2012-08-15 14:15:37]: directory is writable by others: (/var/www/cgi-bin/cgi_wrapper)
 
I did that, still the 500 error and getting the same messages regarding the cgi_wrapper in the log file.

Edit: What are the permissions for the files and folders regarding cgi? The owners?

Thanks.
 
Last edited by a moderator:
Back
Top