RECOMMENDED ARTICLES
Launching APACHE daemon in other different port than 80
NOTE: Tested in GNU/Debian Sid (Ubuntu should work too)
Apache2 is a web server daemon which usually listens at port 80.
We are going to change the port Apache2 server listens into 8080.
First of all we need apache 2 daemon installed in our system:
#aptitude install apache2.2-common
We edit /etc/apache2/ports.conf file:
Listen 8080
also edit /etc/apache2/sites-available/default file:
VirtualHost *:8080
Time to start (or restart) apache web server:
#apache2ctl start
#apache2ctl restart
If we get this warning:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerNameWe solve it executing this command:
echo "ServerName localhost" >> /etc/apache2/httpd.conf
If everything has gone fine you should be able to see your local web pages in a web browser:
http://localhost:8080