Here is what my phpmyadmin.conf
file looks like:
#
# Web application to manage MySQL
#
<Directory "/usr/share/phpmyadmin">
Order Deny,Allow
Allow from 192.168.0.2
Allow from 192.168.0.219
</Directory>
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
I did restart the apache service after making changes as well. I used the following commands to try to restart apache:
sudo systemctl restart httpd.service
sudo apachectl restart
The server I'm working with is running CentOS and is hosted on the same LAN and my local ip is listed under the allows. Navigating to http://serverip/phpmyadmin
results in a:
Forbidden
You don't have permission to access /phpmyadmin on this server.
Message. Any ideas? I followed guides that told me to do it this way, but it just doesn't seem to want to work.
Edit: This message shows up in my httpd error_log
:
AH01630: client denied by server configuration: /usr/share/phpmyadmin
But I can't find a configuration file in /usr/share/phpmyadmin
.
/usr/share/phpmyadmin
directory? – 111--- Jul 9 '15 at 15:00chown -R nobody:nobody phpmyadmin
from the/usr/share/
folder and that didn't help. – Duck Puncher Jul 9 '15 at 15:12/usr/share/phpmyadmin
. I would try changing thephpmyadmin.conf
file toOrder Allow,Deny
and comment out the whitelist and addAllow from All
. Restart apache and see if you can get in. – 111--- Jul 9 '15 at 15:13Allow,Deny
and added#
characters to the allows to comment them out. I then restarted usingsystemctl restart httpd.service
. Still no luck getting in unfortunately. – Duck Puncher Jul 9 '15 at 15:17