Windows上同时配置IIS和XAMPP

 

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!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值