apache2配置重启失败,AH01630和AH00169

在尝试更改Apache2中PHP的默认执行目录并给予相关目录0777权限后,重启Apache2服务时遇到服务器拒绝访问的问题。日志显示权限不足。通过检查错误日志发现,Apache对访问目录有严格权限控制。修改配置文件以解决AH0169错误,过程中注意避免配置错误。同时,内存不足或服务器资源限制也可能导致Apache2服务被kill。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本来的目的是更换apache2中PHP的默认执行目录,进行如下操作:

cd /etc/apache2/sites-available
sudo vim 000-default.conf
<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值