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

Multiple domains going to one directory - PHP problem

Discussion in 'Plesk for Linux - 8.x and Older' started by billyg74, May 25, 2005.

  1. billyg74

    billyg74 Guest

    I have a php app that I want to run for multiple domains. I don't want to copy the script to all the domains (especially since I am always making changes to it).

    I went into the /home/httpd/vhosts/DOMAINNAME.com/conf/httpd.include file, and changed the DocumentRoot to point to the one location of the the files.

    HTML files load fine. But PHP files try to download instead of running. So I am guessing this is an issue with PHP setup and Plesk.

    Any thoughts on what I need to add or change to get PHP to run when I change DocumentRoot to a different directory?

  2. editor

    editor Guest

    which OS?
    which plesk-version?
  3. djtoshack

    djtoshack Guest

    We have been looking for a solution for the _exact_ same problem for ages now without a real solution.

    We're on OS:
    Red Hat Enterprise Linux ES release 3 (Taroon Update 4)

    Plesk Version:
    Linux 7.5.4

    We have tried defining the DocumentRoot in both the vhost.conf and httpd.include files with the above results.

    Is there anybody who knows how to change the DocumentRoot to point to the path of another domain? Even if it means overriding default httpd.conf configuration.

    Thanks very much for your time!