当我升级到Yosemite时,我得到了这个:
$ apachectl configtest
AH00526: Syntax error on line 102 of /private/etc/apache2/httpd.conf:
Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration
在102线上:
User _www
有什么建议吗?
在apachehttpd.conf中添加以下行(默认路径:/private/etc/apache2/httpd.conf)
LoadModule unixd_module libexec/apache2/mod_unixd.so