Advertisement
Pingviller

new phpmyadmin .conf

Aug 24th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. # phpMyAdmin default Apache configuration
  2.  
  3. Alias /phpmyadmin /usr/share/phpmyadmin
  4.  
  5. <Directory /usr/share/phpmyadmin>
  6. Order allow,deny
  7. Allow from All
  8. Options FollowSymLinks
  9. DirectoryIndex index.php
  10.  
  11. <IfModule mod_php5.c>
  12. AddType application/x-httpd-php .php
  13.  
  14. php_flag magic_quotes_gpc Off
  15. php_flag track_vars On
  16. php_flag register_globals Off
  17. php_value include_path .
  18. </IfModule>
  19.  
  20. </Directory>
  21.  
  22. # Authorize for setup
  23. <Directory /usr/share/phpmyadmin/setup>
  24. <IfModule mod_authn_file.c>
  25. AuthType Basic
  26. AuthName "phpMyAdmin Setup"
  27. AuthUserFile /etc/phpmyadmin/htpasswd.setup
  28. </IfModule>
  29. Require valid-user
  30. </Directory>
  31.  
  32. # Disallow web access to directories that don't need it
  33. <Directory /usr/share/phpmyadmin/libraries>
  34. Order Deny,Allow
  35. Deny from All
  36. </Directory>
  37. <Directory /usr/share/phpmyadmin/setup/lib>
  38. Order Deny,Allow
  39. Deny from All
  40. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement