php错误:You don't have permission to access / on this server.

以前php环境崩溃了,重新装了个,打开第一个文件就出现:

You don‘t have permission to access / on this server.错误,让我情以何堪啊,居然说我此台服务器上无权限,ok解决办法如下:

找到:apache文件,进入conf文件,打开httpd.conf 文件,做如下修改:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

修改成

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
#    Deny from all
    Allow from all

#允许所有访问
    Satisfy all
</Directory>

第二处:找到:

#   onlineoffline tag - don‘t remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

</Directory>

修改成:

#   onlineoffline tag - don‘t remove
    Order Deny,Allow
#    Deny from all

#  Allow from 127.0.0.1
    Allow from all

</Directory>

php错误:You don't have permission to access / on this server.

时间: 2024-10-23 09:42:35

php错误:You don't have permission to access / on this server.的相关文章

HTTP错误:Forbidden You don&#39;t have permission to access …… on this server.

1.出现这种错误,一般用的web服务器是Apache 2.找到:apache配置文件,打开httpd.conf 文件,做如下修改: 第一处:找到 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory> 修改成 <Directory /> Options FollowSymLinks AllowOverri

PHP错误:Forbidden You don&#39;t have permission to access / on this server.

原文:PHP错误:Forbidden You don't have permission to access / on this server. 今天老大让在xp下搭建一个FTP服务器,一波三折,最后终于在老大的帮助下搞定了... 其中通过ip访问的时候 提示 Forbidden You don't have permission to access / on this server. 找到一个解决方法,特此记录 php的配置文件httpd.conf. 在原有的位置文件中找到配置节 <Direc

Apache问题(apache 提示403错误 You don&#39;t have permission to access /test.php on this server.)

<Files ~>AllowOverride AuthConfig FileInfo Indexs Limit OptionsOrder allow ,denyDeny from all-----------------注意:就是这儿!!--->把这行去掉或注释掉就行!!!</Files> Apache问题(apache 提示403错误 You don't have permission to access /test.php on this server.)

redhat centos apache 403 错误 Forbidden You don&#39;t have permission to access / on this server

redhat centos apache 403 错误 centos7 apache2.2.34源码包安装成功,确认进程已启动( ps -le | grep httpd) ,防火墙已关闭,但访问时报错: Forbidden  You don't have permission to access / on this server 原因为:安装目录/conf/httpd.conf配置文件中 User deamon Group deamon 选项没有修改,上述配置为默认配置,将其修改为 User t

Apache Version: 2.4.33 提示You don&#39;t have permission to access / on this server 的错误

需要修改 apache的配置文件  httpd.conf 和 httpd-chosts.conf 这两个配置文件 1.将httpd.conf 中的denied 修改为 granted 2 .把 httpd-chosts.conf 中的require local 修改为 require all granted 然后就可以了 Apache Version: 2.4.33 提示You don't have permission to access / on this server 的错误 原文地址:h

yii安装 /You don&#39;t have permission to access on this server

在安装yii的时候 ,当打开了init.bat进行配置的时候小黑本弹出了个小黑框立刻就关闭了,  进入cmd模式再打开init.bat就出现了"You don't have permission to access  on this server"的这个错误,后来综合网上的各个文章,找到了造成了这个问题的原因主要有三个 1 php的permission扩展配置没有开 , 我用的是phpStudy在php-5.6.27-nts里面的配置文件里把去掉extension=php_openss

Linux Centos7 Apache 访问 You don&#39;t have permission to access / on this server.

折腾了很久,今天才找到了最正确的答案.感言真不容易. 百度出来的99%都是采集的内容,全都是错误的. You don't have permission to access / on this server. 百度出的解决方法: 1)关闭selinux .坑,服务器根本就没开启selinux 2)修改 httpd.conf 中的 allow from all!坑,Apache都2.4+,根本就不存在 allow from all ,现在改为了  Require all granted! 3)修改

you don&#39;t have permission to access / on this server解决

时间:2014-10-13 17:34来源:有何不可 作者:有何不可 举报 点击:56151次 项目部署到Apache Http Server上面,通过apachectl -t 检测配置文件也没有问题.可是通过浏览器访问,却出现了“you don't have permission to access / on this server”. 项目部署到Apache Http Server上面,通过apachectl -t 检测配置文件也没有问题.可是通过浏览器访问,却出现了“you don't h

server下apache2.4.*虚拟主机配置Forbidden You don&#39;t have permission to access / on this server.

前言: 继前面两节笔记之后,在配置一个虚拟主机时,这中间却遇见了一个问题,这里需要描述做一下笔记,刚刚安装的是Ubuntu server,apt-get下来的apache的版本是2.4.7,之前一直用的是apache2.2的,期间遇见过403错误,只是问题处理的方式方法有些不一样,于是这里就一时没有找到头绪.本文原创博客地址:http://www.cnblogs.com/unofficial官网地址:www.pushself.com) 403:没有权限访问 不说废话直接找主题: 首先我们来回顾一