Page 1 of 1

Changing httpd.conf from port 80 to 8080

PostPosted: 21. March 2009 22:25
by ThomasW
I am running Windows Vista in 64-bit mode. I installed the XAMPP control panel and then edited the httpd.conf -- lines Listen 80 and ServerName localhost:80 to both be 8080. Saved the changes and restarted the XAMPP control panel.

The control panel still indicates that Apache is running on port 80 instead of the 8080 value I changed in the httpd.conf file. When I try to load http://localhost:8080/ or http://localhost/ in my IE web browser, the XAMPP welcome screen webpage does not load.

Have I installed XAMPP and Apache properly? How do I make Apache recognize and use the port 8080 based on the changes that I made to the httpd.conf file?

Thanks!

Re: Changing httpd.conf from port 80 to 8080

PostPosted: 21. March 2009 22:37
by Izzy
Ignore the message in the XAMPP Control Panel as it is hard coded with port 80.

What can you see if you go to http://127.0.0.1:8080

BTW after changing the Listen directive in the httpd.conf file you will always have to add :8080 at then end of any address for the server in your browser, so http://localhost will not work.

Re: Changing httpd.conf from port 80 to 8080

PostPosted: 21. March 2009 23:13
by ThomasW
Browsing to http://127.0.0.1:8080/ still returns an error that IE cannot display the webpage. As does the http://localhost/ and http://localhost:8080/

I've tried it both ways with using port 80 and port 8080.

I have also shut down and restarted Windows Vista between each change that I made to the httpd.conf file before I restarted the XAMPP control panel.

Re: Changing httpd.conf from port 80 to 8080

PostPosted: 21. March 2009 23:17
by Izzy
In the XAMPP Control Panel (XCP) is Apache and MySQL showing a green running indication?

If so, then clear your browser's cache as you may be receiving a cached page.

Re: Changing httpd.conf from port 80 to 8080

PostPosted: 22. March 2009 00:44
by ThomasW
Yes. Under "Modules" both the Apache and MySql are marked with a green "Running" indication.

On Vista, I am running Windows Firewall. I checked the Exemptions settings on Firewall for allowing what programs can run during Firewall and Apache HTTP Server is in the list and has a checkmark in the box indicating that it is being allowed to run.

Are there any other Windows options or settings that I should be changing so that the XAMPP welcome screen can open and run?

Thanks!

Re: Changing httpd.conf from port 80 to 8080

PostPosted: 22. March 2009 00:55
by Izzy
Make sure in your firewall that all the ports that XAMPP uses are allowed through.
xampp-portcheck.exe will give you the ports and make sure they are only occupied by the XAMPP components that are running - if you try this portcheck with the Apache and MySql stopped then they should all show free.

What do you see if you go to http://localhost:8080/xampp/index.php or http://127.0.0.1:8080/xampp/index.php after you changed the Listen directive.

If you can I would revert your httpd.conf file back to the defaults that you had when you installed XAMPP then we can dispense with the 8080 bit and then, after we get it up and running, you can change the Listen directive if you need to, it makes it easier to troubleshoot.