max_execution_time vhost

Discussion in 'Installation/Configuration' started by nopnop, Feb 4, 2014.

  1. nopnop

    nopnop New Member

    Hi !

    I'm using a debian 7 + ispconfig 3.0.5. using mod_fcgid

    I'd like to specify, a max_execution_time in each Vhost configuration file, how can I do please ?

    I'd try to add :
    php_value max_execution_time 300 in Vhost configuration file

    but won't work. The parameter in PHP.INI override my modification in vhost configuration file.

    thank you for your help
  2. anhlqn

    anhlqn New Member

    I think ISPConfig let you set a custom php or apache setting in the website option.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The syntax:

    php_value max_execution_time 300

    is for mod_php only. To set this for php_fcgi, just enter:

    max_execution_time = 300

    in the custom php.ini field of the website.
  4. nopnop

    nopnop New Member


    I have follow your recommandation :


    And then I have restart apache2,

    but the probleme still the same :-/
    when I do a phpinfo, the configuration of the 'master' PHP.INI is keeping,

    any idea ?
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    First, do not restart apache, its not required. Just wait 60 seconds until the configuration file has been written. You can see that in the jobqueue of the monitor, if the jobqueue is empty, then all changes have been written to disk.
  6. nopnop

    nopnop New Member

    thank you.

    is it a good idea to :

    grep FCGI /etc/apache2/sites-available/

    and modify the wrapper, to add -d max_execution_time 300
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    No, for 2 reasons:

    1) Its not nescessary.
    2) Your manual changes will get removed automatically anyway.

    Check with phpinfo() output which php.ini is used by the scriptsin that site.
  8. nopnop

    nopnop New Member

    it work fine, because of you.

    Thank you till !

    By the way, did you have any recommandations (for security) in the php.ini parameters, for hosting some small Wordpress Website ?

    thank you

Share This Page