upgraded ispconfig - add site very slow to load

Discussion in 'Installation/Configuration' started by craigfanman, Jan 19, 2018.

  1. craigfanman

    craigfanman Member

    hi i just updated to the latest ispconfig, now when you click 'add site' it takes about 1 minute to load
    I was getting 500 timeouts on web_vhost_domain_edit.php
    [Fri Jan 19 12:49:34.289556 2018] [fcgid:warn] [pid 32701] [client] mod_fcgid: stderr: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /usr/local/ispconfig/interface/web/sites/web_vhost_domain_edit.php on line 745

    so I increased max_execution_time and now it does load after about 60 seconds.

    any ideas to fix this? thanks
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the load of your server, e.g. with top command.
  3. craigfanman

    craigfanman Member

    thanks, this is a multi server setup with:
    ispconfig master server
    multiple web servers

    so the ispconfig server is only doing ispconfig nothing else, load never goes above 0.1

    all other functions are fast as normal its jst this one form page that is slow so I guessed it would be something to do with the upgrade.
    the error says line 745 which is this:
    $ssl_domains = array_merge($ssl_domains, array($tmp["domain"],'www.'.$tmp["domain"],'*.'.$tmp["domain"]));
    so im not sure what thats doing exactly, I checked the source code to see if this was recently added
    but no its always been there.
  4. craigfanman

    craigfanman Member

    checked mysql slow query log in case the query was taking ages, nothing in there
  5. craigfanman

    craigfanman Member

    mmm so if i comment out this line
    //$ssl_domains = array_merge($ssl_domains, array($tmp["domain"],'www.'.$tmp["domain"],'*.'.$tmp["domain"]));
    the add site form loads immediately as expected. probably shouldnt just leave that off in case theres unintended consequences so hope you can advise if thats necessary or not?
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Really strange, I don't see any problems on my servers here and this function simply merges two arrays, so nothing special and especially nothing that would take longer than a millisecond or even less.
  7. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Could you please insert a line in front of the "foreach($tmpd ..." that dumps the contents of $tmpd and $ssl_domains array?
    var_dump($tmpd, $ssl_domains);
  8. craigfanman

    craigfanman Member

    this fixed itself by the :)

Share This Page