Updating Droplet from Ubuntu 14.04 to 16.04 with ispconfig installed on it
by dpadmin | Mar 22, 2017 | linux, tech talk |
- Take a backup 🙂
- run do-os-update
- apt install php-cgi php-fpm
- 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)
- reboot
- 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
- go to the ispconfig console
- edit the server config(system>server config>select the server)
- Go to the Web tab and scroll down to PHP Settings
- 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
- Go to the FastCGI tab and set:
- 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)
- Now go to Tool>Resync click the All services and select the server and then select start
- Go here to setup apache for HTTP/2
Related