When you configure apache to use a password-protected SSL key, you are prompted to provide that password when apache starts. The PID file has not been written at this point, so the init script won't work properly until the password is provided or apache is killed manually. In ubuntu 10.04, when apache is started by upstart, it cannot read input from the the console. You must login, kill it manually, then start apache. I was able to workaround the problem using by adding "stty sane" to /etc/init.d/apache2.
sed -e '/^ENV=/i stty sane' /etc/init.d/apache2|sudo tee /etc/init.d/apache2
Binary package hint: apache2
When you configure apache to use a password-protected SSL key, you are prompted to provide that password when apache starts. The PID file has not been written at this point, so the init script won't work properly until the password is provided or apache is killed manually. In ubuntu 10.04, when apache is started by upstart, it cannot read input from the the console. You must login, kill it manually, then start apache. I was able to workaround the problem using by adding "stty sane" to /etc/init. d/apache2.
sed -e '/^ENV=/i stty sane' /etc/init. d/apache2| sudo tee /etc/init.d/apache2
cdenley@vmware:~$ lsb_release -rd mirror. anl.gov/ pub/ubuntu/ lucid/main Packages dpkg/status mirror. anl.gov/ pub/ubuntu/ lucid/main Packages dpkg/status
Description: Ubuntu 10.04 LTS
Release: 10.04
cdenley@vmware:~$ apt-cache policy apache2 upstart
apache2:
Installed: 2.2.14-5ubuntu8
Candidate: 2.2.14-5ubuntu8
Version table:
*** 2.2.14-5ubuntu8 0
500 http://
100 /var/lib/
upstart:
Installed: 0.6.5-6
Candidate: 0.6.5-6
Version table:
*** 0.6.5-6 0
500 http://
100 /var/lib/