Rumah  >  Artikel  >  pembangunan bahagian belakang  >  windows下使用xampp一键安装apache+php运行环境,xamppapache_PHP教程

windows下使用xampp一键安装apache+php运行环境,xamppapache_PHP教程

WBOY
WBOYasal
2016-07-13 10:04:35879semak imbas

windows下使用xampp一键安装apache+php运行环境,xamppapache

感谢浏览,欢迎交流=。=


 

 

想为我老爸开发一套库存管理系统,借此机会打算使用下ext+php+apache+linux环境尝尝鲜。

为了在windows搭建本地开发测试环境,官网下载xampp,一键安装apache,mysql等环境

启动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

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/965018.htmlTechArticlewindows下使用xampp一键安装apache+php运行环境,xamppapache 感谢浏览,欢迎交流=。= 想为我老爸开发一套库存管理系统,借此机会打算使用下ex...
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn