This series of emails happened about 6 weeks ago, but I wanted to store it here for posterity, because it amuses me and I can do that.
I had recently obtained dedicated hosting for a work project and was having some bizarre issues with .php files throwing a server error, even if the file was a single “phpinfo();” command, so I contacted tech support.
One remaining problem that I am encountering is getting PHP scripts executing on the site. I have a simple file, just running phpinfo(), but it is causing a server error for reasons I have not been able to figure out. I have checked file permissions, recreated the account a few times with all features enabled, and checked PHPMyAdmin to ensure PHP does work on this server, but nothing seems to be working to get this file to work. Is there a setting somewhere, in either WHM or cPanel, that I am missing to enable PHP on this account?
The response was fairly speed, but utterly bizarre.
Please try it now. I commented out a line in your .htaccess file and it’s working now. Let us know if you need any further assistance.
How could my .htaccess file, which was blank during most of these errors, have been a problem? I inquired.
Did you do anything besides that? I added that line after I sent you the support request. When I sent you the support request, the only file on the server was a simple phpinfo() file. Afterwards, I began toying around with the Apache handlers, both in cPanel and in the .htaccess, with nothing working.
Ah, he forgot to mention something.
I did re-compile PHP on the server for good measure since the file should have worked, but the error log was still showing an issue with the .htaccess file so I commented out the handler line and it started working. Please let us know if you need any further assistance.