StackScriptID=1 problems and errors with ubuntu 16.04
which is supposed to make getting up and running with apache/php/mysql quicker is just not working. I have spent several days trying to debug it
Firstly, the update fails with grub saying the local config file has changed. The current recommended solution is to chose "keep current version". The other issue with this is you have to open a lish console and manually accept these options - its not unattended.
secondly, it tries to install php5 which fails. Apparently ubuntu 16 now defaults to php 7.
This will fail with an error saying no package found:
phpinstallwithapache && phptune
Instead, had to do this
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql zip unzip php7.0-zip
This will install php 7.0 intead of 5.6, and doesnt do any of the tuning.
Next the apache install fails.
apacheinstall && apachetune 35 && apachevirtualhostfrom_rdns
gives a multitued of errors, starting with:
apache2 is already installed at the requested version (2.4.18-2ubuntu3.5)
apache2 is already installed at the requested version (2.4.18-2ubuntu3.5)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
ERROR: Site default does not exist!
No candidate version found for apache2-mpm-prefork
No candidate version found for apache2-mpm-prefork
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Does anyone know how to work out which lines are causing the errors, and how to fix?
all lines after the apache line fail to run, so all my user creation, firewall setup etc. also fails.
so far I have not found a way to install apache, php, mysql etc. in linode for ubuntu 16.
I am surprised that linode doesnt maintain scripts to do the most basic lamp installs, which would save its users days of effort. I looked through the public scack scripts and most of them are 2 years old, and also fail.