Installing Apache HTTP server involves compiling and installing the server. For steps to to compile and install the server follow the instructions.
There could be a scenario where once you execute the command
apachectl -k start
you get something like this
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
The reason is that the command needs to be executed by the root and for Ubuntu the following command would do the trick
sudo ./apachectl -k start
once done hit the http://localhost/ to see something like It Works!
Vikas Hazrati
Tuesday, December 16, 2008
Another easier way is to use sudo tasksel, this would give you an option to install the entire LAMP infrastructure