• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Web Linux-PhpMyAdmin: Forbidden?? :(

Mythic Archon
Joined
Jul 2, 2013
Messages
723
Reaction score
70
So I am hosting my website on a linux host using phpmyadmin and I can't seem to reach the myip/phpmyadmin as its saying forbidden? Any advice?

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

This is my etc/httpd/conf.d/phpmyadmin.conf
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL


Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin


<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8


<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from -This is where my ip is, just needed to hide from public :p-
Allow from ::1
</IfModule>
</Directory>


<Directory /usr/share/phpMyAdmin/setup/>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from -This is where my ip is, just needed to hide from public :p-
Allow from ::1
</IfModule>
</Directory>


# These directories do not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /usr/share/phpMyAdmin/libraries/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>


<Directory /usr/share/phpMyAdmin/setup/lib/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>


<Directory /usr/share/phpMyAdmin/setup/frames/>
Order Deny,Allow
Deny from All
Allow from None
</Directory>


# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#<IfModule mod_security.c>
# <Directory /usr/share/phpMyAdmin/>
# SecRuleInheritance Off
# </Directory>
#</IfModule>


All help is appreciated, thanks!
 
Mythic Archon
Joined
Jul 2, 2013
Messages
723
Reaction score
70
You should probably chmod it.

When you say chmod, do you just mean change/modify it? If so, I made it allow my IP and that didnt work, while I also did allow everyone and that didnt work as well.
 
Upvote 0
Junior Spellweaver
Joined
Mar 28, 2014
Messages
186
Reaction score
22
i recommend you to uninstall phpmyadmin and mysql then install them again
if you wish to install phpmyadmin try to chmod 775
or
type in your .htaccess or your appache configuration file
allow from localhost
allow from the ip the address that you are using computer on .you might be using something like remote desktop or virtual box you need to allow ip address from the pc it self you are using
 
Upvote 0
Back
Top