Skip to content

Instantly share code, notes, and snippets.

@protosam
Created January 3, 2016 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save protosam/0e83f5e4b98cf80dad2c to your computer and use it in GitHub Desktop.
Save protosam/0e83f5e4b98cf80dad2c to your computer and use it in GitHub Desktop.
cat <<EOM >/etc/httpd/conf.d/phpMyAdmin.conf
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory "/usr/share/phpMyAdmin">
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
<Directory "/usr/share/phpMyAdmin/setup">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
</Directory>
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment