RE: [PHP] Can I set a different include path per Apache Virtual host?
| From: | James Harrell | Date: | Wed, 09 Jun 2004 21:50:34 +0000 |
| Subject: | RE: [PHP] 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-187989@lists.php.net to get a copy of this message | ||
Oh- and don't forget to restart apache after your changes.
james
>-----Original Message-----
>From: James Harrell [mailto:jharrell@copernicusllc.com]
>Sent: Wednesday, June 09, 2004 5:44 PM
>To: Mike Zornek; php-general@lists.php.net
>Subject: RE: [PHP] Can I set a different include path per Apache Virtual
>host?
>
>
>Hi Mike,
>
>I'm not certain if it can be configured in a VirtualHost block,
>though I know it can be configured in a Directory block (which
>is equally as useful).
>
>The problem I see below is you're using the wrong declaration;
>instead of php_value, use php_admin_value, ie:
> php_admin_value include_path "...."
>
>If that doesn't fix it, add a <Directory ...> </Directory> block
>within the virthost declaration, and use php_admin_value there.
>
>Regards,
>James
>
>>-----Original Message-----
>>From: Mike Zornek [mailto:listguy@mikezornek.com]
>>Sent: Wednesday, June 09, 2004 5:33 PM
>>To: php-general@lists.php.net
>>Subject: [PHP] Can I set a different include path per Apache Virtual
>>host?
>>
>>
>>Can I set a different PHP include path per Apache Virtual host?
>>
>>I am trying this:
>>
>><VirtualHost *>
>> ServerAdmin zornek@asmp.org
>> DocumentRoot /Library/WebServer/Websites/stage/content
>> ServerName stage.asmpweb.org
>> ErrorLog /Library/WebServer/Websites/stage/logs/error_log
>> CustomLog /Library/WebServer/Websites/stage/logs/access_log common
>> <IfModule mod_php4.c>
>> php_value include_path
>>".:/usr/local/php/lib/php:/Library/WebServer/Websites/stage/content/includes
>>"
>> </IfModule>
>></VirtualHost>
>>
>><VirtualHost *>
>> ServerAdmin zornek@asmp.org
>> DocumentRoot /Library/WebServer/Websites/dev/content
>> ServerName dev.asmpweb.org
>> ErrorLog /Library/WebServer/Websites/dev/logs/error_log
>> CustomLog /Library/WebServer/Websites/dev/logs/access_log common
>> <IfModule mod_php4.c>
>> php_value include_path
>>".:/usr/local/php/lib/php:/Library/WebServer/Websites/dev/content/includes"
>> </IfModule>
>></VirtualHost>
>>
>>But I don¹t think its working.
>>
>>~ Mike
>>-----
>>Mike Zornek
>>Web Designer, Media Developer, Programmer and Geek
>>Personal site: <http://MikeZornek.com>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>