xampp--apache app fails to start - php

I am new to php. please help me out. i have a xampp installed on my windows. when i am trying to start apache service it throws me the error. Tried to track the error in apache error log which says "www.example.com:443:0 server certificate does NOT include an ID which matches the server name" and on the control panel i get red lines
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method
I searched over the internet and found over lot of solution but none of them worked for me.
i am using windows 7 - 64bit

Related

Xampp is bringing apache and mysql not found when i run the control exe

I have been using xampp for a while and suddenly it brings error for apache and mysql:
"Apache or mysql shutdown unexpectedly This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums". A second attempt to retry will bring "apache/mysql not found".
I check both apache and mysql bin folder and i notice it removes httpd.exe and mysqld.exe this files automatically for some reason. I have tried several troubleshooting like un-installing and re-installing completely but its all been futile.
I manage to tweak it by creating a cmd file that copies this files (httpd.exe and mysqld.exe) where they are needed in xampp folder before i run xampp which seems to be working fine but i believe it shouldnt be so and i need to find out the reasons this files get removed on my pc. Any help and suggestions is highly welcomed.
check any third party antivirus software?
Kaspersky Enterprise v10 killed my WAMP installation on win10 a few months back...
Bit more complicated but ...
if that does not fix it, you can run disk mon.. a Microsoft tool, wait for it to happen again an find the process ID in the disk mon log, that matches your file and look for the process in task manager to see what program did the delete...
https://learn.microsoft.com/en-us/sysinternals/downloads/diskmon

why my xampp server is not starting when i updated it

In order to update PHP I downloaded the latest version of XAMPP which is 3.2.3 and installed it in the newxampp directory and then I renamed it to xampp and the previously present xampp folder was renamed to xamppp or something. Now the current xampp has the latest PHP version which is php7 but when I run the Apache and MySQL, it does not start and give me the message
Error: Apache shutdown unexpectedly.
[Apache] This may be due to a blocked port, missing dependencies,
[Apache] improper privileges, a crash, or a shutdown by another method.
[Apache] Press the Logs button to view error logs and check
[Apache] the Windows Event Viewer for more clues
[Apache] If you need more help, copy and post this
[Apache] entire log window on the forums
I don't know what to do please help me.
Sometimes in that bundled servers you have defined variables that set the path for the php module directory or some other parts. So you should rename the old directory first then install the new one to that directory that you have a running version and copy the needed parts back to the new one.
Otherwise i think you get some problems in running it.

error in apache starts xampp version 5.6.30

Good Morning!
Dear php master how do I fix this error? This happened on a laptop where I have installed x.ampp version 6.5.30, the following mistakes:
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check the Windows Event Viewer for more clues.
If you need more help, copy and post this entire log window on the forums.
Thanks in advance.

PHP wont work in apache or iis

I have spent two weeks trying to get PHP installed, I want t use it to interface to MYSQL.
I first installed MYSQL and got that running perfectly OK and created a small database to record information about my family tree.
I then installed PHP manually and took some sample code from a tutorial to display Hello World, I could not get the PHP element to work, I inserted some HTML code at various points in the file, all of which displayed as expected, I also inserted a chunk of javascript to display time and date, that also worked fine, but the PHP code not even giving an error message still would not display hello world.I then installed XAMPP, but did not include MYSQL as it was already running perfectly well. , but when I came to start XAMPP control panel Apache started fine but it did not recognise that MYSQL was already installed, and I could find no way of telling it where MYSQL was installed. So I uninstalled XAMPP and MYSQL and (I think) PHP and then reinstalled XAMPP selecting all the options.
This time Apache will not start on some occasions not giving any error on others giving the following error:
Error:
Apache shutdown unexpectedly. 12:19:11
[Apache] This may be due to a blocked port, missing dependencies, 12:19:11 [Apache] improper privileges, a crash, or a shutdown by another method. 12:19:11
[Apache] Press the Logs button to view error logs and check 12:19:11
[Apache] the Windows Event Viewer for more clues 12:19:11
[Apache] Attempting to start MySQL app... 12:19:39
[mysql] Status change detected: running.
I have also installed XAMPP without having MYSQL previously on a laptop apache runs on this OK put still does not display hello world.
I have each time checked the W3SVC service and stopped it where necessary.
I am completely stuck as of now and have no idea how to proceed. I am retired 5 years, before that I worked 45 years in IT and am proficient in SQL and understand the documentation on PHP reasonably well, everything on the internet indicates put echo "Hello World" between tags and it should just happen, any help would be appreciated, all I really need is to get PHP running.
Try this:
Press Window + R, type: services.msc
Find World Wide Web Publishing Service and Stop it !

