简体   繁体   中英

XAMPP/Apache won't launch on port 81

I just installed the latest XAMPP and I changed httpd.conf so it listens on port 81 (because Skype listens on 80):

Listen 81

However when I use the XAMPP CP to launch Apache, it says:

Apache started [Port 80]

and then fails. If I stop Skype it says the same thing but doesn't fail and Apache listens on port 81, so my Apache config must be correct.

Why is XAMPP still checking port 80 and how do I stop it? I am running Windows 64-bit. XAMPP is installed in C:\\xampp

I got the solution from XAMPP support so I'm answering my own question:

The solution was to change the port number in the sample XAMPP.INI file provided, then copy it to the xampp root dir.

There is another line further down in the .conf file that also needs changing.

ServerName localhost:80

Now start Apache and MySQL, browse to http://localhost:81 , and the contents of your htdocs folder should appear.

Regarding the message displayed in the xampp window, I would ignore it. Mine displays '[Port 80]' regardless of which port I have set it to use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM