httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <joyd...@infoservices.in>
Subject Re: [users@httpd] different php.ini for virtual host on apache2 with mod_php5
Date Wed, 17 Mar 2010 10:38:50 GMT
On 03/16/2010 06:24 PM, Matus UHLAR - fantomas wrote:
> On 16.03.10 11:50, Станислав Сметанин wrote:
>   
>> To: users@httpd.apache.org
>>
>> I want to disable mail() function in the one of virtual hosts' that
>> use PHP(I use mod_php for apache2), and regarding to the
>> http://www.php.net/manual/en/ini.core.php#ini.disable-functions I
>> can't use directives like php_value, etc, because value of
>> disable_functions can be set only in php.ini, but I don't want to
>> disable mail() on the all of my virtual hosts, just on one.
>>
>> the question:
>> Can I use different php.ini for virtual hosts, in my case I want to
>> use php.ini for one host, where disable_functions = mail will be.
>>     
>   


Yes you can. Do place the config in .htaccess and it will work for that
particular vhost or do place the config in that particular vhost.

Cheers


-- 
জয়দীপ বক্সী


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message