Weird things with PHP in new subdomains, after importing WHM settings, and cPanel account to CentOS7 from 6
All existing domains, and subdomains seems to be working fine. also phpinfo() seems to work, but no other php sites/pages on new subdomains seem to work.
Here's what happened:
* used the cpanel configuration tool to backup the whm config, and the cpanel backup wizard to make a backup of my entire cpanel account.
* wiped old OS, and installed CentOS7
* installed cpanel
* logged in to ssh, and imported WHM configuration using the same tool
* logged into WHM, and imported my cPanel account
* Added php7.3, all the way up to 8.0, keeping 5.6, 7.1, and 7.2
All other sites and services on the server are working as expected, including PHP websites, but when I create a new subdomain, and added a new php website, i either get HHTP 500 errors (with errors like these in the apache error log "[core:error] [pid *****] [client IP:PORT] End of script output before headers: index.php") or blank white pages, with nothing in any error logs.
One such php site is called Nova 2, by Anodyne Productions. I have working copies on multiple subdomains, but if I try to add a brand new install to a new subdomain, created after the account transfer, all I get is a white page.
This makes zero sense to me, and this functionality is needed, if I'm going to make anymore subdomains. Any help would be appreciated.
-
Did you copy the same PHP config, and install the same modules 0 -
Unless I misunderstood the documentation, the cpconftool was supposed to handle that for me. I tried to get help/advice before in February of this year about moving my server to an updated OS, (elsewhere on the forums), and was told that it was as easy as installing the OS, installing cpanel, and restoring the backup. your question tells me that answer may have been wrong. 0 -
If the PHP is giving a white page, I would expect either an error message to be logged or a memory limit being reached. Is there nothing logged in the main /etc/apache/logs/error_log file when you visit the site that is showing a blank page? 0 -
uhh... weirdness... after several hours, the situation appears to have resolved itself. I can now upload my custom PHP software, or copy the existing site to the new location, and it functions as originally expected, with no unusual errors. Could this have been a DNS propagation issue, somehow caused by the reimaging? FWIW my nameservers are handled by the server itself, instead of being elsewhere on the internet. (eg NS1, and NS2 are using my server's own IP addresses, instead of using any external nameservers. This has served me well in the past.) 0 -
It's hard for us to say without physically seeing the issue. It's possible that there was code in the site that was causing a problem with DNS, but I'm glad things are working how you expect now. 0 -
Doubt it was something in my code, because that never changed. I'll just chalk it up to DNS propagation, and hope that's the case. lol Thanks for all the help, and please consider this resolved. 0
Please sign in to leave a comment.
Comments
8 comments