Apache(httpd) 报错You don't have permission to access /on this server.

项目需要,增加个访问端口,指向不同目录。

但是一直报“You don‘t have permission to access /on this server.”错误

配置文件语法检查:

#/etc/init.d/httpd configtest 或 apachectl -t

直接输入:/etc/init.d/httpd 会新显示选项

[[email protected] ~]# /etc/init.d/httpd 
Usage: httpd {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}

检查无误:会提示Syntax OK

[[email protected] conf]# apachectl -t
Syntax OK

用namei -m /home/tomcat/html 列出这个路径下所有的权限和所属组。

最后经过查看,突然发现,html父目录tomcat是只给了775的权限,给了777权限访问成功。

Apache(httpd) 报错You don't have permission to access /on this server.

时间: 2024-10-20 11:31:37

Apache(httpd) 报错You don't have permission to access /on this server.的相关文章

安装wamp后,localhost访问报错“You don't have permission to access / on this server.”

今天装了一个wamp,在本地测试了一下,发现使用http://localhost/报错403,提示内容如下:"You don't have permission to access / on this server.".用127.0.0.1访问正常,phpMyAdmin也是同样的问题. 在网上搜索了一下有很多都是出现这个问题,但是不是不详细就是没找到解决办法.在此做一下记录,我是安装一路下一步所以安装目录都是默认的. 首先修改Apache,在wampserver下左键,Apache下有

启动wamp报错 You don't have permission to access / on this server

安装完wamp之后,安装网上的教程设置虚拟路径,出现了问题,同样的问题由不同的原因导致. 1.httpd.conf中添加Listen 相应的端口,我的是8080 2.httpd.conf去掉Include conf/extra/httpd-vhosts.conf前面的#. 3.然后调用localhost,就出现下面的错误: Forbidden You don't have permission to access /on this server. 解决方法:在conf\extra下面的httpd

wamp报错You don't have permission to access on this server

打开httpd.conf  将<Directory /> </Directory>的内容替换成 Options FollowSymLinksAllowOverride NoneOrder deny,allowDeny from all 也就是 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all</Directory> vhost配置: &

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,报错:Cannot use an external APR with the bundled APR-util和httpd: Could not reliably determine the server&#39;s fully qualified domain name

一.解决APR和APR-util错误: 1.1.安装APR: [[email protected] httpd-2.2.23]# cd srclib/apr [[email protected] apr]# ./configure --prefix=/usr/local/apr root@ganglia apr]# make && make install 1.2.安装APR-util: [[email protected] apr]# cd ../apr-util/ [[email pr

Apache重启报错原因

#Apache重启报错原因 [[email protected] /]# service httpd restart Stopping httpd:                                            [  OK  ] Starting httpd: httpd: apr_sockaddr_info_get() failed for www.example.com httpd: Could not reliably determine the server's 

转 : Apache启动报错:could not bind to address [::]:443 解决办法

转:Apache启动报错:could not bind to address [::]:443 解决办法 安装Apache服务器的时候,报如下错误: Installing the 'apache' service The 'apache' service is successfully installed.Testing httpd.conf....Errors reported here must be corrected before the service can be started.(

启动httpd报错

启动httpd报错: service httpd start Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 61.191.206.4 for ServerName 在网上大多数解决办法是去掉配置文件中ServerName前面的#,我发生的这种情况去掉就不行,重启之后依然打不开页面,而且重启仍旧报错. 解决办法: 修改ServerName loc

启动httpd报错-已解决

[[email protected] ~]# service httpd startStarting httpd: (13)Permission denied: make_sock: could not bind to address 192.168.1.153:28080no listening sockets available, shutting downUnable to open logs [FAILED][[email protected] ~]# 临时办法: [[email pro