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 Build a Simple PHP Application Getting Started with PHP Install PHP on Windows 7

Can't start Apache service

Hi Randy,

I can't start this service on my machine. When I start it, I got this error: 11:49:28 PM [Apache] This may be due to a blocked port, missing dependencies, 11:49:28 PM [Apache] improper privileges, a crash, or a shutdown by another method. 11:49:28 PM [Apache] Press the Logs button to view error logs and check 11:49:28 PM [Apache] the Windows Event Viewer for more clues 11:49:28 PM [Apache] If you need more help, copy and post this 11:49:28 PM [Apache] entire log window on the forums

I have checked the event viewer and found nothing new. Also, I have opened log file yet there has no log file yet

Best regards, Long Nguyen

1 Answer

shahardekel
shahardekel
20,306 Points

From my experience, it can be a few things:

  • Another service (like microsoft IIS server) is blocking your service from starting up. If you're running windows, check the services for IIS or any other similar web server that may be running already and stop it.
  • Skype may also be interfering with the port. Try changing the port in skype's settings.
  • A bad configuration file might prevent Apache server from starting up correct. It happened to me once, but only after I modified a configuration file and it contained some unvalidated code.
  • Finally, if all fails, I'd check the Apache error log files (which you already did) and windows Event Viewer for an error log - the latter helped me before (it's under 'administrative tools').