• 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

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