Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Installing xampp issues

When I get to the control panel and try to run Apache it brings up an error:

    "Apache Service detected with wrong path
Change XAMPP Apache settings or
Uninstall/disable the other service manually first
Found Path: ERROR: Not Able To Open Service Manager
Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
Problem detected!
Port 80 in use by "system"!
Apache WILL NOT start without the configured ports free!
You need to uninstall/disable/reconfigure the blocking application
or reconfigure Apache to listen on a different port."

If anyone can help me I would greatly appreciate it.

3 Answers

The error message tells you the issue:

Port 80 in use by "system"! Apache WILL NOT start without the configured ports free!

All you need to do is to reconfigure XAMPP to use a different port, it's traditional to use 8080 as an alternate port for a web server.

Here are some instructions to help you change the port of Apache using XAMPP

My guess is that the IIS web server is running. You can double check what program is listening on port 80 by using a nifty oneliner.


  • Click the Start Menu
  • cmd in the search bar
  • Right-click on cmd icon and select Run as Administrator
  • Type netstat -abn | find /i ":80" in the command prompt and press enter

Thank you guys I really appreciate the help, I checked the ports and got the issue fixed. Thank you again.

check firewall

remove and re-install

if it doesn't work i had good success with WAMP

Hope this helps

M