There are mainly two solutions to this problem:
-
Run the Apache2 HTTP daemon with root privileges using
sudo
:sudo service apache2 start
or:
sudo /etc/init.d/apache2 start
-
Change the default port from
80
to something greater than1024
, say2000
,2500
,9000
, etc. A typical port to run when in such situation is8080
sudo vi /etc/apache2/ports.conf netstat -lnp|grep 80 source /etc/apache2/envvars apache2 -S sudo /etc/init.d/apache2 restart apache2 --help vim /etc/apache2/sites-enabled/000-default.conf vim /etc/apache2/apache2.conf vim /etc/apache2/ports.conf
look for or if not there add:
Listen 8080
or any other port of your choice such as port
> 1024
and the selected port is not used by another process.