Easy PHP Apache Port Error Message - php

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.

Related

xampp apache server up and running, yet bad request

I got some trouble with my xampp on Win 10, as so many have had before me...
It's the same old port problem with skype and IIS.
I used to quit skype and stop the world wide web publishing service, but am sick of having to go through the whole ordial every time I start xampp.
so yesterday I changed the ports for my apache server and ecerything worked fine.
started up today and boom...localhost couldn't find my pages.
So I checked for port problems in xampp...there were none! apache was up and running(as were mysql server and filezilla). no error messages, nothing.
I resetted the ports to 80 and 443. killed of skype and the iis and everything worked fine again. Now whenever I change the ports, it will not run.
I did everything according to here:
How to change XAMPP apache server port?
(I changed the ports in httpd.conf, httpd-ssl.conf and in service and port settings )
I just don't get it. why it won't run with changed ports(and yes I checked the ports for being empty).
atm I have changed the port 80 -> 8024
and port 443 -> 1337 (no matter what I change this port to it always throws bad request)
8024 works fine. I can get to the dashboard via localhost:8024
but localhost:1337 gives me a bad request.
any suggestions, or similar encounters?
For now will have to continue using standart ports and kill of the 2 processes, but I really wanna skip that in the future.
I used port 80->8024
and port 443->448 yesterday and it worked fine...really weird...
Ok so that means your system has Microsoft IIS installed or one of the other bits of MS technology that reports that signature, they are doing that on later versions of Windows for some reason.
If you are not intending to use it you can uninstall it, it is not an integral part of windows so its being uninstalled wont effect normal operations of windows, and if you need to install it again later, it comes as part of the standard OS so you wont need to do anything perticularly clever.
So go to Start -> Control Panel -> Programs and Features
Click the 'Turn windows features on and off' link in the left hand menu.
Wait for the list to load and then find 'Internet Information Services'
Un check the check boxes for the following items ( you may not see all of them ), and there may be others I done know about. You may have all of these or just some of these.
IIS
Web Deploy 2.0 (Web Deployment Agent Service)
MS Sql Server Reporting service.
BranchCache ( Windows 8.1 )
SQL Server VSS Writer
List of possible service names not sure how up to date this is.
Tutorial on how to find what ports are in use on your system and what app is using them
Windows will then have a think for a while and then remove those applications, you will probably be asked to reboot to complete the uninstalls.
Reboot anyway when the uninstalls are complete.
Then try XAMPP again

phpmyadmin is entirely blank Windows 10

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

Can't use port 80 or 443 for WebSocket on XAMPP

