different php.ini for virtual host on apache2 with mod_php5
different php.ini for virtual host on apache2 with mod_php5
am 16.03.2010 08:50:12 von root
Hi there.
the problem:
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-functi ons 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 =3D mail will be.
Here backgrounds:
stanislaw@smetanin:~$ uname -rv
2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010
stanislaw@smetanin:~$ dpkg -l libapache2-mod-php5 | tail -n1
ii=A0 libapache2-mod-php5 =A0=A 0 =
=A0 5.2.10.dfsg.1-2ubuntu6.4
server-side, HTML-embedded scripting l=
anguage (Apache 2
module)
stanislaw@smetanin:~$ apache2 -v
Server version: Apache/2.2.12 (Ubuntu)
Thanks to the community for any help.
--
Stanislaw Smetanin. http://stanislaw.su/
------------------------------------------------------------ ---------
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: different php.ini for virtual host on apache2
am 16.03.2010 13:54:03 von Matus UHLAR - fantomas
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-functi ons 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.
This is apache mailing list, and your question belongs to PHP list/forum
etc. You can also search PHP docs on http://www.php.net/
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Emacs is a complicated operating system without good text editor.
------------------------------------------------------------ ---------
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: different php.ini for virtual host on apache2 withmod_php5
am 17.03.2010 11:38:50 von joydeep
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-functi ons 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 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