简体   繁体   English

Apache服务器在重启时为phpmyadmin安装提供403禁止错误

[英]Apache server gives 403 forbidden error on restart for phpmyadmin installation

On an ec2 amazon linux machine. 在ec2亚马逊linux机器上。 I installed apache/mysql/phpmyadmin on intial instance creation. 我在初始实例创建时安装了apache / mysql / phpmyadmin。 I'm able to view phpmyadmin no worries but when I restart the apache httpd daemon it throws a 我能够查看phpmyadmin并不用担心,但是当我重新启动apache httpd守护进程时,它会抛出一个

'You don't have permission to access /phpmyadmin/index.php on this server'

after I've logged in. 我登录后

I've checked httpd.conf and have 我已经检查过httpd.conf了

'DirectoryIndex index.html index.html.var index.php'

its an index.php that it is accessing. 它正在访问的index.php。 Is there anything else to check (bit of a noob at this admin thing). 还有什么要检查的(在这个管理员的事情上的一个菜鸟的位)。 The fact its giving me a login screen means serving up content. 它给我一个登录屏幕的事实意味着提供内容。

Regards, 问候,

sapatos sapatos

I had the same issue and I think I needed to add 我有同样的问题,我想我需要添加

AllowOverride All

to the httpd.conf inside the <Directory ...> entry describing my php code. 到描述我的PHP代码的<Directory ...>条目中的httpd.conf Let me know if this doesn't help and I'll double check my apache configs. 让我知道如果这没有帮助,我会仔细检查我的apache配置。

I just ran into this issue and just entered: 我刚刚遇到这个问题,刚进入:

setenforce 0

It instantly fixed it. 它立即修复了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM