raksmart活动促销

分享

写回答

发帖

kloxo下DEDECMS目录权限问题

国外VPS云主机 国外VPS云主机 2026 人阅读 | 1 人回复

发表于 2012-1-14 07:00:00 | 显示全部楼层 |阅读模式

我是独立的VPS,系统是linux,使用的Kloxo控制面板,安装好DEDE网站后,需要对一些目录权限进行修改,但是现在有一个问题,就是data,uploads目录下的.php执行权限问题,我按照DEDE官方给出的办法无论怎么设置,后台依然提示我的这两个目录有php执行权限,请问改如何修改?
比如我的网站地址是www.baidu.com我设置的安装目录名是baidu
我按照官方修改的是这样的
/home/wwwroot/baidu/uploads
请问我这个路径是否有问题?还是其他地方出问题了?
官方修改的教程:http://help.dedecms.com/install-use/server/2011/1109/2124.html
我找到我的httpd.conf的文件位置是这个内容:
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

修改后我是这样的
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/home/wwwroot/baidu/data">     
<FilesMatch ".(php|asp|jsp)$">
    Deny from all     
</FilesMatch>
</Directory>

<Directory "/home/wwwroot/baidu/uploads">     
<FilesMatch ".(php|asp|jsp)$">
    Deny from all     
</FilesMatch>
</Directory>

请问问题出在哪?

回答|共 1 个

nisheng

发表于 2012-1-14 09:12:52 | 显示全部楼层

如果uploads是在根文件夹下试试这个/home/wwwroot/uploads目录,设置好后重启下apache
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则