• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP not working on client domains

R

rsanders4

Guest
Greetings,

For some odd reason my plesk 7.5 install is not enabling PHP on any client domains.

any php files show up as plain text.

It appears there may be some sort of issue with an addhandler directive?

Any tips would be appreciated.

Thanks in advance.
 
The .php extension is parsed by the default config in httpd.include. What OS do you have?
 
fedora core 2

basically any .php page just shows the raw source.

I'm pretty familiar with how apache handles things, but somewhat of a newbie when it comes to the Plesk back-end (mostly been a cpanel guy until now)

Let me know if you need any other info, and I'll be happy to provide it.
 
Anyone else have any ideas on why this is not working?

PHP not working is a pretty critical issue for me at this time?


Thanks in advance.
 
not meaning to state the obvious, but you have allowed them to access php in the hosting setup area in the domain control panel.
 
Would it help to post the contents of my http.conf and httpd.include files?
 
Well, I've managed to fix one of the two messed up domains. Now, .html and .php files work perfectly fine.

However, I have a 2nd domain on the box that has been prompting to "download" x-http-php even though there are no php files in the sites directory, only .html files.

even if I feed the url http://www.clientdomain.com/index.html I get the prompt.


But........ If I copy their index.html to index.htm it works fine if I specify http://www.clientdomain.com/index.htm in the url, yet just typing http://www.clientdomain.com still results in being prompted to download a file.
 
Check for a hidden .htaccess file in the root directory of the vhost. Delete or rename it if you didn't put it there or intend to have a custom one.
 
Back
Top