You are here: Re: Per-server PHP config override « PHP Programming Language « IT news, forums, messages
Re: Per-server PHP config override

Posted by Richard Levasseur on 07/11/06 23:13

Jonathan N. Little wrote:
> Ricky Romaya wrote:
> > Hi,
> >
> > I'm using Apache webserver 1.3.27 and PHP 4.3.0. On my development machine,
> > I have created several virtual hosts. AFAIK PHP configuration is stored in
> > php.ini. I want some of the virtual hosts override some of PHP
> > configuration, while the rest retain the configuration in the php.ini. How
> > can I achieve this? I'm thinking a similar approach like Apache's
> > httpd.conf and .htaccess, but how to do it with PHP.
>
> You can put PHP settings in the .htaccess, depending on your Apache
> configuration, example:
>
> php_flag allow_call_time_pass_reference off
>
> see:
>
> http://www.php.net/manual/en/configuration.changes.php
> PHP: How to change configuration settings - Manual
>
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIO
> http://www.LittleWorksStudio.com


You can also use the php_* directives in the virtual host config
(<VirtualHost> tags), though this requires a restart of apache for the
changes to take effect, unlike .htaccess

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация