Page 1 of 1

HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Thu Jul 07, 2016 1:50 pm
by sunil1200
I currently hosted a site using vesta and it all went ok but in some pages of website it displays http error 500 when i click on whereas other pages work perfectly. The same site works all perfectly in local.

Re: HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Thu Jul 07, 2016 1:59 pm
by skamasle
Can you check your error_log ?

paste here some information.

Re: HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Thu Jul 07, 2016 2:16 pm
by skurudo
Logs - good, but

It can be like in this topic ->
viewtopic.php?p=46855#p46831
viewtopic.php?p=46855#p46855

Re: HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Thu Jul 07, 2016 2:54 pm
by sunil1200
skamasle wrote:Can you check your error_log ?

paste here some information.
Where is error_log file located?

Re: HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Thu Jul 07, 2016 2:57 pm
by skurudo

Re: HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Thu Jul 07, 2016 3:04 pm
by sunil1200
skamasle wrote:Can you check your error_log ?

paste here some information.
I dont know if it helps but i found this error_log file in var/log/httpd

[Thu Jul 07 09:29:58.058121 2016] [suexec:notice] [pid 887] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 07 09:29:58.121098 2016] [so:warn] [pid 887] AH01574: module ruid2_module is already loaded, skipping
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globall$
[Thu Jul 07 09:29:58.138937 2016] [auth_digest:notice] [pid 887] AH01757: generating secret for digest authentication ...
[Thu Jul 07 09:29:58.147075 2016] [:notice] [pid 887] mod_ruid2/0.9.8 enabled
[Thu Jul 07 09:29:58.356076 2016] [mpm_prefork:notice] [pid 887] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.45$
[Thu Jul 07 09:29:58.356135 2016] [core:notice] [pid 887] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Jul 07 09:30:29.136151 2016] [mpm_prefork:notice] [pid 887] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jul 07 09:30:46.372962 2016] [suexec:notice] [pid 889] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jul 07 09:30:46.486019 2016] [so:warn] [pid 889] AH01574: module ruid2_module is already loaded, skipping
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globall$
[Thu Jul 07 09:30:46.508191 2016] [auth_digest:notice] [pid 889] AH01757: generating secret for digest authentication ...
[Thu Jul 07 09:30:46.519544 2016] [:notice] [pid 889] mod_ruid2/0.9.8 enabled
[Thu Jul 07 09:30:46.755887 2016] [mpm_prefork:notice] [pid 889] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.45$
[Thu Jul 07 09:30:46.755952 2016] [core:notice] [pid 889] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Re: HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Fri Jul 08, 2016 9:24 am
by gwolf2u
try to output /var/log/httpd/domains/<your domain here>.error.log

Re: HTTP ERROR 500 on some website page hosted from vesta cpanel?

Posted: Fri Jul 08, 2016 3:24 pm
by sunil1200
OK. I fixed the error. The error was due to PHP 5.4 .After i upgraded it to PHP 5.6 everything went fine.