Change XAMPP (Apache) from using port 80

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Change XAMPP (Apache) from using port 80

Postby new2xampp » 09. February 2009 07:27

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
new2xampp
 
Posts: 2
Joined: 09. February 2009 06:35

Re: Change XAMPP (Apache) from using port 80

Postby Wiedmann » 09. February 2009 07:38

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.)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Change XAMPP (Apache) from using port 80

Postby Izzy » 09. February 2009 07:47

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?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Change XAMPP (Apache) from using port 80

Postby new2xampp » 09. February 2009 08:03

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
new2xampp
 
Posts: 2
Joined: 09. February 2009 06:35


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 30 guests