• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Apache/PHP delivering PHP source to the browser

S

stevecruz

Guest
I'm running 8.0.1 FC4, php5.0.4 on a fairly generic installation (justs a couple of domains at this point).

My issue is: I have some custom PHP pages. Half of the time these pages load just fine. But, about every third or forth "refresh" on a page, the server returns the acutal PHP file to the browser instead of the interpeted output.

All the files are under httpdocs, there are no permission or base path restriction messages in the logs. And as I say, at least half the time, the PHP page renders just fine.

I'd crawled all the logs I can find, searched here on the forum, and googled for this problem, but haven't found an answer.

I welcome ANY suggestions or clues on this one.

Thanks in advance.
-Steve
 
The PHP code files have a .php extension, the include files (only called from inside php pages) have a .inc extension.

That said, the server is returning the .php file to the browser, not the .inc file.

-Steve
 
look for a .htaccess file in the root. i had this happen but it was because i had a .htaccess file there from a previous server and it broke the php.
 
Back
Top