This is a discussion on running php with virtual servers within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I'm trying to get php to work with virtual servers, I've already posted to a php group ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I'm trying to get php to work with virtual servers, I've already posted to a php group and was told to try the apache group since it would seem that's where my problem lies. Anyway, I have Solaris 9/Apache 1.3.31/PHP 5.1.4 that I compiled from source code and installed. I have multiple virtual web servers configured in httpd.conf and php scripts run only if they are placed in my first VirtualHost DocumentRoot directory as defined in httpd.conf: <VirtualHost X.X.X.X:80> DocumentRoot /usr/local/apache/sites/webdocdir </VirtualHost> I would like to get php scripts to run in one of my other virtual servers defined in httpd.conf. Right now, my $_SERVER[DOCUMENT_ROOT] gets defined (I think) from httpd.conf such that it points to /usr/local/apache/sites/webdocdir. This I can see from the results of a phpinfo(). Is there some way of configuring Apache and/or php so that I am not forced to put php scripts in /usr/local/apache/sites/webdocdir? thanks for any help, George |