I am setting up a Virtual Machine with Ubuntu 10.04 Lucid Lynx Server.
I have been reading the section on setting up Apache with an SSL certificate within the book : "Beginning Ubuntu LTS Server Administration - 2nd Edition"
Contrary to the official documentation, the book advises to always use a 'pass phrase' when setting up Apache with SSL (to protect your reputation if the private SSL key is compromised).
If you set-up a 'pass phrased SSL key' then you are required to type a pass phrase each time you start Apache. This is a slight problem if Apache starts up automatically when Ubuntu boots up.
On page 338 it then offers a tip to prevent Apache from starting up at boot time.
...To ensure that it doesn't start automatically, enter the line
NO_START=0
in/etc/default/apache2
I have modified that /etc/default/apache2
file accordingly, rebooted and Apache2 is still trying to start-up upon boot. The NO_START=0
line seems to have no effect.
As I look through forums on the web, it seems that most people have issues and then end up skirting the problem by simply using a certificate without a pass phrase.
Does anyone know the the best practice method of preventing Apache from starting up at boot time for a passphrased secure SSL'd Apache?
/etc/default/apache2
is being read? Depending on your configuration, this may not be the case. If the answer is yes, I recommend you file a bug. Can you preproduce this problem on Debian?# vim /etc/init.d/apache2
and could not see any mention ofNO_START
within it. So, I guessed it wasn't a variable that made a difference. I'm not experienced enough to know if its a bug or not, though. I haven't tried it on Debian per se - just 'Ubuntu 10.04 server' installed as 'minimal virtual machine' on VMWware player. With Apache/2.2.14 (Ubuntu)/etc/init.d/apache
that is not conclusive. It might be read somewhere else. However, it is possible you are referring to some distribution specific documentation. I don't know what pg 338 you are referring to. The page you linked to was an Ubuntu web page entitled 'Certificates'.