VPS侦探论坛

 找回密码
 注册
查看: 9281|回复: 7

lnmpa升级以后apache配置问题

[复制链接]
发表于 2011-8-9 12:43:30 | 显示全部楼层 |阅读模式

请问装好lnmpa以后 执行 /etc/int.d/httpd status 显示:

                               Access forbidden!
   You don't have permission to access the requested object. It is either
   read-protected or not readable by the server.
   If you think this is a server error, please contact the [1]webmaster.
Error 403

    [2]localhost
    Tue Aug 9 12:37:08 2011
    Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 PHP/5.2.17
是不是正常的?如果不是,怎么解决?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-9 12:54:12 | 显示全部楼层


这一个是你APACHE里面使用的是WWW的用户,而文件夹里面没有附于WWW读取APACHE的权限。。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-8-9 12:54:53 | 显示全部楼层

看这一个英文就知道,访问被拒绝。你没有被授予访问请求对象的权限。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-9 13:04:55 | 显示全部楼层



可能是apache上和nginx上帮的域名不一样
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-8-9 13:09:58 | 显示全部楼层

我错了,没有用好搜索功能!!!!


搜索到以前的帖子上面有这个问题的解决方法,我开始没看到,已经解决了。
不过,还是谢谢yuweitaocn
解决地址贴出来,方便以后出现同样问题的朋友https://bbs.vpser.net/viewthread.php?tid=2858&highlight=lnmpa

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2011-8-9 13:12:24 | 显示全部楼层

回复 4# 的帖子


军哥帮忙看下,我按照上面帖子的方法apache正常显示了,是不是算是解决了?还是按你说的 N A 上面绑定域名不一样?
贴出来现在的httpd status:
                      Apache Server Status for localhost
   Server Version: Apache/2.2.17 (Unix) mod_ssl/2.2.17
          OpenSSL/0.9.8e-fips-rhel5 PHP/5.2.17
   Server Built: Aug 8 2011 14:02:31
     _________________________________________________________________
   Current Time: Tuesday, 09-Aug-2011 13:16:18 CST
   Restart Time: Tuesday, 09-Aug-2011 13:03:08 CST
   Parent Server Generation: 0
   Server uptime: 13 minutes 10 seconds
   1 requests currently being processed, 5 idle workers
W_____..........................................................
................................................................
................................................................
................................................................
   Scoreboard Key:
   "_" Waiting for Connection, "S" Starting up, "R" Reading Request,
   "W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
   "C" Closing connection, "L" Logging, "G" Gracefully finishing,
   "I" Idle cleanup of worker, "." Open slot with no current process

还有个问题,军哥,跟你的QQ发信息怎么都没有回复呢?是不是太忙了?

[ 本帖最后由 zjeanz 于 2011-8-9 13:17 编辑 ]
发表于 2011-8-9 13:26:41 | 显示全部楼层

能正常显示就行了

QQ只提供代购等相关付费业务,所有lnmp相关的支持服务均只能在论坛。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-8-9 13:40:44 | 显示全部楼层

回复 7# 的帖子




[ 本帖最后由 zjeanz 于 2011-8-9 13:57 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 02:49 , Processed in 0.035331 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表