高手请无视,小白可借鉴。
问题描述:
LNMP0.7升级到LNMPA后
运行命令/root/lnmpa status
Apache的status一项会出现错误提示:
/etc/init.d/httpd: line 112: lynx: command not found
或者
Error 403 Access forbidden!
解决方法:
出现lynx: command not found错误提示的需要完成Step1&Step2
出现Error 403 Access forbidden!错误提示的只需要完成Step2
Step1
安装lynx
yum install lynx -y
Step2
运行命令
vi /usr/local/apache/conf/extra/httpd-info.conf
将
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from .example.com
</Location>
改成
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
重启Apache
service httpd restart
再用/root/lnmpa status或者service httpd status查看Apache状态就是正常的了
还可以用http://youripordomain/server-status访问通过Web查看
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。