Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 13th, 2010  |  syntax: None  |  size: 0.89 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # phpMyAdmin default Apache configuration
  2.  
  3. Alias /phpmyadmin /usr/share/phpmyadmin
  4.  
  5. <Directory /usr/share/phpmyadmin>
  6.         Options FollowSymLinks
  7.         DirectoryIndex index.php
  8.  
  9.         <IfModule mod_php5.c>
  10.                 AddType application/x-httpd-php .php .phtml
  11.  
  12.                 php_flag magic_quotes_gpc Off
  13.                 php_flag track_vars On
  14.                 php_flag register_globals Off
  15.                 php_value include_path .
  16.         </IfModule>
  17.  
  18. </Directory>
  19.  
  20. # Authorize for setup
  21. <Directory /usr/share/phpmyadmin/setup>
  22.     <IfModule mod_authn_file.c>
  23.     AuthType Basic
  24.     AuthName "phpMyAdmin Setup"
  25.     AuthUserFile /etc/phpmyadmin/htpasswd.setup
  26.     </IfModule>
  27.     Require valid-user
  28. </Directory>
  29.  
  30. # Disallow web access to directories that don't need it
  31. <Directory /usr/share/phpmyadmin/libraries>
  32.     Order Deny,Allow
  33.     Deny from All
  34. </Directory>
  35. <Directory /usr/share/phpmyadmin/setup/lib>
  36.     Order Deny,Allow
  37.     Deny from All
  38. </Directory>