Re: php.ini: how to load different ini file depending on host?
| From: | John Nichel | Date: | Mon, 20 Jan 2003 05:10:57 +0000 |
| Subject: | Re: php.ini: how to load different ini file depending on host? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132209@lists.php.net to get a copy of this message | ||
I don't think you can load a different ini based on virtual host. However, you can override most php.ini values in either the httpd.conf or in a .htaccess file. I'm running about 10 vhosts on one box, all with the same IP, and I just use .htaccess, ie...
php_value include_path ".:/webserver/vhosts/beta/include"
to set the include path for my "beta" webserver. Just put the .htaccess file in the document root for that particular vhost.
Jean-Christian Imbeault wrote:
On my web server (Apache) I have two sites and I would like each site to use a different php.ini. What is the correct way for me to have each site use it's own php.ini file? I figure it's a setting in the apache conf file but I can't figure out which ... Thanks, Jc-- By-Tor.com It's all about the Rush http://www.by-tor.com