Page 1 of 1

Apache and MYSQL starting problem

PostPosted: 15. February 2016 21:59
by safi
HI I have a problem running Apache and MYSQL , please help .

10:44:34 PM [main] Initializing Control Panel
10:44:34 PM [main] Windows Version: Pro 64-bit
10:44:34 PM [main] XAMPP Version: 7.0.1
10:44:34 PM [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
10:44:34 PM [main] You are not running with administrator rights! This will work for
10:44:34 PM [main] most application stuff but whenever you do something with services
10:44:34 PM [main] there will be a security dialogue or things will break! So think
10:44:34 PM [main] about running this application with administrator rights!
10:44:34 PM [main] XAMPP Installation Directory: "d:\mo3taz\new folder\"
10:44:34 PM [main] WARNING: Your install directory contains spaces. This may break programs/scripts
10:44:34 PM [main] Checking for prerequisites
10:44:34 PM [main] All prerequisites found
10:44:34 PM [main] Initializing Modules
10:44:34 PM [main] Starting Check-Timer
10:44:34 PM [main] Control Panel Ready
10:55:06 PM [Apache] Attempting to start Apache app...
10:55:06 PM [Apache] Status change detected: running
10:55:07 PM [Apache] Status change detected: stopped
10:55:07 PM [Apache] Error: Apache shutdown unexpectedly.
10:55:07 PM [Apache] This may be due to a blocked port, missing dependencies,
10:55:07 PM [Apache] improper privileges, a crash, or a shutdown by another method.
10:55:07 PM [Apache] Press the Logs button to view error logs and check
10:55:07 PM [Apache] the Windows Event Viewer for more clues
10:55:07 PM [Apache] If you need more help, copy and post this
10:55:07 PM [Apache] entire log window on the forums
10:55:07 PM [mysql] Attempting to start MySQL app...

Re: Apache and MYSQL starting problem

PostPosted: 15. February 2016 23:07
by Nobbie
> XAMPP Installation Directory: "d:\mo3taz\new folder\"

What a crazy idea. You should Xampp install into a standard folder as suggested, not in such a strange thing.

>You are not running with administrator rights!

In conjunction with that strange installation folder, that may lead to your problems. Try to run Xampp Control Panel as Administrator (right mouse click and choose "Run as Administrator".) And next time install Xampp into a normal folder, unless you really know what you are doing there.

Re: Apache and MYSQL starting problem

PostPosted: 16. February 2016 15:32
by safi
thanks so much for replying. I reinstalled Xampp in a seprate file and run as adminstrator , MYSQL worked but Apache didn't. so what can I do ?

Initializing Control Panel
4:25:18 PM [main] Windows Version: Pro 64-bit
4:25:18 PM [main] XAMPP Version: 7.0.1
4:25:18 PM [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
4:25:18 PM [main] Running with Administrator rights - good!
4:25:18 PM [main] XAMPP Installation Directory: "d:\xamp\"
4:25:18 PM [main] Checking for prerequisites
4:25:18 PM [main] All prerequisites found
4:25:18 PM [main] Initializing Modules
4:25:18 PM [mysql] XAMPP MySQL is already running on port 3306
4:25:18 PM [main] Starting Check-Timer
4:25:18 PM [main] Control Panel Ready
4:25:23 PM [Apache] Attempting to start Apache app...
4:25:23 PM [Apache] Status change detected: running
4:25:25 PM [Apache] Status change detected: stopped
4:25:25 PM [Apache] Error: Apache shutdown unexpectedly.
4:25:25 PM [Apache] This may be due to a blocked port, missing dependencies,
4:25:25 PM [Apache] improper privileges, a crash, or a shutdown by another method.
4:25:25 PM [Apache] Press the Logs button to view error logs and check
4:25:25 PM [Apache] the Windows Event Viewer for more clues
4:25:25 PM [Apache] If you need more help, copy and post this
4:25:25 PM [Apache] entire log window on the forums

Re: Apache and MYSQL starting problem

PostPosted: 16. February 2016 15:43
by Altrea
Hi,

please execute the apache_start.bat script and tell us what it responses.

best wishes,
Altrea

Re: Apache and MYSQL starting problem

PostPosted: 16. February 2016 16:42
by safi
HI,

I executed it and here is the response:

please close this command only for shutdown
apache 2 is starting
(os 10048)only one usage of each socket address (protocol/network address/port) is normally permitted. : AH00072 : make_sock could not bind to address [ : : ] : 80

Re: Apache and MYSQL starting problem

PostPosted: 16. February 2016 17:42
by Altrea
What that means is that Apache cannot start because port 80 is already occupied by another process.

Re: Apache and MYSQL starting problem

PostPosted: 16. February 2016 22:26
by safi
what can I do in this case to make Apache work ?

Re: Apache and MYSQL starting problem

PostPosted: 17. February 2016 01:30
by Altrea
Find out which process is using port 80.
the netstat tool (button in the control panel) should help you with this.

Re: Apache and MYSQL starting problem

PostPosted: 17. February 2016 20:36
by safi
Thank you so much for your help. I found out which process is using port 80 and I disapled it and Apache started.

Re: Apache and MYSQL starting problem

PostPosted: 17. February 2016 20:58
by Altrea
Would you be so kind to tell us too which process was blocking port 80 on your system?

Re: Apache and MYSQL starting problem

PostPosted: 18. February 2016 10:51
by safi
IIS/10.0 was using port 80

To solve that:

find service "W3SVC" and disable it.
you can find it by :
opening Administrative Tools and selecting Services. A window will pop up titled Services. Then find World Wide Web Publishing Services . right click and select stop .

Re: Apache and MYSQL starting problem

PostPosted: 18. February 2016 19:59
by vhen_marin
i can't find The World Wide Web Publishing Services.. please help with this. i really need to start..

Re: Apache and MYSQL starting problem

PostPosted: 18. February 2016 20:09
by Altrea
vhen_marin wrote:i can't find The World Wide Web Publishing Services

Then commonly your issue is a different one.