Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionI have installed xampp
. When i open xampp
control panel, mysql and filezilla services are running, but not apache. When i click to start apache it gives me this
ERROR:error:apache service not started [-1]
I have even blocked firewalls for this.
Why this is happeneing and how can i start apache services.I have installed xampp in my E:
directory.
here is the steps which will make apache work normally without such errors
- Firstly, make sure that Apache is stopped
- Make sure, Svc check box is unchecked
- Now! go to your XAMPP Folder (
C:\xampp\apache\
– I installed the xampp in C:) - Now! double click on “
apache_uninstallservice.bat
” which is available in apache folder. - After above step, now open your XAMPP Control Panel again and click on Start button which is beside Apache, and make sure that you will not check the Svc checkbox provided.
such errors my happen in old operation systems for example win XP or Vista... and the latest versions of xampp may not have the corresponding configurations
I found this page looking for a solution to this problem after downloading xampp lite.
I solved this as follow:
The installed service for apache from xampp uses the standalone installation path for apache; c:\program files\apache2.x\...etc
and not the local path in xampp folder.
Just modify all registry keys that include the wrong path for apache service in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Apache2.x
and it should work.
There could be many causes.
Make sure you have no other applications using the port that apache is using. From the XAMPP control panel there is a button you can press to run a tool to check which ports are in use. Applications which I know to conflict with Apache are Skype and Panda Media; there could be others.
Unselect the Svc box in the XAMPP control panel and try to restart it. Should work.
精彩评论