本文主要是介绍httpd: Syntax error on line 506 of /Applications/phpstudy,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
mac电脑在启动小皮Apache 时报以下错误信息
httpd: Syntax error on line 506 of /Applications/phpstudy/Extensions/Apache2.4.41/conf/httpd.conf: Cannot load modules/mod_log_rotate.so into server: dlopen(/Applications/phpstudy/Extensions/Apache2.4.41/modules/mod_log_rotate.so, 0x000A): tried: '/Applications/phpstudy/Extensions/Apache2.4.41/modules/mod_log_rotate.so' (no such file)
解决
因为mac自带apache,所以我们需要在mac终端输入sudo apachectl start,再在浏览器输入http://localhost,显示It works!就是打开了apache,这样再回到小皮你就可以看见apache打开了
这篇关于httpd: Syntax error on line 506 of /Applications/phpstudy的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!