Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set xampp open localhost:8080 instead of just localhost

I use XAMPP 1.7.3. Apache and MySQL installed. Nothing else.

Apache installed on default port 80. Clicking on Admin next to Apache opens http://localhost/xampp/. Which works as expected.

I navigated to xampp/apache/conf/httpd.conf and edited it. Set Listen 8080. Now http://localhost:8080/xampp/ works as expected but the Admin button still opens http://localhost/xampp/ which does not open anything. I have restarted the computer after doing so with no results.

How to make XAMPP apache admin open localhost:8080/xampp ?

like image 456
Samik Sengupta Avatar asked Jun 22 '12 07:06

Samik Sengupta


People also ask

How do I connect to localhost 8080?

Hold down the Windows key and press the R key to open the Run dialog. Type “cmd” and click OK in the Run dialog. Verify the Command Prompt opens. Type “netstat -a -n -o | find "8080"".


4 Answers

Steps using XAMPP GUI:

Step-1: Click on Config button

enter image description here

Step-2: Click on Service and Port Settings button

enter image description here

Final step: Change your port and Save

enter image description here

like image 126
Arif Avatar answered Oct 24 '22 07:10

Arif


The port that the Admin button references is configurable. In the XAMPP install folder there is a xampp-control.ini file. Changing the Apache entry under [ServicePorts] will affect the url the Admin button opens.

[ServicePorts]
Apache=8080
like image 42
John Stanley Avatar answered Oct 24 '22 07:10

John Stanley


I believe the admin button will open the default configuration always. It simply contains a link to localhost/xampp and it doesn't read the server configuration.

If you change the default settings, you know what you changed and you can enter the URL directly in the browser.

like image 41
Stelian Matei Avatar answered Oct 24 '22 08:10

Stelian Matei


you can get loccalhost page by writing localhost/xampp or by writing http://127.0.0.1 you will get the local host page. After starting the apache serve that can be from wamp, xamp or lamp.

like image 30
NomanJaved Avatar answered Oct 24 '22 07:10

NomanJaved