第二次配置XAMPP,但是发现以前犯的错误,经过时间的洗涤,又会重新出现。
1.80端口的配置:
C:\xampp\apache\conf\httpd.conf 下修改
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 8000
2.修改apache的路径
C:\xampp\apache\conf\httpd.conf 下修改
#DocumentRoot "/xampp/htdocs"
3.修改apache的路径后出现的错误
Access forbidden!
You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
修改C:\xampp\apache\conf\httpd.conf 下
Deny from all --> Deny from allow
4.XAMPP卸载不干净的时候,关机后删除XAMPP文件夹。