apache排障

文章1中介绍了如何在mac下搭建apache服务器.由于mac自带的apache版本和macOS的版本有关,升级之后可能配置项就改变了

如macOS12以上的版本中.conf文件中有一行

#PHP was deprecated in macOS 11 and removed from macOS 12

其实macOS12以上就不用配置php7了

排障命令

apache配置文件语法检测

sudo apachectil configtest

apache错误日志

tail -f /var/log/apache2/error_log

  1. Mac下搭建HTTP访问的apache服务器 ↩︎

你可能感兴趣的:(Archive,apache)