Web Site Config Issue or cPanel?
I'm testing a web site that I recently copied over it our cPanel based server, using my local HOST file so I can browse to the site on the new server.
If I browse to domain.com (example name), it redirects to https://domain.com/ and shows an error, "domain.com is currently unable to handle this request. HTTP ERROR 500". Same thing happens with http://domain.com/
But if I browse to www.domain.com I get a security warning, I click to continue, and the site comes up.
The web site works fine on the old web server.
Any ideas? Is this as cPanel config issue or a web site config issue?
-
Hey there! That sounds like normal behavior to me - the site doesn't have an SSL issued through AutoSSL because the DNS isn't pointed to the domain, so the browser gives you an error when you try a secure connection. The non-secure connection works well.
This seems like things will work normally once the DNS is pointed to the machine and the SSL is installed.
0 -
in command line (in the new server), do:
tail -f /etc/apache2/logs/error_log
you should see what is causing those 500 errors.0 -
^^^or that - checking the logs is never a bad plan :D
0 -
Well we did point DNS at the new server and the same thing happened, nothing came up. I made sure AutoSSL ran first, looked good, but the site still didn't load. I can see about checking the logs. I'm not a Linux/code literate person but I'll see if I can get one of my Linux engineers to look at it. If it's not GUI then... :)
0 -
Is there same PHP version for that site in the old and new server?
0 -
That's something I've been wondering about.... PHP version issue....The new server is running PHP 8.3 as the default. The site on the old server appears to be using PHP 5.3.3. Looks like we need to have our customer update their PHP components to be compatible with PHP 8.3.
0 -
You'll almost certainly run into issues going from 5 to 8 in PHP, so having the customer confirm things will work on the new version before the move, or have them be prepared to quickly deal with issues will be a good plan.
0 -
The oldest version of PHP we have installed on the new server is 7.3. That's only because we have a couple of sites that still use it and have been notified that they need to upgrade their site to work with PHP 8.3. We don't want to install anything older on the new server. The old server is about to be decommissioned so no plans to install newer versions of PHP on it. We will just have the customer update their site to be compatible with PHP 8.3 if that is the issue.
1
Please sign in to leave a comment.
Comments
8 comments