I've got a Windows 7 XAMPP setup that I use for quickly testing PHP code. I have been running tests with a PHP WebSocket script I wrote recently, and it works fine on every port I've tested except ports 80 and 443. Neither 80 nor 443 will work with the ws or wss protocol. When I try either port, absolutely nothing will go through and the script will just sit there running forever.
The official WebSocket spec (RFC 6455) states:
The WebSocket Protocol attempts to address the goals of existing
bidirectional HTTP technologies in the context of the existing HTTP
infrastructure; as such, it is designed to work over HTTP ports 80 and
443 ...
And:
By default, the WebSocket Protocol uses port 80 for regular WebSocket
connections and port 443 for WebSocket connections tunneled over
Transport Layer Security (TLS) [RFC2818].
And:
The port component is OPTIONAL; the default for "ws" is port 80, while
the default for "wss" is port 443.
So how am I supposed to get ports 80 and 443 to work?
Thanks.
Edit: Here's the first line of netstat:
I guess that means that I can't use port 80, right?
Typically, this sort of issue would mean one of the following:
Something is already listening on those ports; port bindings cannot be shared by multiple processes.
You may require escalated privileges and don't have permissions to open up a listener on those ports (lower-range ports are usually reserved).
To see if it's the first issue, try using netstat to see what ports you have listeners for:
netstat -a -p TCP -o -n
If it's the second issue, you may have to adjust the way you're running the server so it has the proper permissions.
There may be a workaround (I haven't tried this) to enable port sharing under Windows:
https://msdn.microsoft.com/en-us/library/ms733925(v=vs.110).aspx
...but the behavior may be hard to predict with that sort of setup. Another option is to set up a proxy in IIS (which I assume is what's hogging your port 80).
This answer was last revised on November 20, 2015 at 2 PM EST.
I discovered your question because it is similar to my own during the set up process to install and configure XAMPP on my Windows 10 laptop.
(I will explain in details what happened in my specific situation below, but before that I will put a very quick summarized answer to your question.)
I ran the XAMPP as administrator via right clicking it and choosing that option.
The port problems disappeared seemingly.
Now I can open it normally by left clicking it from the pinned icon on the taskbar without specifying administrator.
The latter result occurred after restarting my computer several times in a 24 hour period.
Wish I knew precisely what changed and how it worked, but it's working perfectly now as far as I can see.
I received some errors in the XAMPP Control Panel on November 17, 2015.
These errors said things similar to the following:
"unable to open process PID 4416"
"port 80 blocked"
"port 443 blocked"
"you are not running as an administrator"
Also, I should mention, that I am working through the steps in Chapter 2, Setting Up a Development Server, in the O'Reilly published text book 4th Edition of Learning PHP, MySQL, & JavaScript With jQuery, CSS, & HTML5 by Robin Nixon.
I also discovered that a command prompt "looking" box had opened which I did not know what to do with, and so I later closed it.
However, to get back on point, specifically it was important to me to set up with server and run it in as similar a way to the text book instructions as possible, so changing default port numbers did not appear to be a good option for me because I was not sure how alter the port number for one thing, such as the main port, might affect other ports, and other things on down the line.
I also was getting a bit confused by some other advice offered about searching, using various methods, to determine what other "things" might be interrupting the ports that my XAMMP was trying to use, akak my Apache server.
It actually appeared as though Apache was the source of the PID 4416, and that nothing was utilizing Port 80 or Port 443 at all. I also checked to see if Port 3306 was being used, because it is mentioned in the text book that it would be the default Port for MySQL, and it was not being used by anything else.
I check these PIDs by going to "Task Manager," then to "Details," then to "PID."
Then, in my Windows 10 laptop, I closed all open windows of any kind, even the XAMMP Control Panel.
Then, I typed XAMMP into the "Search Windows" bar.
When XAMMP appeared, I right clicked on it and chose to run it as Administrator.
When the Control Panel opened in this method, I received no error messages in the Control Panel for XAMMP.
However, when I pinned XAMMP to my task bar and tried to open it in a normal fashion (left-click to open) I received many errors.
But, when I right click on the pinned XAMMP icon on my task bar, and then right click again when the words XAMMP pop up, and then choose "run as administrator" it seems to be error free.
This is a work around type of solution.
I assume it might be helpful to some, but not all.
I hope it helps to shed light on similar issues.
I will be working to solve this completely.
It seems in this particular case I need to find a way to be sure the XAMMP automatically runs as adminisistrator when opened, and must require some adjustments that I simply have not discovered just yet.
I hope this is helpful to others! :)
Most of my knowledge is based in HTML5 and CSS3 and search engine optimization, and so I am working to learn more about server side, and dynamic / interactive scripting at this time.
P.S. Within 24 hours of this initial problem, after several restarts of my laptop, I was able to open XAMPP without error, in a normal fashion, by simply left clicking on the icon that I pinned to my taskbar.
I hope this is helpful as well. :)
Have a great day.

php server ERR_CONNECTION_REFUSED

