Redirect from localhost/xampp/ to localhost:85/xampp/

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

Redirect from localhost/xampp/ to localhost:85/xampp/

Postby patelsp » 08. November 2009 22:39

Hi Everyone,

I installed xampp successfully with tomcat. But since the ports are confilicting I wanted to change the apache port to 85.

I figured out how to change the port, but in the XAMPP control panel there is the "ADMIN" button. When I click it, it takes me to http://localhost/xampp/, how to I redirect to http://localhost/xampp/
I tried to configure using HTTPD.CONF file, redirect directive but can't get it to work.
Any help is much appreciated.

Thanks
patelsp
 
Posts: 3
Joined: 08. November 2009 22:32

Re: Redirect from localhost/xampp/ to localhost:85/xampp/

Postby Izzy » 09. November 2009 01:27

patelsp wrote:I installed xampp successfully with tomcat. But since the ports are confilicting
Which ports are conflicting and how do you know that the ports are conflicting?
Error messages?

patelsp wrote:...but in the XAMPP control panel there is the "ADMIN" button...
This is hard coded for port 80 and is not changeable.

To access the Admin pages you will always have to add the port number to the URI, you will have to add it to all localhost URIs now.

BTW Tomcat should not port conflict if you installed it correctly, so there may be something else using port 80 - click on the Port Check button in the XAMPP Control Panel (XCP) and see what might be using port 80.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Redirect from localhost/xampp/ to localhost:85/xampp/

Postby patelsp » 09. November 2009 02:53

Hi Izzy,

Thanks for the quick reply.
I re-downloaded
A -> "XAMPP Windows 1.7.2" zip
B -> "Tomcat 6.0.20" zip addon.

1. Unzipped "A" to c:/xampp and ran setup_xampp.bat, everything so far so good.
2. Unzipped "B" to c:/xampp directory and reran setup_xampp.bat, and updates were found.
3. Started Control panel, maully started APACHE and others in sequence, starting TOMCAT last.

Now as soon as I start TOMCAT APACHE is no longer in running status.

I see the ports are different Apache = 80 / Tomcat = 8080

After all this Apache fails to restart all the time, have 2 redo entire setup, that is why I thought there is a port conflit. I don't have any other HTTP servers running.

How do I find log message of why Apache is failing ?

Thanks
patelsp
 
Posts: 3
Joined: 08. November 2009 22:32

Re: Redirect from localhost/xampp/ to localhost:85/xampp/

Postby Izzy » 09. November 2009 03:04

patelsp wrote:How do I find log message of why Apache is failing ?
Look in the \xampp\apache\logs\error.log file for clues.

BTW did you completely uninstall XAMPP following either of the 2 methods mentioned in the XAMPP for Windows Home Page?

If not then you may have residue still remaining from your previous attempts at installing XAMPP.
Last edited by Izzy on 09. November 2009 03:10, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Redirect from localhost/xampp/ to localhost:85/xampp/

Postby patelsp » 09. November 2009 03:09

Hi Izzy,

:oops: Sorry I figured it out.
Here is what is wrong just incase you wan't to fix the problem.

I checked out the log file "C:\xampp\apache\logs\error.log"

httpd.exe: Syntax error on line 510 of C:/xampp/apache/conf/httpd.conf: Syntax error on line 2 of C:/xampp/apache/conf/extra/mod_jk.conf: Syntax error on line 4 of C:/xampp/tomcat/conf/auto/mod_jk.conf: Cannot load C:/xampp/tomcat/xampp/apache/modules/mod_jk.so into server: The specified module could not be found.

Opened the "C:/xampp/tomcat/conf/auto/mod_jk.conf"
Apache was trying to start "C:/xampp/tomcat/xampp/apache/modules/mod_jk.so" and the file is not in that directory it is in "C:\xampp\apache\modules"
So I just copied the file "C:/xampp/tomcat/xampp/apache/modules" directory and everything works fine.

I should have just done this before opening up this thread

Thanks
patelsp
 
Posts: 3
Joined: 08. November 2009 22:32


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 123 guests