Change localhost port 80 to 8080

In httpd.conf change the following lines and then restart the application:

  • Listen 80 to Listen 8080
  • ServerName localhost:80 to ServerName localhost:8080

http://localhost:8080

http://localhost:8080/phpmyadmin/

When you press “Start” the application can still say that you have an error like “Port 80 in use by “Unable to open process” with PID…” but it will still work.

If the error includes “Port 443 in use by “Unable to open process” with PID…” you need to change both httpd.conf and httpd-ssl.conf.

In httpd-ssl.conf change:

  • Listen 443 to Listen 4433
  • <VirtualHost _default_:443> to <VirtualHost _default_:4433>
  • ServerName www.example.com:443 to ServerName www.example.com:4433