XAMPP apache service not start - php

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.

Related

Error: Apache shutdown unexpectedly error message

I just upgraded the PHP version of XAMPP from PHP 7.1.7 to PHP 7.2.0 using the guidelines from this article.
Then I tried restarting the XAMPP but I got this error:
10:54:47 AM [Apache] Error: Apache shutdown unexpectedly.
10:54:47 AM [Apache] This may be due to a blocked port, missing dependencies,
10:54:47 AM [Apache] improper privileges, a crash, or a shutdown by another method.
10:54:47 AM [Apache] Press the Logs button to view error logs and check
10:54:47 AM [Apache] the Windows Event Viewer for more clues
10:54:47 AM [Apache] If you need more help, copy and post this
10:54:47 AM [Apache] entire log window on the forums
After that I opened up my Skype and in the Connection tab, I disabled the checkobox "Use port 80 and 443 for alternatives for incoming connections". Then I tried restarting the Apache but again I got the error message.
Next thing that I did was changing the Listen 80 to Listen 1372 in httpd.conf and also the ServerName localhost:80 to ServerName localhost:1372 in the same file. And then tried to start the Apache but one more time I got the same error.
I also changed this:
<VirtualHost _default_:443>
ServerName www.example.com:443
to this:
<VirtualHost _default_:4433>
ServerName localhost:4433
in the httpd-ssl.conf file. But until now the Apache can not start and returns the same error message.
So what should I do now?
Goto Apache config -> Apache (httpd.config) -> change "Listen 80 to 81"
on broswer-> http://localhost:81/phpmyadmin/
Go to C:\xampp\mysql\backup.
Copy all files.
Paste them into C:\xampp\mysql\data.
If Windows asks you to replace some files, replace them.
If your XAMPP Control Panes is active close it.
Go to C:\xampp and find xampp-control, run it.
Start Apache, start MySQL.
That's it.
Enjoy!
please do these steps as well
In the Control Panel, click on the main Config button again.
Click on Service and Port Settings.
Change the Main Port to 8080 and the SSL Port 4433.
Close out of Configuration.
Stop and Start Apache.
Click the Admin button by Apache and it should open up the XAMPP home page in your browser.
I hope this will work!
If you have installed Skype Software .
Then Open Skype:
Go to Menu:
Tools -> Options -> Advanced -> Connection.
Uncheck the "Use port 80 and 443 for additional for incoming connections"
Sign Out and Close the Skype software. Then restart your Apache.

Unable to start Apache module in xamp server

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

XAMPP error message

I downloaded the xampp but have the following errors:
I really need help I am not a programmer and just a user and would like to use typo3 to create a website using Xampp.
12:14:00 [Apache] Status change detected: running
12:14:00 [Apache] Status change detected: stopped
12:14:00 [Apache] Error: Apache shutdown unexpectedly.
12:14:00 [Apache] This may be due to a blocked port, missing dependencies,
12:14:00 [Apache] improper privileges, a crash, or a shutdown by another method.
12:14:00 [Apache] Press the Logs button to view error logs and check
12:14:00 [Apache] the Windows Event Viewer for more clues
12:14:00 [Apache] If you need more help, copy and post this
12:14:00 [Apache] entire log window on the forums
please any one help to use XAMPP apache without error .......
Please take a look at this question:
apache is not working on xampp
You need to find the httpd.conf file and Listen section. Try to change it to something else (if you have e.g. 80, change it to 8080 or 9090) and try to start Apache again.
change port no in xampp. error occur due to same port no skype 8080 and xampp server port no is 8080 same. so change the port no 8085 in xampp init file
it may help you

port 443 is used by http.exe, Apache, Xampp

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.

Why won't Apache start in XAMPP installation?

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.

Categories