简体   繁体   中英

Apache server gives 403 forbidden error on restart for phpmyadmin installation

On an ec2 amazon linux machine. I installed apache/mysql/phpmyadmin on intial instance creation. I'm able to view phpmyadmin no worries but when I restart the apache httpd daemon it throws a

'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

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

its an index.php that it is accessing. 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

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. Let me know if this doesn't help and I'll double check my apache configs.

I just ran into this issue and just entered:

setenforce 0

It instantly fixed it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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