(Strangley) My installed Apache2 does not start up when logging in to Linux Mint.
Running this command gets it going:
sudo service apache2 start
How should I attempt to start up this service upon each login?
|
(Strangley) My installed Apache2 does not start up when logging in to Linux Mint. Running this command gets it going:
How should I attempt to start up this service upon each login? |
|||
|
Since Mint is based on Ubuntu, and Ubuntu has switched to Upstart, the Upstart Cookbook has all of the info for having a service start on boot, or at any specified runlevel. This site Gives a detailed cookbook for starting Apache at boot. |
||||
|
Debian (Ubuntu/Linux Mint)rcconf (CLI-GUI)
update-rc.d
or
RedHat/Fedora/CentOSchkconfig
or
|
|||||||||
|
|
At shutdown, I saw an error:
The thing was, That normally shouldn't be a problem, I thought. But as far as I know, my home partition is encrypted. Therefore, I'm guessing that Apache could not read the virtual site file when it was loading. The file wasn't accessible until I type in my password. A complex situation, and took months to work it out :) |
|||
|
|
|
Another cause of the same problem is the priority of the apache links in rc[0-6].d. Mine were S90 and K09, and Apache wouldn't start at boot. Setting the priorities at their defaults, 20, worked for me. The existing links need to be removed first.
|
|||
|
|
~/.xinitrc, which will be run at startup. – MaxMackie Mar 8 '12 at 19:25~/.xinitrcis run at login time, which isn't right. Apache needs to be started by root at boot time. – Gilles Mar 8 '12 at 23:23