custom php.ini via suphp

Discussion in 'Installation/Configuration' started by Cirox, Sep 22, 2007.

  1. Cirox

    Cirox New Member

    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"
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. Cirox

    Cirox New Member

    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?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    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.

Share This Page