Access Forbidden with XAMPP 1.8.1 (Win7)

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

Access Forbidden with XAMPP 1.8.1 (Win7)

Postby alfred3x » 04. October 2012 23:20

Hi All:

Just installed the latest XAMPP on Windows 7, because I was tired of working with WAMP (it doesn't have SMTP or SSL).

I brought up the snappy new control panel and played around with the settings a bit. I went to the localhost page and it loaded, as did the status page. w00t!

Then i switched to services. And things went downhill from there. In fact, the control panel would crash when I tried to reload it.

So I uninstalled XAMPP, and reinstalled it. And everything seemed to be working from the control panel's perspective. Except now I get this 403 Access Forbidden error on the localhost page, as well as on my dev directory.

I did some digging around, and tweaked the httpd-xampp.conf file some; but to no avail. So here's what I've got now:

Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
   Order deny,allow
   # Deny from all
   Allow from ::1 127.0.0.0/8 \
      fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
      fe80::/10 169.254.0.0/16

   ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

I hope someone can help. (And thank you ahead of time, of course.)

- AAA
alfred3x
 
Posts: 29
Joined: 10. August 2006 19:00
Location: Toronto, ON, Canada

Re: Access Forbidden with XAMPP 1.8.1 (Win7)

Postby hackattack142 » 04. October 2012 23:54

Could you go into the control panel configuration (the 'config' button in the upper-right), check the 'show debug info' box, save, restart the control panel, and post the log here to give us a better idea of your configuration.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Access Forbidden with XAMPP 1.8.1 (Win7)

Postby alfred3x » 05. October 2012 15:27

Thanks for the quick reply, hackattack142. By "log" I'm guessing you mean the display at the bottom of the control panel, rather than one of the logs you can access via the Logs button next to the Config button, on the Apache line? If so, here it is:

(FYI, I turned off services. It was giving a bunch of errors about service with wrong path or something. All that went away when I switched from services. But I'm still getting the 403 error.)
Code: Select all
10:20:49 AM  [main]    Initializing Control Panel
10:20:49 AM  [main]    Windows Version: Windows 7 Professional SP1 64-bit
10:20:49 AM  [main]    XAMPP Version: 1.8.1
10:20:49 AM  [main]    Control Panel Version: 3.1.0 3.1.0 [ Compiled: September 20th 2012 ]
10:20:49 AM  [main]    You are not running with administrator rights! This will work for
10:20:49 AM  [main]    most application stuff but whenever you do something with services
10:20:49 AM  [main]    there will be a security dialogue or things will break! So think
10:20:49 AM  [main]    about running this application with administrator rights!
10:20:49 AM  [main]    XAMPP Installation Directory: "c:\xampp\"
10:20:49 AM  [main]    Checking for prerequisites
10:20:49 AM  [main]    All prerequisites found
10:20:49 AM  [main]    Initializing Modules
10:20:49 AM  [Apache]    Initializing module...
10:20:49 AM  [Apache]    Checking for module existence...
10:20:49 AM  [Apache]    Checking for required tools...
10:20:49 AM  [Apache]    Checking for service (name="Apache2.4"): Service not installed
10:20:49 AM  [Apache]    Service Path: Service Not Installed
10:20:49 AM  [Apache]    Checking default ports...
10:20:49 AM  [Apache]    Portblocker Detected: c:\xampp\apache\bin\httpd.exe
10:20:49 AM  [Apache]    Checking for App: c:\xampp\apache\bin\httpd.exe
10:20:49 AM  [Apache]    XAMPP Apache is already running on port 80
10:20:49 AM  [Apache]    Portblocker Detected: c:\xampp\apache\bin\httpd.exe
10:20:49 AM  [Apache]    Checking for App: c:\xampp\apache\bin\httpd.exe
10:20:49 AM  [Apache]    XAMPP Apache is already running on port 443
10:20:49 AM  [mysql]    Initializing module...
10:20:49 AM  [mysql]    Checking for module existence...
10:20:49 AM  [mysql]    Checking for required tools...
10:20:49 AM  [mysql]    Checking for service (name="mysql"): Service not installed
10:20:49 AM  [mysql]    Service Path: Service Not Installed
10:20:49 AM  [mysql]    Checking default ports...
10:20:49 AM  [mysql]    Portblocker Detected: c:\xampp\mysql\bin\mysqld.exe
10:20:49 AM  [mysql]    Checking for App: c:\xampp\mysql\bin\mysqld.exe
10:20:49 AM  [mysql]    XAMPP MySQL is already running on port 3306
10:20:49 AM  [filezilla]    Initializing module...
10:20:49 AM  [filezilla]    Checking for module existence...
10:20:49 AM  [filezilla]    Checking for required tools...
10:20:49 AM  [filezilla]    Checking for service (name="FileZillaServer"): Service not installed
10:20:49 AM  [filezilla]    Service Path: Service Not Installed
10:20:49 AM  [filezilla]    Checking default ports...
10:20:49 AM  [mercury]    Initializing module...
10:20:49 AM  [mercury]    Checking for module existence...
10:20:49 AM  [mercury]    Checking for required tools...
10:20:49 AM  [mercury]    Checking default ports...
10:20:49 AM  [mercury]    Portblocker Detected: mercury.exe
10:20:49 AM  [mercury]    Checking for App: c:\xampp\MercuryMail\mercury.exe
10:20:49 AM  [mercury]    Problem detected!
10:20:49 AM  [mercury]    Port 25 in use by "mercury.exe"!
10:20:49 AM  [mercury]    Mercury WILL NOT start without the configured ports free!
10:20:49 AM  [mercury]    You need to uninstall/disable/reconfigure the blocking application
10:20:49 AM  [mercury]    or reconfigure Mercury to listen on a different port
10:20:49 AM  [mercury]    Portblocker Detected: mercury.exe
10:20:49 AM  [mercury]    Checking for App: c:\xampp\MercuryMail\mercury.exe
10:20:49 AM  [mercury]    Problem detected!
10:20:49 AM  [mercury]    Port 79 in use by "mercury.exe"!
10:20:49 AM  [mercury]    Mercury WILL NOT start without the configured ports free!
10:20:49 AM  [mercury]    You need to uninstall/disable/reconfigure the blocking application
10:20:49 AM  [mercury]    or reconfigure Mercury to listen on a different port
10:20:49 AM  [mercury]    Portblocker Detected: mercury.exe
10:20:49 AM  [mercury]    Checking for App: c:\xampp\MercuryMail\mercury.exe
10:20:49 AM  [mercury]    Problem detected!
10:20:49 AM  [mercury]    Port 105 in use by "mercury.exe"!
10:20:49 AM  [mercury]    Mercury WILL NOT start without the configured ports free!
10:20:49 AM  [mercury]    You need to uninstall/disable/reconfigure the blocking application
10:20:49 AM  [mercury]    or reconfigure Mercury to listen on a different port
10:20:49 AM  [mercury]    Portblocker Detected: mercury.exe
10:20:49 AM  [mercury]    Checking for App: c:\xampp\MercuryMail\mercury.exe
10:20:49 AM  [mercury]    Problem detected!
10:20:49 AM  [mercury]    Port 106 in use by "mercury.exe"!
10:20:49 AM  [mercury]    Mercury WILL NOT start without the configured ports free!
10:20:49 AM  [mercury]    You need to uninstall/disable/reconfigure the blocking application
10:20:49 AM  [mercury]    or reconfigure Mercury to listen on a different port
10:20:49 AM  [mercury]    Portblocker Detected: mercury.exe
10:20:49 AM  [mercury]    Checking for App: c:\xampp\MercuryMail\mercury.exe
10:20:49 AM  [mercury]    Problem detected!
10:20:49 AM  [mercury]    Port 110 in use by "mercury.exe"!
10:20:49 AM  [mercury]    Mercury WILL NOT start without the configured ports free!
10:20:49 AM  [mercury]    You need to uninstall/disable/reconfigure the blocking application
10:20:49 AM  [mercury]    or reconfigure Mercury to listen on a different port
10:20:49 AM  [mercury]    Portblocker Detected: mercury.exe
10:20:49 AM  [mercury]    Checking for App: c:\xampp\MercuryMail\mercury.exe
10:20:49 AM  [mercury]    Problem detected!
10:20:49 AM  [mercury]    Port 143 in use by "mercury.exe"!
10:20:49 AM  [mercury]    Mercury WILL NOT start without the configured ports free!
10:20:49 AM  [mercury]    You need to uninstall/disable/reconfigure the blocking application
10:20:49 AM  [mercury]    or reconfigure Mercury to listen on a different port
10:20:49 AM  [mercury]    Portblocker Detected: mercury.exe
10:20:49 AM  [mercury]    Checking for App: c:\xampp\MercuryMail\mercury.exe
10:20:49 AM  [mercury]    Problem detected!
10:20:49 AM  [mercury]    Port 2224 in use by "mercury.exe"!
10:20:49 AM  [mercury]    Mercury WILL NOT start without the configured ports free!
10:20:49 AM  [mercury]    You need to uninstall/disable/reconfigure the blocking application
10:20:49 AM  [mercury]    or reconfigure Mercury to listen on a different port
10:20:49 AM  [Tomcat]    Initializing module...
10:20:49 AM  [Tomcat]    Checking for module existence...
10:20:49 AM  [Tomcat]    Checking for required tools...
10:20:49 AM  [Tomcat]    Checking for service (name="Tomcat7"): Service not installed
10:20:49 AM  [Tomcat]    Service Path: Service Not Installed
10:20:49 AM  [Tomcat]    Checking default ports...
10:20:49 AM  [main]    Starting Check-Timer
10:20:49 AM  [main]    Control Panel Ready


Thanks again for your assistance!

- AAA
alfred3x
 
Posts: 29
Joined: 10. August 2006 19:00
Location: Toronto, ON, Canada

Re: Access Forbidden with XAMPP 1.8.1 (Win7)

Postby hackattack142 » 06. October 2012 00:12

The "Service with wrong path" errors mean that it was detecting a service with the same name installed but that service is not from that XAMPP installation. I would check your services and make sure you do not have any 'rogue' web servers running that could conflict. Use the 'Services' button on the right side of the control panel and see if there are any leftover Apache, MySQL, etc services from another installation.

FYI you need Admin privileges to use Services with the CP (either running as an Admin user or via the right-click 'run as admin' functionality).

Is your 'dev' directory in the root of htdocs?
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 124 guests