Hello to all, I'm trying to find out if each site can have their own php.ini file or better yet take control over what php model they need to have installed per site. Can this be done by dropping the php.ini file in each site? If so where would I place it at? Thanks
If you use suphp you can have a php.ini per site. If you use mod_php you cna set php.ini values with the php_admin_value and php_admin_flag commands diectly in the apache directives field. For details of these commands please take a look at the php manual.
Thank you for your help but I'm still having problems with this. Is their any tutorials that show mw how to do this?
Accoridng to what I see in the tutorail (The Perfect Server - OpenSUSE 11.1). I'm using apache2-mod_php5.
Take a look at http://www.askapache.com/php/custom-phpini-tips-and-tricks.html According to the link, you can put something like Code: SetEnv PHPRC /var/www/web1 into the Apache Directives field in ISPConfig (provided that the custom php.ini is in the /var/www/web1 directory).
Hi there, this is my first post in this forum I am not sure I have to open a new post...anyway I have a similar problem: I tried to set a custom php.ini file for each domain I have and I followed this guide but it does not work. In my Apache error file I could read "Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored". . I searched a lot but could not find a solution. I use Debian Lenny, Apache/2.2.9 (Debian), PHP 5.2.6. Any idea? tahnx in advance
mmmm I have installed both libapache2-mod-php5 and libapache2-mod-suphp....maybe is this the problem? thanx for your reply
It happens also for me on 3.0.3 beta i switched page from suPHP to ModPHP, but then line PHPIniDir /var/www/conf/web4 appears in config and i cant change the site as it creates site domain.tld.vhost.err why this happens in ModPHP ?
Oh, there was only two sites, so when i commented out PHPINIDir it works ok Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored means that there can be PHPINIDir just once in whole apache2 configuration file... how to fix this error ? oops, this has to be posted in ISPCONFIG3 section.... i made request in bugtrack http://bugtracker.ispconfig.org/index.php?do=details&task_id=1320&project=3&order=id&sort=desc