Does anyone know of any reason why Apache2 and MySQL do not run after either a server reboot or apt-get update?
I am currently running Ubuntu 12.04 LTS server
There are the corresponding files in /etc/init.d/ for apache2 and mysql however they only work by manually starting / restarting. They never run automatically.
Ideally I would like them to run constantly as the website running needs them constantly.
The apache2 header init doesn't really different from any other i've seen:
#!/bin/sh ### BEGIN INIT INFO # Provides: apache2 # Required-Start: $local_fs $remote_fs $network $syslog $named # Required-Stop: $local_fs $remote_fs $network $syslog $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: true # Short-Description: Start/stop apache2 web server ### END INIT INFO
If anyone can help me in where to look or has seen this issue before, please I'd appreciate the help.
After looking up the folder /etc/rc2.d/ there wasn't any link for mysql so i've now ran update-rc.d mysql defaults and it is in there now. There was already one for apache2
Seems that the error in apache2 error.log was a sigfault which is when the site went down