感谢浏览,欢迎交流=。=
想为我老爸开发一套库存管理系统,借此机会打算使用下ext+php+apache+linux环境尝尝鲜。
为了在windows搭建本地开发测试环境,官网下载xampp,一键安装apache,mysql等环境
立即学习“PHP免费学习笔记(深入)”;
启动xampp发现80端口被IIS占用,443端口被VMware占用
于是,度娘告知:
443:配置文件位于C:\xampp\apache\conf\extra\httpd-ssl.conf中
则修改文件中443端口为444
80:配置文件位于C:\xampp\apache\conf\httpd.conf中
则修改文件中80端口为60000
访问localhost:60000/xampp,问题解决
然而,依然无法通过xampp快速启动浏览器访问60000端口,定位到80,进入iis页面。
于是寻找xampp是否有服务需要重启,寻找发现没有。遂寻找xampp的配置文件,果然xampp-control.ini文件中发现如下配置:
[ServicePorts]
Apache=80
ApacheSSL=443
MySQL=3306
修改为60000,444后重启xampp,问题解决
为apache增加多端口多站点:
修改文件C:\xampp\apache\conf\extra\httpd-vhosts.conf
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
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
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
Options Indexes FollowSymLinks
AllowOverride All
Allow from all
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号