I can't make a php server run on my local computer. I tryed with wampserver and Easy PHP. I checked the usage of my port:80, I changed the port from :80 to :8080, I gave Apache and mysql the permissions required on the firewall settings... I did everything, but when a type http://localhost with or without the port number browser answer is always the same:
ERR_CONNECTION_REFUSED
Can you help me, please?
While I think this questions is off-topic, I will try to answer it.
I have had problems with Skype and WAMP running at the same time. If you have Skype open, close it and WAMP, then open just WAMP. There is a setting in skype to use an alternate port. It has been covered thousands of times all over the internet.
Close everything you can think of.. Zone Alarm or any other software based firewall, disable Windows firewall, temporarily disable your AV if it has a built in firewall. I am not saying you should run without protection, but you need to identify what is causing the troubles. As far as hardware firewalls, I have a Linksys wireless router (built in firewall) and I have never had to do anything to get WAMP to work behind it.
If you have been messing with tons of settings in your WAMP, then just uninstall it and re-install it. You don't need to change your port to 8080 to get it working, and doing so would require you to always include :8080 in your URL (unless you have it listen on both).
With a stock WAMP, and everything you can think of closed or disabled, try again.
The WAMP icon should be green. Click on it, and go into both Apache and MySQL. They have a "services" sub-menu, where you can start/stop/restart the service. Start should be greyed out, and stop and restart should be available. If you see one of them not started, try clicking "start service". If it still won't start, then click "Install Service". Wait a minute. Then click "Start Service".
For some reason, when I freshly install WAMP, I have to manually install the service on one of them. I don't recall which one. Once I install the service, it then will work. You might have to click the WAMP icon again, and select "Restart All Services". Then go into the Apache and MySQL menus and make sure the services are started.
OK after about an hour of trying all of the fixes and youtubes I could find, I read Wade's approach. So with that knowledge I went:
wamp menu->apache->services->start/resume and boom localhost wamp page popped right up.
This was a fresh install the error for localhost was 404 err connection refused.
I hope this helps your frustration.

Do SQL Server and WAMP Server clash? Do I need to use different ports?

Alright, I am totally new to programming so be easy on me. I followed the instructions from my Lynda.com account on how to install WampServer for Windows 7 but run I am unable to get my orange icon to change to green. I have tried to connect to "put it online" but received the following error:
"Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started"
So I restarted all services with the same error. I also tried stopping services then restarting. No luck and I still get the same error.
Some following things to keep in mind:
I already have SQL Server installed before I tried to install WAMP Server so wonder if they're linked to the same port. If so, not sure how to find and edit this port.
-I do not have SKYPE so they are not using the same port.
My theory is it's having something to do with having SQL Server and MySQL using the same port. How do I change a port if so. Thanks in advance for any suggestions!
I got the same problem and found that it is not the SQL server which is conflicting, but the SQL server Reporting service. I went to services.msc and stopped SQL server Reporting service. I also chagned it to manual so that it does not start automatically on a reboot. Now I restarted WAMP server and it turned green.
Tnx-
SJ Creation
You can Test Port 80 by clicking on the Wamp Server, Apache, Service, then Test Port 80. If it is being used, it will tell you otherwise it will tell you that it is not being used at that instance.
Stopping SQL Reporting Service, Start, then type Administrative Tools, click on the name , select computer Management, then Services and applications> SQL Server Configuration> Services & Look for SQL Reporting Servicves, Set it to Manual start, and stop.
Restart Your WAMP Server, Test Ur Port, This time U will not find it BUSY. Restart all Services.
for more to change port or other problem please check here
hope it can help you
There are two steps
Change the port number from 80 to something like 8888 (in the thousands) - to change the port number you must click on the wamp or mamp and then click on apache then click on httpd.conf and then searchfor listen. Change the port number to 4444 or 8888 or something in the thousands.
if wamp is now working but you still get
Not Found
HTTP Error 404. The requested resource is not found.
you must right the absolute path as follow
localhost:8888/folderName/filename.php
this should fix your problem
Also: you can go to dreamweaver and click on server. Then place localhost:8888 instead of simply using localhost
I got the same problem and found that it is not the SQL server which is conflicting, but the SQL server Reporting service. It seems it is using same port 3306 which is being used by MYSql. I went to services.msc and stopped SQL server Reporting service. I also chagned it to manual so that it does not start automatically on a reboot. Now I restarted WAMP server and it turned green.
Presently I am not using SQL server Reporting services, hence I can keep the service stopped. I have no idea how I can change the port for this service so that they don't conflict. If any one really wants to use SQL server Reporting services, he or she may dig deeper into this service to somehow change the port.
Thanks,
Pankaj

Categories