php pages are "downloading" instead of displaying

SupermanInNY

Verified User
Joined
Sep 28, 2004
Messages
420
Hi All,

I established a test server for the OLS running on Ubuntu.
Everything worked OK for few hours and then either I changed something or something happen and now PHP pages are not loading as PHP, but rather are "downloading" as files.

looks like a mime type issue?
What directory/file I need to visit?

I've rebuilt the php and ./build openlitespeed multiple times, but to no avail.
Do I need to run another script after?
./build rewrite_confs ?
 
Thanks.
Turned out that Wordpress has its own quirks as even after applying the rewrite_confs, I was still having a problem, then I tested an info.php page which came out fine.
 
Today I updated our server to use OpenLiteSpeed, all website running well except one. Despite running rewrite_confs several times, one of the sites is downloading instead of opening the home page. If I add a path, i.e. /wp-admin it opens correctly.
Above you wrote that you had a similar experience, the issue turned out to be a Wordpress issue, can you tell me what was the issue with Wordpress as I am unable to find the cause of this. Thanks
 
@MarkLFT does this website have any custom_httpd or custom_nginx rule? also check .htaccess is it have standart WP redirect to index.php?
 
Back
Top