unique php include_path in httpd.conf
am 06.04.2010 01:06:33 von ad
I have several virtual hosts on a dedicated server. In a IFmodule
mod_php5c container in an httpd.conf include file I have the following
to create a unique include path for each virtual host:
IfModule mod_php5.c>
php_value include_path ".:/home/virtual/site#/path/to/include"
php_admin_flag safe_mode off
For one of the virtual hosts I've set up a dev site in a subdomain at
dev.site#.com for development.
In the root directory of this development site I have an .htacces file
to create another unique include_path solely for this development
subdomain.
php_value include_path ".:/home/virtual/site#/path/to/dev/includes"
Also in the httpd.conf I have
Allow from all
AllowOverride All
Order allow,deny
The configuration is CentOS 5.3, Apache/2.2.3, PHP 5.1.6
I recently upgraded the OS from FC6 and the PHP version and I have not
been able to get the include_path to change for this dev.subdomain.
Even after restarting apache it PHPinfo tells me it is reading the
server php.ini and the virtual host include path for the httpd.conf but
it is ignoring the .htaccess file.
I've even tried putting the php.ini with specific settings in the
/home/virtual/site#/root directory to no avail.
Any ideas how to make this work or even a better set up?
Thanks in advance.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: unique php include_path in httpd.conf
am 06.04.2010 04:05:58 von Nilesh Govindrajan
On 04/06/10 04:36, ad wrote:
> I have several virtual hosts on a dedicated server. In a IFmodule
> mod_php5c container in an httpd.conf include file I have the following
> to create a unique include path for each virtual host:
>
> IfModule mod_php5.c>
> php_value include_path ".:/home/virtual/site#/path/to/include"
> php_admin_flag safe_mode off
>
>
> For one of the virtual hosts I've set up a dev site in a subdomain at
> dev.site#.com for development.
> In the root directory of this development site I have an .htacces file
> to create another unique include_path solely for this development
> subdomain.
>
> php_value include_path ".:/home/virtual/site#/path/to/dev/includes"
>
> Also in the httpd.conf I have
>
> Allow from all
> AllowOverride All
> Order allow,deny
>
>
>
> The configuration is CentOS 5.3, Apache/2.2.3, PHP 5.1.6
>
> I recently upgraded the OS from FC6 and the PHP version and I have not
> been able to get the include_path to change for this dev.subdomain. Even
> after restarting apache it PHPinfo tells me it is reading the server
> php.ini and the virtual host include path for the httpd.conf but it is
> ignoring the .htaccess file.
> I've even tried putting the php.ini with specific settings in the
> /home/virtual/site#/root directory to no avail.
>
> Any ideas how to make this work or even a better set up?
>
> Thanks in advance.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
Eh. Posting this everwhere PHP-General, PHP-DB and now on the HTTPD list
too !
Try using mod_fcgid, and in the initializer script set PHPRC variable to
a custom php.ini with the required include_path configuration.
--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मà¥à¤°à¤¾ à¤à¤¾à¤°à¤¤ महान !
मम à¤à¤¾à¤°à¤¤: महतà¥à¤¤à¤® à¤à¤µà¤¤à¥ !
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org