感謝瀏覽,歡迎交流=。=php
想爲我老爸開發一套庫存管理系統,藉此機會打算使用下ext+php+apache+linux環境嚐嚐鮮。mysql
爲了在windows搭建本地開發測試環境,官網下載xampp,一鍵安裝apache,mysql等環境linux
啓動xampp發現80端口被IIS佔用,443端口被VMware佔用web
因而,度娘告知:
443:配置文件位於C:\xampp\apache\conf\extra\httpd-ssl.conf中
則修改文件中443端口爲444
80:配置文件位於C:\xampp\apache\conf\httpd.conf中
則修改文件中80端口爲60000
訪問localhost:60000/xampp,問題解決sql
然而,依然沒法經過xampp快速啓動瀏覽器訪問60000端口,定位到80,進入iis頁面。
因而尋找xampp是否有服務須要重啓,尋找發現沒有。遂尋找xampp的配置文件,果真xampp-control.ini文件中發現以下配置:
[ServicePorts]
Apache=80
ApacheSSL=443
MySQL=3306
修改成60000,444後重啓xampp,問題解決apache
爲apache增長多端口多站點:
修改文件C:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:60001>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "E:\ApacheRoot\rivertest"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/dummy-host2.localhost-error.log"
CustomLog "logs/dummy-host2.localhost-access.log" common
<Directory "E:\ApacheRoot\rivertest">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:60000>
ServerAdmin webmaster@dummy-host.localhost
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/dummy-host.localhost-error.log"
CustomLog "logs/dummy-host.localhost-access.log" common
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Allow from all
</Directory>
</VirtualHost> windows