different php.ini for virtual host on apache2 with mod_php5
different php.ini for virtual host on apache2 with mod_php5
am 17.03.2010 08:58:15 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 = 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 libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.4
server-side, HTML-embedded scripting language (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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: different php.ini for virtual host on apache2 withmod_php5
am 17.03.2010 11:32:18 von Ashley Sheridan
--=-bViR9NaZTviFZu3fOIHO
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Wed, 2010-03-17 at 12:34 +0200, Rene Veerman wrote:
> i dunno about overriding the entire php function, but you can disable
> mail() in the virtualhost section of your apache config with the
> following line:
>
> php_value disabled_functions mail
>
> On Wed, Mar 17, 2010 at 9:58 AM, Stanislaw V. Smetanin
> wrote:
> > 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 = 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 libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.4
> > server-side, HTML-embedded scripting language (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/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
What about disabling mail altogether in favour of a mailer that requires
a login to use? That way, you can easily set quotas and keep track of
all emails sent by each client on your hosting.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-bViR9NaZTviFZu3fOIHO--
Re: different php.ini for virtual host on apache2 with mod_php5
am 17.03.2010 11:34:08 von Rene Veerman
i dunno about overriding the entire php function, but you can disable
mail() in the virtualhost section of your apache config with the
following line:
php_value disabled_functions mail
On Wed, Mar 17, 2010 at 9:58 AM, Stanislaw V. Smetanin
wrote:
> 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 =A0libapache2-mod-php5 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A05.2.10.dfsg.=
1-2ubuntu6.4
> =A0 =A0 =A0 =A0 =A0 =A0 server-side, HTML-embedded scripting language (Ap=
ache 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/
>
> --
> 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
Re: different php.ini for virtual host on apache2 with mod_php5
am 17.03.2010 13:46:07 von Shawn McKenzie
Stanislaw V. Smetanin wrote:
> 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 = 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 libapache2-mod-php5 5.2.10.dfsg.1-2ubuntu6.4
> server-side, HTML-embedded scripting language (Apache 2
> module)
>
> stanislaw@smetanin:~$ apache2 -v
> Server version: Apache/2.2.12 (Ubuntu)
>
> Thanks to the community for any help.
>
>
....
PHPINIDir /var/www/whatever
....
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php