• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Multiple domains going to one directory - PHP problem

B

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?

THANKS!!
 
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!

Cheers,
David
 
Back
Top