Re: Can I set a different include path per Apache Virtual host?

From: Date: Thu, 10 Jun 2004 15:56:23 +0000
Subject: Re: Can I set a different include path per Apache Virtual host?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188060@lists.php.net to get a copy of this message
Mike Zornek wrote:
On 6/10/04 11:28 AM, "John Nichel" <john@kegworks.com> wrote:
Don't know what to tell you Mike. The site in my sig below is running on a Mac with Apache 1.3.29 (I compiled both php and Apache from source though), and I'm setting the include path for that one (and all the other vhosts) in the httpd.conf. Do you have a php info page up on your site so I can see the configure line for the Entropy version of php?
Here is the info page. And attached is my current httpd.conf file (without trying to set the include_path) should it shed some light on anything. ****************************** Could I see your conf file, or snippet to see how you do it?
Our info file is here... http://www.kegworks.com/phpinfo.php Couldn't see yours, as it wanted a username/password (HTTP auth). According to your httpd.conf, php isn't running a a module...
#LoadModule php4_module        libexec/httpd/libphp4.so
That line (and the corresponding AddModule line) would need to be uncommented if php was installed as a module. Look at the configure line in the php info page for KegWorks, and you'll see this.... --with-apxs=/usr/sbin/apxs The httpd.conf configuration for KegWorks is this.... # KegWorks.com Normal <VirtualHost 208.135.99.99:80>
        ServerName www.kegworks.com
        ServerAlias kegworks.com *.kegworks.net *.kegworks.ca *.kegworks.ie
        DocumentRoot /Library/WebServer/sites/kegworks.com/
        ServerAdmin webmaster@kegworks.com
        php_value include_path ".:/Library/WebServer/sites/phpinclude/kegworks.com"
        ErrorLog logs/kegworks.com-error_log
        CustomLog logs/kegworks.com-access_log common
        ErrorDocument 404 /shoppingcart/customer/pages.php?pageid=55
</VirtualHost> -- John C. Nichel KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#188060) next »