How to upgrade php when installed from source

Discussion in 'Installation/Configuration' started by craigfanman, Dec 6, 2016.

  1. craigfanman

    craigfanman Member

    Hi. I run a few old centos 6 servers that came with php 5.3. I wanted php 7 so I followed this guide https://www.howtoforge.com/how-to-u...p-fpm-and-fastcgi-with-ispconfig-3-centos-6.3 and got them both running next to each other, all fine.

    However, I note that php 7.1 is now out, so to upgrade I'd have to do this process again, build php, install, and then go through ispconfig and change loads of sites from 7.0 to 7.1.... Is there an easier way to do it? Obviously if it was in the yum repo I could just yum update and voila, but I couldnt find a repo with php 7 for centos 6 so ended up doing this manually.

    Any advice much appreciated thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yu can e.g. use a symlink which points to the latest php 7.x version and use the symlinked path in the ispconfig settings. this way you can compile a new php version, then step php-fpm, change the symlink and start php-fpm again to change all sites.
     

Share This Page