XAMPP和IIS冲突。如果在没有安装XAMPP之前,已经安装了IIS的话,你会发现当你浏览器地址打开:http://localhost/时,你会进入的还IIS默认的管理页面,而且XAMPP也会提示80端口被占用。
如果你要将XAMPP与 IIS 共存的话,请把它们设置为不同端口。
Modify the Port Defaults
By default IIS employs ports 80 and 443 for HTTP and HTTPS entree severally. By default, Apache too presumes these scenes. By changing two config files in Apache you can easily reverse this:
For the design of this article I 'll presume you installled XAMPP to the default location.
- Edit file C:xamppapacheconfhttpd.conf
- Alteration line 63 to:
- Listen *: 81
- this gets apache listening to all IP addresses on port 81 ( you likelily make n't ask the star but I maked for safeties sake. You could too alter to another port of selection,e.g. 8080 )
- Alteration line 175 to:
- ServerName localhost: 81
- Again - if you took another port, update witht that. Salvage the file and last.
- Edit file C:xamppapacheconfextrahttpd-ssl.conf
- Edit line 42 to:
- Listen 442
- This alters the SSL ( HTTPS ) port to 442 ( or again, your port of selection ).
That Holds it!
XAMPP account the incorrect values
When you begin XAMPP through the console, it will tell commencing Apache on port 80. This is only a hardcoded position message it exposes; the central piece is that you get a `` Run '' message through the console.
If you hold this all run as a service you can merely presume it Holds attending work - unless you check the console.
Proof of the pudding - testing XAMPP
Attend http: //localhost: 81
If all Holds goodly you 'll see the XAMPP Logotype; if not, check you updated the configs to utilize ports that are not already in employment. You can likewise see what apache conceives of your install:
Attend Start & gt; Tally & gt; type `` cmd `` & gt; type `` cadmium C: xamppapachebin `` & gt; type `` httpd
If Apache holds a job with one of the port configs it will say you. Otherwise, if you make n't get a response and the window looks to be `` hung '', apache IS run!