You are here: Home News Run apache in the forground on ubuntu

Run apache in the forground on ubuntu

by Reed O'Brien last modified Nov 09, 2010 02:39 PM
since ubuntu renames the apache daemon binary from httpd to apache2 and requires sourcing the apache envvars it is not possible to start apache in the fg with httpd -X or apache2 -X annoyingly you must do the following sudo -i ; . /etc/apache2/envvars ; apache2 -X
sudo -i . /etc/apache2/envvars; apache2 -X

 

 clever, very clever. 

Share this: