[ubuntu-uk] Lost Apache2 PID

Jim Kissel jlk at osml.eu
Wed Oct 17 13:07:41 BST 2007

taufanlubis wrote:
> Hi all.
> I suddenly lost my /var/run/apache2.pid
> Now, I can't run my apache2.
> Have any of you ever deal with it?

sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 start

depending on the state of your machine.  The start-up script should/will 
create a new /var/run/apache2.pid

Restart will error non-fatally if the pid is missing, but should 
continue and (re)start apache for you.

> Thanks
> Taufan Lubis
> www.taufanlubis.wordpress.com

People choose Microsoft Windows for their PC in the same manner
that the citizens of Soviet Russia elected the General Secretary
of the Communist Party during the cold war.

More information about the ubuntu-uk mailing list