Page 1 of 1

Apache not starting

PostPosted: 29. December 2010 20:44
by satyak
Hi,

I am new to the webhosting/webdesigning/developing. I am learning PHP and MYSQL by myself and I've installed XAMPP for windows xp. On the XAMPP control panel application, the Apache is not getting started. When I click on Start for Apache, there is a msg

Busy...
Apache service started

But there is no green colored label 'Running' for Apache. When I click on start for MYSQL, the green colored label running is present the start button has changed to stop.

Pls guide me on how to make the Apache run.

Thanks
Satya

Re: Apache not starting

PostPosted: 29. December 2010 20:46
by Sharley
Any clues in the C:\xampp\apache\logs\error.log file?

Re: Apache not starting

PostPosted: 29. December 2010 22:34
by satyak
Thanks Sharley. Apache is now running on my sys. I uninstalled skype (which I guess is blocking the port 80) and Apache started running.

Can you/anyone pls help me on how to execute my php code. I wrote one script and saved as hello.php in 'C:\xampp\htdocs'. From there I don't know how to proceed. Looks like I need to FTP the code to the server. But I dont know how.

Pls help me with the execution steps.

Thank you so much !
Satya

Re: Apache not starting

PostPosted: 29. December 2010 22:48
by Sharley
Simply type http://localhost/hello.php in your browser's address bar.

PHP scripts must be parsed by the server and will not be executed by double clicking on the file.

BTW, no need to uninstall Skype, just configure it to use other ports than 80 and 443 or start Apache before Skype and then Skype can't use the Apache ports - configuring Skype is the simple way round this so you can still use Skype and Apache together if you wish.

Good luck.

Re: Apache not starting

PostPosted: 29. December 2010 23:28
by satyak
Thanks Sharley. I can see my output now :) .

Yeah, I will now configure Skype.

Thank you so much !!
Satya

Re: Apache not starting

PostPosted: 29. December 2010 23:39
by Sharley
You're most welcome Satya, good luck for 2011.

Re: Apache not starting

PostPosted: 05. January 2011 20:36
by MoHaNaD
i have the same problem , but when i check port i found that port 80 is occupied by system , so how can i make it free ?
pls necessary

Re: Apache not starting

PostPosted: 05. January 2011 21:35
by MoHaNaD

Re: Apache not starting

PostPosted: 13. January 2011 16:50
by Mary2011
Hello,
after installing xampp I have tried to run Apache, using apache_start.bat, but I got the message:
starting “apache”…
“apache” is not started

I have followed your suggestions to release port 80(netstat -o -n -a | findstr 0.0:80
… and so on), but this port was used again by inetinfo.exe
What can I do?
Thank you for your help

Re: Apache not starting

PostPosted: 13. January 2011 21:08
by Sharley
Mary, you might like to read through this similar topic for possible help with disabling inetinfo (IIS also known as World Wide Publishing service)
viewtopic.php?f=16&t=43891

Re: Apache not starting

PostPosted: 17. January 2011 19:49
by Mary2011
Not so easy for me to find the good way to deactivate IIS, but later all proceded.
Your list has been useful for me.
Thank you to you all.

Re: Apache not starting

PostPosted: 18. January 2011 22:34
by vincebrock
This solution works on Vista as well. Finding out that World Wide Web Publishing is the same as IIs did it for me. I spent hours googling - trying to solve this problem and read many posts that explained that Skype and IIs interfere with port 80. I had not installed either of those programs that I knew of and was stumped. Reading the post above and realizing that Worldwide Web Publising in vista is a standard windows service, clued me in on what to look for and stop.

Many thanks!!!

Re: Apache not starting

PostPosted: 18. January 2011 22:42
by Sharley
Your welcome.

It is a favorite trick of Micro$oft to change the names of things that for ages people have gotten used to, perhaps to justify another version release with the extra dollars it will bring in profits.

Good luck and best wishes.