New on LowEndTalk? Please Register and read our Community Rules.
Server Error 500 After Migration
I've just setup a new VPS running cPanel, centOS 7, Apache 2.4 & PHP 5.5.
After migrating all sites from old server all seem to be working fine just the odd subdomain or domain.com/subfolder throws out "Server Error 500"!
Also if I type a domain like "domain.comblahblah it usually goes to google search but now just hangs on loading. Can anyone advise please? Would really appreciate the help!
try out reconfiguring/rebuilding apache using the easyapache
then check out for the .htaccess files.
Also check cpanel error logs.
I have reconfigured apache using Easy Apache. .htaccess files all look fine.
Look for the error in /usr/local/cpanel/apache/logs/error_log
When you connect a site giving a 500 error (lets say domain.com) does the request appear in /usr/local/apache/logs/access_log or in /usr/local/apache/domlogs/domain.com ? If it appears in the former then it points to a vhost issue, or an error in your vhost config.
Check also /usr/local/apache/logs/error_log and see what the error is. Also try recompiling easyapache back to the basic profile, and running /scripts/rebuildhttpdconf script
Rebuilt Apache but still no joy!
Ran /scripts/rebuildhttpdconf and get this
Still having the issue!
That error fine, i sent you a PM regarding this
PMD you back. Thanks
Have you installed mod_pagespeed? If so, try disabling it via .htaccess.
grep error /usr/local/apache/logs/error_log
Turns out my issue is with the PHP script as it was moved from a server with apache 2.2 & PHP 5.4 to Apache 2.4 & PHP 5.5 it's throwing Server error 500.
So the script ran fine on PHP 5.4 but not 5.5 I need it running so will it hurt to downgrade PHP to 5.4?
there's a slight difference with php 5.5, your script will need to be patched. moving back to 5.4 should not pose any issues
did i not tell you to reconfigure/recompile apache...
also you have done a blunder...
the logs you have pasted contains your ip...
nect time you need to be carefull and for now you can edit your comment and remove your ip...
You did and now I'm on PHP 5.4 with no issues. No blunder my IP is not in any of my posts!