时间:2021-07-01 10:21:17 帮助过:24人阅读
修改
#DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
DocumentRoot "/Users/wangwei/Documents/php/myphp”
报错:
estarting Apache Web Server...
Exit code: 8
Stdout:
apache config test fails, aborting
apache config test fails, aborting
Stderr:
AH00526: Syntax error on line 230 of /Applications/XAMPP/xamppfiles/etc/httpd.conf:
DocumentRoot must be a directory
AH00526: Syntax error on line 230 of /Applications/XAMPP/xamppfiles/etc/httpd.conf:
DocumentRoot must be a directory
是因为引号输入错误导致,修改为DocumentRoot "/Users/wangwei/Documents/php/myphp"就ok了
以上就介绍了php-学习笔记(整理),包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。