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.
Related
Problem detected! 3:19:55 AM [Apache] Port 80 in use by "Unable to open process" with PID 4! 3:19:55 AM [Apache] Apache WILL NOT start without the configured ports free! 3:19:55 AM [Apache] You need to uninstall/disable/reconfigure the blocking application 3:19:55 AM [Apache] or configure Apache and the Control Panel to listen on a different port
How can i solve the php control panel PID problem.
can you tell me about your envirenment please ?
if you are running on localhost use the 8080 port instead of 80
if you are running on linux such as ubuntu
try to run this cmd
fuser -n tcp -k 80
it's will close all the process on the 80 port
Using Powershell you can find a process by port:
Get-Process -Id (Get-NetTCPConnection -LocalPort 80).OwningProcess
If System is the process opening that port then usually another service has requested this. Here is a list of possible processes:
SQL Server Reporting Services (ReportServer)
Web Deployment Agent Service (MsDepSvc)
BranchCache (PeerDistSvc)
Sync Share Service (SyncShareSvc)
World Wide Web Publishing Service (W3SVC)
Internet Information Server (WAS, IISADMIN)
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 Installation Directory: "e:\xampp\"
Checking for prerequisites
All prerequisites found
Initializing Modules
***
Problem detected! Port 80 in use by "Unable to open process" with
PID 4! Apache WILL NOT start without the configured ports free! You
need to uninstall/disable/reconfigure the blocking application or
reconfigure Apache and the Control Panel to listen on a different port
XAMPP Apache Service is already running on port 443
XAMPP MySQL Service is already running on port 3306
***
Problem detected! Port 8080 in use by
""E:\xampp\apache\bin\httpd.exe" -k runservice"! Tomcat WILL NOT
start without the configured ports free! You need to
uninstall/disable/reconfigure the blocking application or reconfigure
Tomcat and the Control Panel to listen on a different port
Starting Check-Timer
Control Panel Ready
Executing "services.msc"
Attempting to stop Apache service...
Attempting to stop MySQL service...
Status change detected: stopped
Status change detected: stopped
I disabled bluetooth and all other running connections and applications,and it worked fine for me
I installed xampp control panel v3.2.1 , my apache is not working as it gives error that
12:43:58 [Apache] Problem detected!
12:43:58 [Apache] Port 80 in use by "Unable to open process" with PID 4!
12:43:58 [Apache] Apache WILL NOT start without the configured ports free!
12:43:58 [Apache] You need to uninstall/disable/reconfigure the blocking application
12:43:58 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
i dont have anything running on my background . any alternative ??
Your system port 80 used by other resources. That's the reason for this error.
Change default port 80 into something
Goto your xampp folder > apache >config> find httpd file. On that file Search word listen. Default it set as 80 change into 2000 or 3000 any. Save that file. Run again your xampp. :)
This usually happens when you have Skype running. If that's your case and you don't want to change your Apache configuration, open Skype and look for the menu Tools -> Options -> Advanced -> Connection. Uncheck the box "Use port 80 and 443 as alternatives for incoming connections"
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.