You are here: Re: php.ini and Virtual Hosts « All PHP « IT news, forums, messages
Re: php.ini and Virtual Hosts

Posted by kleprado on 09/29/16 11:37

It is possible to define some PHP configuration inside the apache conf.
Example :

<VirtualHost *>

ServerName *******

DocumentRoot /usr/share/horde/
<Location />
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

php_flag register_globals off
</Location>

ErrorLog /var/log/apache2/mail/error.log

LogLevel warn

CustomLog /var/log/apache2/mail/access.log combined
ServerSignature Off

</VirtualHost>


Here is the *register_globals* param that is defined.
Be carefull : the syntax depends on the param (see manual)

But I don't know how to specify a particular php.ini for each vhost

 

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

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