LNMPA中Apache的status问题解决方法
思韵闪耀
2015-06-18
0

高手请无视,小白可借鉴。

问题描述:

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 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

RIP

相关内容

网页保护、网页图片保护
1、禁止另存网页,把如下代码加入到网页body/body中 程序代...
2025-05-30
docker-compos...
1.Compose介绍 DockerCompose是一个用来定义和...
2024-04-26
firewall-cmd ...
firewalld的简要说明:firewalld 、firewal...
2024-03-15
DNF error: Er...
U盘引导最小化安装anolis oa 8.8 ga出现以下错误DN...
2023-10-27
列出服务单元: syste...
列出服务单元: systemctl list-units --ty...
2022-11-26
续订Exchange Se...
每个证书都有内置的到期日期。 在Exchange Server中,...
2022-09-16

热门资讯

SIOCADDRT: Netw... SIOCADDRT: Network is unreachable SIOCADDRT: 网络不可达...
centos7下创建新用户和组 linux下添加,删除,修改,查看用户和用户组 1 .增加一个test组 groupadd test...
linux通过sed 修改文件... 13sy.txt里面内容如下 A; B; C; write by luohao199621; 1.要...
关于cannot remove... 关于cannot remove directory: Directory not empty的解决办...
mount: unknown ... mount: unknown filesystem type LVM2_member解决方案 系统启...
OpenMediaVault安... OpenMediaVault 是一个基于Debian的专用 Linux 发行版,用于构建网络连接存储...
centos7 双网卡双网关的... 最近公司需要在一台服务器上同时使用内网和外网,并且都需要跨网段访问,因此需要双网关,但是一台机子上只...
ethtool 命令详解 1 概述 ethtool 是用于查询及设置网卡参数的命令。 2 命令详解 2.1 命令格式 (1) ...
CentOS7单网卡设置双IP... linux系统CentOS7单网卡设置双IP的方法,centos7.5、7.6、7.7设置双IP教程...
Linux进程状态D,S,Z的... Linux进程状态top,ps中看到进程状态D,S,Z的含义 在top和ps命令中有一列显示进程状态...