1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

PHP not working on client domains

Discussion in 'Plesk for Linux - 8.x and Older' started by rsanders4, Jul 12, 2005.

  1. rsanders4

    rsanders4 Guest


    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.
  2. hardweb

    hardweb Guest

    The .php extension is parsed by the default config in httpd.include. What OS do you have?
  3. rsanders4

    rsanders4 Guest

    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.
  4. rsanders4

    rsanders4 Guest

    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.
  5. mikk

    mikk Basic Pleskian

    Jan 29, 2005
    Likes Received:
    not meaning to state the obvious, but you have allowed them to access php in the hosting setup area in the domain control panel.
  6. rsanders4

    rsanders4 Guest

    Would it help to post the contents of my http.conf and httpd.include files?
  7. rsanders4

    rsanders4 Guest

    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.
  8. Robert Lavelock

    Robert Lavelock Guest

    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.