资讯专栏INFORMATION COLUMN

处理服务器You don't have permission to access的问题

Cristic / 1906人阅读

出现了这样的问题:

Edit httpd.conf file, which is in /etc/httpd/conf/httpd.conf. Add the below code.


#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Allow from all



 #Options FollowSymLinks
 Options Indexes FollowSymLinks Includes ExecCGI
 AllowOverride None
 Allow from all

After the line no. 555 (in my case) . Check for the file permissions and restart the server.

service httpd restart   

Now, it will work . Still you are facing the same problem, disable the seLinux in /etc/selinux/config change SELINUX=disabled and restart the server as mentioned above and try it.

Hope this helps


原文地址:stackoverflow.com

https://stackoverflow.com/que...

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/35859.html

相关文章

  • 处理务器You don't have permission to access问题

    showImg(https://segmentfault.com/img/bVR5ny?w=585&h=178); 出现了这样的问题: Edit httpd.conf file, which is in /etc/httpd/conf/httpd.conf. Add the below code. #Options FollowSymLinks Options Indexes FollowSym...

    zzir 评论0 收藏0
  • You don't have permission to access / on this

    摘要:网上的答案千篇一律,没有一个能用的,真心怀疑这些作者有没有自己试过他们的答案。直接上答案打开修改把这里改成你的把这里改成你的也有这样的总之吧改过来就对了然后重启一下,就了 网上的答案千篇一律,没有一个能用的,真心怀疑这些作者有没有自己试过他们的答案。 直接上答案: 打开 Apache/conf/extra/httpd-vhosts.conf 修改 ServerName examp...

    VPointer 评论0 收藏0
  • You don't know cross-origin

    摘要:为什么会存在跨域问题同源策略由于出于安全考虑,浏览器规定不能操作其他域下的页面,不能接受其他域下的请求不只是,引用非同域下的字体文件,还有引用非同域下的图片,也被同源策略所约束只要协议域名端口有一者不同,就被视为非同域。 showImg(https://segmentfault.com/img/remote/1460000017093859?w=1115&h=366); Why 为什么...

    hersion 评论0 收藏0
  • Can't connect to local MySQL /tmp/mysql.sock

    摘要: mysql_install_db --verbose --user=whoami --basedir=$(brew --prefix mysql) --datadir=/usr/local/var/mysql --tmpdir=/tmp --explicit_defaults_for_timestamp WARNING: Could not write to config file...

    seasonley 评论0 收藏0
  • 10 command linux newbie

    摘要: So you are planning to switch from Windows to Linux, or have just switched to Linux? Oops!!! what I am asking! For what else reason would you have been here. From my past experience when I was ne...

    FrozenMap 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<