I installed ispconfig with suphp support like described in howto. I need a special php.ini file for every vhost. So i had to set: suPHP_ConfigPath /var/www/webX/etc in the vhost. Now the question is, how to setup automaticly this directive to every apache config vhost file when a web is created? I know ispconfig had to copy the php.ini file and change some values für every web, like open_basedir for example? How can i prevent ispconfig from overwriting my directive when put "suPHP_ConfigPath /var/www/webX/etc" in apache directives field of the website? I think the path is: "/etc/apache2/vhosts/Vhosts_ispconfig.conf"
ISPConfig did not overwrite values that you added in the apache directives field. It is the purpose of this field to insert values into the vhost that does not get overwritten.
ok, my misunderstanding. So i look for a way to fill the master php.ini with variables und to copy a custom php.ini to each dir when a new web is created. Is this possible? Perhaps some feature for future relases?
You can add your code to copy the php.ini file and replace the variables in the function make_vhost in the file /root/ispconfig/scripts/lib/config.lib.php Yes. I planned to add such a function in a future release.