403:你没有';我没有权限访问此服务器上的/index.php

403:你没有';我没有权限访问此服务器上的/index.php,php,wordpress,apache,web,server,Php,Wordpress,Apache,Web,Server,当我访问我的网站时,我面临以下信息: 您没有在此服务器上访问/index.php的权限 我可以使用相同的URL访问我的其他网站,如http://xiukun.wang/scrapy/,但http://xiukun.wang/datavis/不起作用 我已经尝试了很多方法来解决它,比如编辑我的httpd.conf文件,但是它不起作用。我如何解决它 <Directory "/alidata/www"> AllowOverride none Require all gran

当我访问我的网站时,我面临以下信息:

您没有在此服务器上访问/index.php的权限

我可以使用相同的URL访问我的其他网站,如
http://xiukun.wang/scrapy/
,但
http://xiukun.wang/datavis/
不起作用

我已经尝试了很多方法来解决它,比如编辑我的
httpd.conf
文件,但是它不起作用。我如何解决它

<Directory "/alidata/www">
    AllowOverride none
    Require all granted
</Directory>

DocumentRoot "/alidata/www"
<Directory "/alidata/www">
    Options Indexes FollowSymLinks
    AllowOverride all
    Require all granted
</Directory>

不允许超限
要求所有授权
DocumentRoot“/alidata/www”
选项索引跟随符号链接
允许超越所有
要求所有授权

您是否更改了.htaccess文件中的任何内容?您是否也更改了配置文件中的任何内容,例如DB name user和pass

同时将权限更新为公共html的755

编辑

由于您指定了其apache,请尝试以下解决方案:

  • 您能打开APACHE配置文件并找出索引名吗
  • 检查指令DirectoryIndex并确保列出了索引,否则请上载:

       DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
    
    检查目录权限是否正确:

    <Directory "/home/domain/www">
            Options +Indexes FollowSymLinks +ExecCGI
            AllowOverride AuthConfig FileInfo
            Order allow,deny
            Allow from all
    </Directory>
    
  • 确保请求的CGI脚本在上设置了可执行权限 文件夹。使用chmod命令设置权限:

    $ chmod +x file.cgi
    
  • 检查APACHE日志中的错误:

    # tail -f /path/to/apache/error.logs
    

来源:

apache+php+wordpress+aliyun服务器,感谢您的建议!!
# tail -f /path/to/apache/error.logs