XAMPP won't start apache

I need to set up a local php server and downloaded XAMPP version 3.2.1 for windows. The installation finished without error messages and the control panel starts just fine. MySQL runs without problems but apache won't start.
The error message says:
12:17:01 [Apache] Attempting to start Apache app...
12:17:01 [Apache] Status change detected: running
12:17:02 [Apache] Status change detected: stopped
12:17:02 [Apache] Error: Apache shutdown unexpectedly.
12:17:02 [Apache] This may be due to a blocked port, missing dependencies,
12:17:02 [Apache] improper privileges, a crash, or a shutdown by another method.
12:17:02 [Apache] Press the Logs button to view error logs and check
12:17:02 [Apache] the Windows Event Viewer for more clues
12:17:02 [Apache] If you need more help, copy and post this
12:17:02 [Apache] entire log window on the forums
I tried various ports, apache still doesn't start. I started the control panel as administrator - I am logged into the administrator account on this machine, but there's this extra button "start as administrator"- . It doesn't work.
Unfortunately the error logs are not created. The control panel complains that it couldn't find the appropriate files, should they be created ? I clicked yes and tried to start apache again. Same error message, now the error logs are found but they are still empty.
I searched for similar problems and found this question: Apache in XAMPP won't start
The accepted answer recommends to close the windows services "WebClient" and "Web Deployment Agent Service". I've disabled "WebClient" but "Web Deployment Agent Service" is not installed. Sounds like VisualStudio which I don't have on this machine.
My guess is that my apache installation is not sane. Probably misses some dependencies. How can I check this ?
UPDATE:
It seems that although I changed the configuration files, apache still tried to run on port 80. And this port was indeed blocked by Skype. After closing skype, apache ran fine. And it was available on localhost:80 despite the fact that I definitely specified another port in the config file. #steven if you made your comment into an answer, i would accept it.
There are several reason that can cause this issue.
Skype:- Skype run on port 80 and 443 which can be a reason that block port 80 and 443 for Apache. you don't need to uninstall Skype. you can use following step if you installed Skype in your Machine.
Quit Skype before running Apache so if Skype can release port 80 and 433.
Go to Skype Tools-> options -> Advanced -> Connection and unchecked port 80 after this you need to restart your skype and try to run the xampp now it'll not throw any issue as port 80 and 443 is free to use
IIS Server:- If your Machine have IIS Server enable so this is also a problem for you because IIS server also use port 80 and 443.
Go to start Menu type Internet Information Services select this and stop it's service which will release port 80 and 443.
I got the same problem, but I finally solved it.
Have you checked your firewall?
Are any XAMPP applications and services excepted?
Then, make sure Skype is uninstalled or blocked. This application uses the ports 80 and 443.
For me, Skype wasn't the problem, but iTunes! I figured out that iTunes uses the ports 80 and 443 as well. If it still doesn't help, try installing Apache manually.
open your command prompt (run as administrator) and write the following code and hit enter
net stop w3svc
and then open your xampp and run apache server
if you want to start your w3svc
then execute this code
net start w3svc
NOTE : stopping w3svc won't lead to any problems
NOTE : Don't forget to run cmd as administrator
After checking my config files, running "net stop http" in the command line, as well as spending about 30 minutes trying to download a version of Skype that is no longer supported in order to release my ports...
What worked for me is that I needed to create an SSL certificate. I found this under xampp/apache/conf/ssl.cert directory. (Make sure to save the certificate in the "Trusted Root Certification Authorities" store when prompted). Once going through that prompt, and successfully creating the certificate. Apache began running again like normal.

Categories