I have recently installed xamp server for the first time and want to run a php website on the local server. When I start Apache module in xamp server then it shows following error however MySQL starts and runs fine:
9:04:58 PM [Apache] Attempting to start Apache app...
9:04:58 PM [Apache] Status change detected: running
9:04:58 PM [Apache] Status change detected: stopped
9:04:58 PM [Apache] Error: Apache shutdown unexpectedly.
9:04:58 PM [Apache] This may be due to a blocked port, missing dependencies,
9:04:58 PM [Apache] improper privileges, a crash, or a shutdown by another method.
9:04:58 PM [Apache] Press the Logs button to view error logs and check
9:04:58 PM [Apache] the Windows Event Viewer for more clues
9:04:58 PM [Apache] If you need more help, copy and post this
9:04:58 PM [Apache] entire log window on the forums
I am doing this for my software testing assignment. I have to test a website on local server and for that I have installed xamp server. Can anyone help?
In some cases Some ports are blocked by your network admin or ISP (although, I would not recommend running Xampp as a publicly accessible server).
And port 80 is used by some other applications like Skype,etc.. when you want to access both Apache and those applications some conflicts may occurs for this problem you have a option to change the port number for Apache server
If your Apache server is not working then it shows that some other applications is using port 80
Let do it manually.
Step 1: For this process first of all open httpd.conf file which is located xampp\apache\conf\
In my system my xampp is installed in c drive so my path is c:\xampp\apache\conf
your’s may be different from this
so now open httpd.conf file using a text editor or programmer’s editor (i am using notepad++)
Now locate the line that says Listen 80. It is line #47 or else press contol+f and type 80 then it will automatically moves courser to here then change 80 to your own port here i am using 3388.
After that save the file by pressing control+s.
After successful save Restart the Apache server your port number is successfully changed
There could be many possible answers to this. The most common one is another program running on port 80. I had the same problem and then I found that my Vagrant box was running on port 80.
If you have skype installed on your computer, then change your apache's port to something else.
To do so, go to xampp/apache/conf/httpd.conf and change following line in httpd.conf:
ServerName localhost:80
to
ServerName localhost:81
Furthermore, if it doesn't work, change the following line as well:
Listen 80
to
Listen 81
Sometimes ,this error occurs due to same port use by other software on your Computer ,So u should have to change the port number or disable the same port no from other software like virtual box etc
Related
When i trying to start apache services i show the following erron in error block panel
11:51:30 AM [Apache] Status change detected: stopped
11:51:30 AM [Apache] Error: Apache shutdown unexpectedly.
11:51:30 AM [Apache] This may be due to a blocked port, missing dependencies,
11:51:30 AM [Apache] improper privileges, a crash, or a shutdown by another method.
11:51:30 AM [Apache] Press the Logs button to view error logs and check
11:51:30 AM [Apache] the Windows Event Viewer for more clues
11:51:30 AM [Apache] If you need more help, copy and post this
11:51:30 AM [Apache] entire log window on the forums
plese someone help me
Hello if you are using Skype then from Skype Tools->options->Advanced->Connection
in this check Use-port there one text box may be there default port using 80 so make that box empty. and save logout from Skype and login again now your skype use port other than 80 so now your Apache is working fine.
And there is other solution is also you can also change your default port for Apache 80 to other from Apache httpd.conf ServerName localhost:80 to any other free port like ServerName localhost:81 may helps you.
Here's how I figured it out:
In Control Panel, click on Apache ---- Config button and open the file in the first line (httpd.conf), here
Search for these lines
#Listen 12.34.56.78:80
Listen 80
ServerName localhost:80
And replace 80 in these lines by another number x, probably a unique one to avoid duplicate. Eg, 2017.
In Control Panel, click on Config button in upper right corner, here.
Service and Port Settings > Main Port: replace the old one with x
That's how mine works. Hope it helps you.
I was working on my PHP project yesterday and it was working fine, but today morning after the restart XAMPP is not starting Apache for some reason. Can someone suggest how can I work around it:
Error: Apache shutdown unexpectedly.
1:17:04 PM [Apache] This may be due to a blocked port, missing dependencies,
1:17:04 PM [Apache] improper privileges, a crash, or a shutdown by another method.
1:17:04 PM [Apache] Press the Logs button to view error logs and check
1:17:04 PM [Apache] the Windows Event Viewer for more clues
1:17:04 PM [Apache] If you need more help, copy and post this
1:17:04 PM [Apache] entire log window on the forums
Shutdown Skype or Teamviewer, if you have them installed.
They use port 80, like Apache.
you can check which port is being used by which program using 3 methods
i) Open cmd and type netstat -b -a
ii) Use currports http://www.nirsoft.net/utils/cports.html
iii)Use TCPView https://technet.microsoft.com/en-us/sysinternals/bb897437.aspx
Then you can change port for that program.
If still you are unable to solve it you can uninstall the program and check.
Or you can change your apache port from 80 to 8080. but then you have to use localhost:8080. Remember to restart apache.
I've installed xampp server but when I click on mysql admin button it shows me an error:
and also I changed Apache port 80 to another number but Apache doesn't start and it shows me like this:
Attempting to start Apache service... 6:26:01 PM [Apache] Status
change detected: running 6:26:05 PM [Apache] Status change detected:
stopped 6:26:05 PM [Apache] Error: Apache shutdown unexpectedly.
6:26:05 PM [Apache] This may be due to a blocked port, missing
dependencies, 6:26:05 PM [Apache] improper privileges, a crash, or
a shutdown by another method. 6:26:05 PM [Apache] Press the Logs
button to view error logs and check 6:26:05 PM [Apache] the Windows
Event Viewer for more clues 6:26:05 PM [Apache] If you need more
help, copy and post this 6:26:05 PM [Apache] entire log window on
the forums
You have something else on your machine using port 80, the same one Apache is trying to use. You have two choices:
Stop the other service using port 80.
Give Apache a different port number (like 8080) in the XAMPP application.
As you can see
6:26:05 PM [Apache] Status change detected: stopped
Apache is not running, so the error you see on the screen is not related to mysql, but to Apache. Go into the configuration panel of xampp and change ports, some software like Skype use 433 port (web ssl), so then Apache couldn't start.
You can change the port with, for example, 8080.
Then, go to http://localhost:8080/phpmyadmin
And you're done.
I have problems with Xampp. It does not execute my php scripts. When I open php file the php code appears in the browser.
When I open Xampp it has these red lines:
Apache Service detected with wrong path
11:53:25 PM [Apache] Change XAMPP Apache settings or
11:53:25 PM [Apache] Uninstall/disable the other service manually first
11:53:25 PM [Apache] Found Path: ERROR: Not Able To Open Service Manager
11:53:25 PM [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
11:53:25 PM [Apache] Problem detected!
11:53:25 PM [Apache] Port 443 in use by "httpd.exe"!
11:53:25 PM [Apache] Apache WILL NOT start without the configured ports free!
11:53:25 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
11:53:25 PM [Apache] or reconfigure Apache to listen on a different port
Please help me? What can I do?please....Thanks in advance
with refer to this Q
or With refer to this page:
The easiest way to solve this XAMPP problem is shutdown your Skype, and restart your XAMPP Control Panel. But that is not a smart solution.
So how to solve this port in use issue? In Skype Options: [Connection] , there is a check-box labelled Use port 80 and 443 as alternatives for incoming connections.
This is the root problem, so simply clear / unchecked it and save. You may need to restart Skype.
Restart your XAMPP Control Panel, and the error message is now gone! Try to start Apache, and succeeded.
What if the port is not used by Skype, but by other applications such as TeamViewer or any other things? If so, then XAMPP have to use another port.
How to change Apache default port in XAMPP?
From XAMPP Control Panel, under Apache, click the Config button, and
select the Apache (httpd.conf).
Inside the httpd.conf file, find line that says
Listen 80
And change the 80 into any number / port you want. In this example
I’m using port 8080.
Listen 8080
Still from the httpd.conf file, find another line that says
ServerName localhost:80
And change 80 to 8080.
ServerName localhost:8080
Next step, still from XAMPP Control Panel, under Apache, click the
Config button again, but this time select the Apache
(httpd-ssl.conf). Inside the httpd-ssl.conf file, find line that says
Listen 443
And change the 443 into any number / port you want. I’ll using 4433
as the new port number.
Listen 4433
Still from the httpd-ssl.conf file, find another line that says
<VirtualHost _default_:443>
ServerName localhost:443
And change 443 to 4433.
<VirtualHost _default_:4433>
ServerName localhost:4433
Remember to save httpd.conf file and httpd-ssl.conf after you make some changes.
Now it’s time to fire-up our Apache in XAMPP Control Panel. If your doing good on editing those files, you should see that Apache is running and the port number has changed to 8080 and 4433.
If you use Windows Go to Task Manager and Stop "httpd.exe"
The errors/warnings suggest that you already have another Apache installed as a service, on port 443.
I've taken the first steps to learning PHP - think it would be a good step in the right direction. I would like some help however on installing XAMPP. I have downloaded the file and all that through the Apache Friends site, but when I head to to control panel, I get numerous errors.
This is what it says for me:
**10:21:53 [Apache] Problem detected!
10:21:53 [Apache] Port 80 in use by "Unable to open process" with PID 4!
10:21:53 [Apache] Apache WILL NOT start without the configured ports free!
10:21:53 [Apache] You need to uninstall/disable/reconfigure the blocking application
10:21:53 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
10:21:53 [Apache] Problem detected!
10:21:53 [Apache] Port 443 in use by "C:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 3748!
10:21:53 [Apache] Apache WILL NOT start without the configured ports free!
10:21:53 [Apache] You need to uninstall/disable/reconfigure the blocking application
10:21:53 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
10:21:53 [main] Starting Check-Timer
10:21:53 [main] Control Panel Ready**
Could someone please tell me what this means and how I remedy it? Thanks very much.
It seems that port 80 and 443 is used by another program. From my experince - open Skype. Go to Tools -> Options -> Advanced -> Connection. Please uncheck "use port 80 and 443 as alternatives...."
Then, try to restart Apache.
I tried this and it worked really well...
As you have already figured the port 80 is in use by something with pid 4
This application's detailed info can be seen using the details tab on the task manager window.
However I found out the application is not writable and hence I figured it shouldn't be touched.
Instead I changed the port of the apachae server on xampp to be 85
Open xampp and click on config in front of apache then select the first option that appears allowing you to open httpd.conf and then in the notepad file that opens up, find the word listen and go to the 4th word that it finds.
It will read something like Listen 80
Change this to any number except 80 (like 85) and voila it work
Opening the XAMPP control panel as Administrator worked for me.
The solution for me was to:
1) Stop IIS (stop the "World Wide Web Publishing Service" and set its startup type to Manual)
2) Stop the "Web Deployment Agent Service" and set its startup type to Manual.
...as detailed in http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
Port 80 in use by "Unable to open process" with PID 4!
A process with a PID of 4 that is taking port 80, is almost always the Window's HTTP.SYS Service. It's a type of a proxy service for other services. And it's safe to disable it in most cases.
From command-line, Run As Admin.
net stop http
sc config http start= disabled
Or you can switch it's Startup Mode to "On Demand".
For more options and also a list of other port 80 Services see Opening Up Port 80 For Apache to Use On Windows.
Steps which u can try:
1) uninstall or stop Skype and check again after restarting the server.
2) use this to get the port usage details : use cmd netstat -a -b
3) or use this GUI tool to identify the ports used by other programs.
4) uninstall Xammp and try with Wamp Server
in my case a website was configured on IIS , i stopped and it worked well.
You have to close down Skype. It tells you exactly why it can not start in the error message.