SuPHP Auto-Filled PHP.ini Options

Discussion in 'Installation/Configuration' started by mario_antonio, Dec 15, 2011.

  1. mario_antonio

    mario_antonio New Member

    Is it possible for every new SuPHP site to populate automatically the Custom php.ini settings ?

    M.A.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can do this by editing the default value of the database field in phpmyadmin.
     
  3. mario_antonio

    mario_antonio New Member

    Till,

    Thanks for your prompt reply!

    I think you are referring to editing the field custom_php_ini in the table web_domain ...

    But that's for modifying an existent web site ...

    But I want to accomplish is that when creating a new SuPHP site, that field will be populated automatically in the same way that the field php_open_basedir is currently being filled.

    Actually what I want is to enforce those same open_basedir rules to SuPHP sites.

    M.A.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, thats for new sites. You should edit the default value if the field with phpmyadmin, not the current value of existing records.
     
  5. mario_antonio

    mario_antonio New Member

    Till,

    Thanks again!

    I understand now your suggestion ...

    But I think that will not do what I want to accomplish ...
    Since I cannot hard-code in the field a default value as a pattern (template)

    Something like:
    /home/www/clients/client[client_id]/web[website_id]

    My guess is that it needs to be done in one of the scripts that creates the web site ..

    M.A.
     

Share This Page