StackScriptID=1 problems and errors with ubuntu 16.04

This linode stackscript:

~~[https://www.linode.com/stackscripts/view/1-linode-StackScript+Bash+Library " target="_blank">](https://www.linode.com/stackscripts/vie … h+Library ">https://www.linode.com/stackscripts/view/1-linode-StackScript+Bash+Library](

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.

1 Reply

It hasn't been updated in 3 years, and while it's marked as working with 16.04, it's unlikely that every function will work, since things have changed. (Note that it's marked as working with every distro, though there are several functions which are very Debian/Ubuntu specific.) Linode likely hasn't been able to dedicate time to updating every function to work in a while. For now, you'll need to look at what each function does and adapt it to your needs.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct