Port is not working for Xampp server - xampp

I am trying to start my Xampp server but I am getting error that port is already used with PID . I am unable to start the server . how can i change the port of the server . Please suggest .
I am getting given below log :-
Port 80 is already used with PID 80.

Edit the file "httpd.conf
Yes you can change the port.
Listen 12.34.56.78:80
Listen 80 #change this to 8080
ServerName localhost:80 #change this to 8080

Related

xampp apache not starting after changing port

enter image description hereApache in XAMPP not working I've searched and I found that I have to change port from 80 to 8080 and from 443 to 4433 and I did this and the same result I've tried another port but no change the same error
note : I'm not have skype
I tried to change port and uninstall XAMPP and reinstall and apache still not working

How to set up virtual hosts when changed the default port(80) to 8080?

I'm using MAMP on windows 10 and I couldn't start Apache server because of my default port(80) is used by System. So I changed the default port to 8080. But now I can't access my previously set up virtual host sites. Please help me
I already tried this :
1) MAMP\bin\apache\conf\httpd.conf
Listen 8080
2) MAMP\bin\apache\conf\extra\httpd-ssl.conf
<VirtualHost _default_:8080>
Listen 8080
3)hosts file
127.0.0.1:8080 mygym.test
4) MAMP\bin\apache\conf\extra\httpd-vhosts.conf
NameVirtualHost *:8080
<VirtualHost *:8080>
DocumentRoot "E:/MAMP/htdocs/mygym/system"
ServerName mygym.test
</VirtualHost>
now when I typed as mygym.test in the URL tab It comes a 404 error
No webpage was found for the web address: http://mygym.test/
You are doing it wrong.
3)hosts file
127.0.0.1:8080 mygym.test
The hosts file is for host name resolution only. You cannot put port numbers in there. the browser is what selects the port to choose.
Instead try 127.0.0.1 mygym.test in hosts file and try http://mygym.test:8080 in browser.

Port 80 not available on macbook localhost

I am trying to setup my macbook to serve Apache over (localhost) port 80. Here's what I did:
add line pass in proto tcp from any to any port 80 to /etc/pf.conf
reboot
switch off the firewall
make sure that httpd.conf listens to port 80 Listen 80
It is still giving me "connection refused" in the browser, and port 80 is not showing up on the portscan utility.
The configuration seemed to be messed up because I was trying to run httpd through brew. It ended up giving index pages from different directories. I ended up removing httpd from brew and reverting to the built-in apache.
Apache now listens to port 80

Play Application runs on port 443 but nothing resolves from a browser

We have a Play application running on a Linux box that resolves to port 443 instead of port 80 or port 9000.
The application is up and running without errors - there are no errors in the SSH console.
Port 80 is disabled (HTTP) but we want to have the web application appear in the browser using port 443 (HTTPS).
We have the application.conf file set up to use the correct port as well as the correct keystore path and keystore type (JKS).
Since there are no errors, we would like to know what we can do to correct this situation. Any help would be great!

How do I change the IP address in XAMPP for Windows?

I've been trying to figure out how I can change my server config for XAMPP so that it doesn't have a memory fault when both Windows and the server are trying to access localhost at the same time. Basically I want XAMPP to be IP of 127.0.1.1 or something similar so it doesn't interfere with the localhost used by the system so I can browse the web and my websites that I'm developing. What is happening is that if I have XAMPP and Eversoft's first page 2000 v2.0 running at the same time, I'll get a BSOD (blue screen of death) in the middle of editing my sites. This is an intermittent problem, but always happens with these two programs.
Just edit c:\xampp\apache\conf\httpd.conf and change the Listen 80 to Listen 127.0.0.2:80 or whatever ip address you want. Make sure you place : between the ip address and port number, in this case it was port 80.
These are the steps to follow when you want your PHP application to be installed on a LAN server (not on web)
Get the internal IP or Static IP of the server (Ex: 192.168.1.193)
Open XAMPP>apache>conf>httpd.conf file in notepad
Search for Listen 80
Above line would read like- #Listen 0.0.0.0:80 / 12.34.56.78:80
Change the IP address and replace it with the static IP
Save the httpd.conf file ensuring that the server is pointed to #Listen 192.168.1.193:80
In the application root config.php (db connection) replace localhost with IP address of the server
Note: If firewall is installed, ensure that you add the http port 80 and 8080 to exceptions and allow to listen. Go to Control Panel>Windows Firewall>Allow a program to communicate through windows firewall>Add another program Name: http Port: 80 Add one more as http - 8080
If IIS (Microsoft .Net Application Internet Information Server) is installed with any Microsoft .Net application already on server, then it would have already occupied 80 port. In that case change the #Listen 192.168.1.193:80 to #Listen 192.168.1.193:8080
Hint:
first part=file location --- second part=find in the file ---
third part=replace with finded text
How Change "127.0.0.1" in Xampp To "127.0.0.2" (or paste your favorite ip instead 127.0.0.2)
(C:\xampp\apache\conf\httpd.conf) --- Listen 80 --- Listen 127.0.0.2:80
(C:\xampp\apache\conf\extra\httpd-ssl.conf) --- Listen 443 --- Listen 127.0.0.2:443
(C:\xampp\php\php.ini) --- ;xdebug.remote_host = "127.0.0.1" --- ;xdebug.remote_host = "127.0.0.2"
(C:\xampp\phpMyAdmin\config.inc.php) --- $cfg['Servers'][$i]['host'] = '127.0.0.1'; --- $cfg['Servers'][$i]['host'] = '127.0.0.2';
How Change "Localhost" in Xampp To "myhost" (or paste your favorite name instead myhost)
xampp control panel admin butoons still open localhost
(C:\xampp\apache\conf\httpd.conf) --- ServerName localhost:80 --- ServerName myhost:80
(C:\xampp\php\php.ini) --- ; SMTP = localhost --- ; SMTP = myhost
(C:\Windows\System32\drivers\etc\HOSTS) --- 127.0.0.1 localhost --- 127.0.0.2 localhost
127.0.0.2 myhost >>> #(next line after 127.0.0.2 localhost)
You can point 127.0.1.1 to 127.0.0.1 in your windows hosts file (Windows/system32/driver/etc)

Resources