Select Page
  1.  Take a backup 🙂
  2. run do-os-update
  3. apt install php-cgi php-fpm
  4. apt install linux-image-4.4.0-28 linux-headers-4.4.0-28 (this is because digital ocean don’t have 4.4.0-66 at the moment)
  5. reboot
  6. if the file system is mounted read only you’ll need to do
    • blkid which gave me(/dev/vda1: LABEL=”DOROOT” UUID=”d1e1f550-6698-4cdd-899c-fa6ed6f8d15c” TYPE=”ext4″ PARTLABEL=”primary” PARTUUID=”4cdd99e6-9c0d-4fef-bcf1-5204b5ae9eb1″)
    • mount -rw -o remount UUID=d1e1f550-6698-4cdd-899c-fa6ed6f8d15c /
    • edit /etc/fstab and change the UUID of the root partition eg
      UUID=d1e1f550-6698-4cdd-899c-fa6ed6f8d15c / ext4 errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 1
    • reboot
  7. go to the ispconfig console
  8. edit the server config(system>server config>select the server)
  9. Go to the Web tab and scroll down to PHP Settings
    1. Change the setting to:
      Apache php.ini path: /etc/php/7.0/apache2/php.ini
      CGI php.ini path: /etc/php/7.0/cgi/php.ini
      PHP-FPM init script: php7.0-fpm
      PHP-FPM php.ini path: /etc/php/7.0/fpm/php.ini
      PHP-FPM pool directory: /etc/php/7.0/fpm/pool.d
      PHP-FPM start port: 9010
      PHP-FPM socket directory: /var/lib/php7.0-fpm
      PHP open_basedir: [website_path]/web:[website_path]/private:[website_path]/tmp:/var/www/[website_domain]/web:/srv/www/[website_domain]/web:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php
      Check php.ini every X minutes for changes: 1 0 = no check
      Default PHP Handler: PHP-FPM
  10. Go to the FastCGI tab and set:
    1. FastCGI starter path: /var/www/php-fcgi-scripts/[system_user]/
      FastCGI starter script: .php-fcgi-starter
      FastCGI Alias: /php/
      FastCGI php.ini Path: /etc/php/7.0/cgi/
      FastCGI Children: 8
      FastCGI max. Requests: 5000
      FastCGI Bin: /usr/bin/php-cgi
      FastCGI config syntax: New (apache 2.2)
  11. Now go to Tool>Resync click the All services and select the server and then select start
  12. Go here to setup apache for HTTP/2