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.
Related
I Get This Error Message
Error: 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
It looks like you already have mysql running from different distribution (appserv) on the same port (3306).
You are inside a XAMPP control panel. which is different Windows LAMP distribution (xampp) which cannot start/stop appserv's mysql server instance.
IMHO you should pick one and uninstall other.
You should try have a look on this post, the MySQL port (3306) is in use or blocked:
Xampp and MySQL not started
You can try running this in command shell:
netstat -b -p TCP
Look for the results under local address. It will be something like 'localhost:3306'. It will list the port and the applications using it. Check the application that is listed for 3306
I am on windows 10 using chrome but I have tested in edge/firefox as well.
I have installed the latest version of xampp and myphp. When I go to http://localhost/phpmyadmin/ all I get is a blank page... with nothing at all on it.
Also in an unrelated note Apache wont start and complains about port 80 being blocked or unavailable. I don't think that's related but other than what comes with windows 10 I don't have any real extra security installed on the machine.
I'm terrible at this stuff so use small words D: well... at least simple steps :D
You can change your Apache port in its config file or you need to stop the services that use port 80.
The common services that use port 80 is Skype or IIS.
Quit your Skype and restart XAMP if your Skype is on.
To completely solve this conflict,
Go to Skype and click on Tools
Then click on Options
Under advanced tab click on connection and then remove the check mark from Use port 80 and 443 for additional incoming connections
I am new to php and I would like to run a local testing server using easy php at home to work on school projects but when I try to start the easy php server, this error message pops up: Apache port (80) is already used by another application ! Close this application and try to run again the server It then gives me some instructions on how to close the application (by killing processes of selected ports), but when I right on the selected ports, the kill processes option is faded and not clickable. Maybe there something else I need to check or do on my computer to run this local host? Thanks for all help!
Just a shot in the dark but maybe try to close Skype, if you have that running, and then start the server? If I remember correctly Skype listens on port 80 by default. If that's indeed the issue then you can configure Skype not to listen on port 80 in its settings...
That might be related to Skype or the IIS server using port 80. You can configure Skype to use different ports in the preferences. You might try going to "localhost" in your browser and see what comes up as well. If it shows a Microsoft IIS server page then you know that the server is running. Disabling that or turning that off depends upon your operating system. You can probably just look that up on the internet if that is the issue.
I have recently installed xampp in windows 7. When I try to run Mysql I get the following error:
Error: MySQL shutdown unexpectedly.
12:27:51 PM [mysql] This may be due to a blocked port, missing dependencies,
12:27:51 PM [mysql] improper privileges, a crash, or a shutdown by another method.
12:27:51 PM [mysql] Press the Logs button to view error logs and check
12:27:51 PM [mysql] the Windows Event Viewer for more clues
12:27:51 PM [mysql] If you need more help, copy and post this
12:27:51 PM [mysql] entire log window on the forums
Within my.ini I have changed the port from 3306 to 3307 because I have a different mysql server 5.6.19 running in my computer as well. But still i get the same error. Please can anyone help me???? I also uninstalled Xampp and installed it again :(.
Just fixed this same issue not 10 minutes ago.
Open XAMPP
Click on Config
Click on Service and Port Settings
Click MySQL tab
Change Main Port
Click Save
Then restart the MySQL service
Experienced this before try to close all your chatting program like skype and etc. cause it uses the same port as xampp port 80, after closing now you can re-open it after running xamp
I had a similar problem before and the only solution I found was to use an older version of XAMPP. I'm not at my home PC at the moment and can't give you the exact version that worked for me at this moment, but I will post it in the comments later if it helps (my best guess is 1.7.5).
In the meantime, if you are using the newest version of XAMPP you might try an older version.
I'm a beginner in PHP. When attempting to start Apache using XAMPP, I saw the following error messages in my log:
11:42:18 AM [Apache] Problem detected!
11:42:18 AM [Apache] Port 80 in use by "Unable to open process" with PID 4!
11:42:18 AM [Apache] Apache WILL NOT start without the configured ports free!
11:42:18 AM [Apache] You need to uninstall/disable/reconfigure the blocking application
11:42:18 AM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
11:42:18 AM [Apache] Attempting to start Apache app...
11:42:19 AM [Apache] Status change detected: running
How to fix these errors?
If you're running "Skype" from Microsoft, close it.
No just from the window, right click close/exit on the skype icon on the taskbar (in your clock) or kill the moth*** process in the task manager if you've been stucked for a while with this (it gave me some relief a few years ago), if works open skype and kill it again just to be sure.
If you're not running skype, try something from here:
http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
If you didn't click I will quote the article here:
The Obvious Candidates
There are a number of well-known Windows programs which use port 80:
IIS The most likely culprit is Microsoft Internet Information Server.
You can stop the service from the command line on Windows 7/Vista:
net stop was /y
or XP:
net stop iisadmin /y
SQL Server Reporting Services SSRS can remain active even if you
uninstall SQL Server. To stop the service:
Open SQL Server Configuration Manager.
Select “SQL Server Services” in the left-hand pane.
Double-click “SQL Server Reporting Services”.
Hit Stop.
Switch to the Service tab and set the Start Mode to “Manual”.
Skype Irritatingly, Skype can switch to port 80. To disable it, select
Tools > Options > Advanced > Connection then uncheck “Use port 80 and
443 as alternatives for incoming connections”. What’s Using Port 80?
Further detective work is necessary if IIS, SSRS and Skype are not to
blame. Enter the following on the command line:
netstat -ao
The active TCP addresses and ports will be listed — locate the line
with local address “0.0.0.0:80″ and note the PID value.
Now right-click the task bar and select Start Task Manager. Navigate
to the Processes tab and, if necessary, click View > Select Columns…
to ensure “PID (Process Identifier)” is checked. You can now locate
the PID you noted above. The description and properties should help
you determine which application is using the port.
The Task Manager allows you to kill the process, but be a little wary
about doing that — especially if it’s “NT Kernel & System”.
Microsoft-HTTPAPI/2.0
NT Kernel & System is an essential service. Stopping it will probably
stop Windows in a blue-screeny-like way. Therefore, enter the
following at the command line:
telnet 127.0.0.1 80
If you’re faced with a blank screen, type “GET” and hit return. The
chances are, you’ll see a line stating that Microsoft-HTTPAPI/2.0 is
listening on port 80. If that’s the case, open Services from
Administrative Tools and locate “Web Deployment Agent Service”. Stop
the service and set it’s startup type to “Manual”.
The Web Deployment Agent Service is deployed with WebMatrix and was
the cause of my woes. It may also be distributed with other
applications installed using Microsoft’s Web Platform Installer.
That caused me a few frustrating hours so I hope it solves your Apache
or WAMP start-up problems.
If you enjoyed reading this post, you’ll love Learnable; the place to
learn fresh skills and techniques from the masters. Members get
instant access to all of SitePoint’s ebooks and interactive online
courses, like PHP & MySQL Web Development for Beginners.
Stop all apaches and any web-servers you already running and then run xampp with admin privileges (click right button on app).
Open Service Control Manager [Start -> "services.msc" (enter)] and Stop the Following services if they are enabled and are not important you.
World Wide Web Publishing Service (IIS)
Web Client
Web Deployment Agent Service
Also check for applications like (Since PID is 4, the service must be from Microsoft so this is rare)
Skype
TeamViewer
VMWare Products (In very rare case, if you have configured)