Mass php upgrade and resync question

Discussion in 'General' started by hkjeff, Nov 7, 2018.

  1. hkjeff

    hkjeff New Member

    I am going to upgrade all the site php version to 7.1. Already have some sites up and running with the compiled php 7.1 fpm.

    My plan is:
    1) Backup /etc/apache2/sites-available/
    2) Update the mysql db "web_domain.fastcgi_php_version" to php 7.1
    3) Run resync -> websites to regenerate the config

    But as I remember the resync -> websites is very slow (update config file and reload apache for each site). Is it possible to just rewrite the conf with the new setting and then restart the apache once?

    Thanks.
     
  2. nhybgtvfr

    nhybgtvfr Active Member

    if the php change requires any changes in the websites vhost configuration file then a resync is required, just restarting apache will not do that.

    I believe if you disable 'test apache configuration on restart' in the system -> server config -> selected server -> web
    then it will only restart apache once, at the end of the resyncs, not after each websites vhost file gets rebuilt.

    that believe is from a response in another thread though, can't locate it right now though, but from memory, it was a comment by Till.
    I've not tried it though, so I have no idea if, or how much that speeds up the resync / vhost rebuild process though.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, disable apache config check under system > server config.
     

Share This Page