Page 1 of 1

Change XAMPP (Apache) from using port 80

PostPosted: 09. February 2009 07:27
by new2xampp
Greetings:
I would like to run my Apache server on port xxx rather then the default port 80. I have verified that my ISP blocks the following:

FTP - 21 Error: TimedOut
SMTP - 25 Error: TimedOut
HTTP - 80 Error: TimedOut
POP3 - 110 Error: TimedOut
IMAP - 143 Error: TimedOut

I have picked an alternate port and completed the following:
*configured my router to forward to my webserver's IP
* edited the httpd.conf to "listen" on the alternate port (example Listen 1234)

I can then start my apache successfully after my above modifications however I have noticed that clicking the admin button in the Xampp control panel yields a "Connection Interrupted" in firefox and seems to be trying to open http://www.localhost.com
If I type http://localhost:xxxx in the address bar it brings up the Xampp for windows "homepage". So this means to me that editing the httpd.conf file is not the end of my task.

I need to know what else I need to edit to complete the port change. Also at this point I have a clean install except that I have entered passwords and made the mod to the httpd.conf file (i saved the origional).

Thanks for any advice provided.
-Cordially
Anthony

Re: Change XAMPP (Apache) from using port 80

PostPosted: 09. February 2009 07:38
by Wiedmann
I can then start my apache successfully after my above modifications however I have noticed that clicking the admin button in the Xampp control panel yields a "Connection Interrupted" in firefox and seems to be trying to open http://www.localhost.com
If I type http://localhost:xxxx in the address bar it brings up the Xampp for windows "homepage

The XAMPP CP does not read the httpd.conf:
--> if you change the Apache port, you can't use the admin button in CP.

So this means to me that editing the httpd.conf file is not the end of my task. ... I need to know what else I need to edit to complete the port change.

The Apache port for HTTP is configured at one location: "the directive "Listen" in httpd.conf. If you have changed this, there is nothing more to do (XAMPP specific).

(Maybe you must also configure the new port in your fw and router.)

Re: Change XAMPP (Apache) from using port 80

PostPosted: 09. February 2009 07:47
by Izzy
new2xampp wrote:edited the httpd.conf to "listen" on the alternate port (example Listen 1234)
Did you also changed this ServerName localhost:80 in the httpd.conf file?

Re: Change XAMPP (Apache) from using port 80

PostPosted: 09. February 2009 08:03
by new2xampp
Izzy wrote:
new2xampp wrote:edited the httpd.conf to "listen" on the alternate port (example Listen 1234)
Did you also changed this ServerName localhost:80 in the httpd.conf file?


I changed the serverName localhost to my new port after reading your reply. So now we determined there are 2 items for the apache to change if you desire to run on a different port. So far it works fine locally, I will have to test from the office tomorrow.

Thanks,
Anthony