XAMPP server should run on port : 80 by default, but here in our case XAMPP server running on multiple ports shown in the span short below.
Why it happens and how to prevent this?
Also TaskMgr shows two apache services running:
XAMPP httpd.conf file is here:
After running 2 or 3 hours XAMPP server, Server got slow and not responding where I think the problem would be generated by the multiple open ports?
Any idea? how to block and allow only port 80 as it is already by default?
it's mostly because of internal connections between apache and another service on the server.
for example it could be because connecting to 3306 (mysql)
to find out that you can use netstat button on the right of the xampp panel
or type this command in command prompt (DOS)
netstat -na
e.g: if you saw lots of :3306 it means that you did not close mysql connection!
I am currently using WAMP server on my Windows XP SP2 system. I just want to know why do I need to use localhost:8080 instead of just localhost to connect to my server-WAMP? I'm not that interested in this :8080 stuff.
So if you guys know why this happens, or how to exclude :8080 from the address, just help me through. Thank you very much by the way. Have a nice day.
Notice: Please don't tell me to switch to XAMPP. I know it works well.
This happens because your server is listening on port 8080, and not on port 80 which is the default (so when you type localhost you mean localhost:80).
So, you need to change your configuration to make WAMP listening on port 80. You find here how to do this: How to change port number for apache in WAMP.
I was having problem connecting my Wamp with window 8 while skype app was turned on. Does anyone know how to stop skype app on window 8 from using port 80?
To fix this problem, I had to take the following steps.
Click on the WAMP icon
Select Apache
Click on HTTPD.Conf
Search for "Listen"
Change
Listen 80
To
Listen 81
Save the document
Restart wamp
on the browser, type
http://localhost:81/php_file.php
Make sure you put the colon andn the 81 in order to view your request.
Have you tried going to skype > Tools > Option
then from option >Advance then uncheck the checkbox "use port 80 and 443 as alternatives for incoming connections"
When I run XAMPP Control Panel v3.2.1 I get this error:
07:37:24 [Apache] Problem detected!
07:37:24 [Apache] Port 443 in use by ""C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 2148!
07:37:24 [Apache] Apache WILL NOT start without the configured ports free!
07:37:24 [Apache] You need to uninstall/disable/reconfigure the blocking application
07:37:24 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
I could not fix it myself. Getting help soon will be thankful.
It's easier to change the port in VMware Workstation:
Edit > Preferences;
Shared VMs tab;
Disable;
Change port;
Enable.
Done.
Here is the solution step-by-step:
Open up httpd-ssl.conf in path2xampp\apache\conf\extra
Look for the line Listen 443
Change port number to anything you want. I use 4430. ex. Listen 4430.
Replace every 443 string in that file with 4430.
Save the file.
and, Finally restart your apache.
done.
Run vmware as administrator in windows or as root in linux. Then ctrl+P to open preferences. then on shared vms. You can see a port number 443 by default. This is conflicting with apache that is why it is not starting. Change it to some other value say 8443. Then try to start apache it will run.
Just go to vmvare edit->preferences->shared vms. Click on change settings and disable sharing.click on OK.xampp will work fine.
Connecting to shared virtual machines
Connection to VMware Workstation Server (the shared virtual machines) is administered by the VMware Host Agent service. The service uses TCP ports 80 and 443. This service is also used by other VMware products, including VMware Server and vSphere, and provides additional capabilities.
Configuring shared virtual machines
With the Shared VMs Workstation preferences, you can disable/enable the server, assign a different port for connecting, and change the Shared VMs directory.
To access the Shared VMs Workstation preferences:
Go to Edit > Preferences.
Click the Shared VMs tab.
Open VMware Workstation > Edit > Prefrences > Shared VMS > Change port 433 > 4330 > save.
Follow the process Showed in the Following video :
https://youtu.be/DYj7qIgwV2M
Here is the solution:
You use Ctrl+Alt+Delete, open task manager and switch to tab services find VMWareHostd and right click to chose StopService. You can start xampp without error
On Xampp edit apache config
Click Apache 'config'
Select 'httpd-ssl.conf'
Look for 'Listen 443',
change it to 'Listen 4430'
Say you let vmware use port 443, and use another ssl port in XAMPP Apache (httpd-ssl.conf) :
The red error will keep popping in XAMPP Control Panel.
You also need to change the port in the XAMPP Control Panel configuration :
In XAMPP Control Panel, click the "Config" button (top-left).
Then click "Service and Port Settings". There you can set the ports to match the ports used by Apache.
If there is no Shared VMs tab, you can edit the config manually.
Go to C:\ProgramData\VMware\hostd, and open proxy.xml with a text editor.
At the top, there should be <httpsPort>443</httpsPort>. Change it to -1.
Kill the process using Powershell:
Stop-Process -Id <PROCESS_ID>
Use the process ID provided in XAMPP's Control Panel's log.
You should be able to start Apache now.
Run XAMPP Control Panel as Administrator if using Windows 7 or more. Windows may block access to ports if not accessed by adminstrator user.
I have wamp running fine with 2 virtual hosts. But after installation of vmaware wamp server not starting. Any idea about this problem? Or how can i figure what make wamp not starting, does it store its error log somewhere?
I am using widows 7.
Thanks
It is possible that WMWare uses the same port as WAMP. I remember Skype doing this resulting in APACHE being unable to start the servers on its port.
You can use this tutorial to try and change the vSphere port from it's 80 default:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1021199
LE: There could be some other WMWare component that uses the 80 port. Try closing all WMWare components and start WAMP. If it works, then WMWare is using the 80 port.
Most probably the 2 fight over the same port (80). Also, Skype might cause WAMP to fail at starting and to display "304" errors for every GET request on the server.
Change WAMP's listening port from \wamp\bin\apache\apache2.2.8\conf. Locate httpd.conf, open it with a text editor and search for listening. Change to whatever port you consider.