Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. root@sh01:~# echo /etc/apache2/mods-enabled/php*
  2. /etc/apache2/mods-enabled/php5.conf /etc/apache2/mods-enabled/php5.load
  3.  
  4.  
  5. root@sh01:~# cat /etc/apache2/mods-enabled/php5.conf
  6. <FilesMatch ".+\.ph(p[345]?|t|tml)$">
  7.     SetHandler application/x-httpd-php
  8. </FilesMatch>
  9. <FilesMatch ".+\.phps$">
  10.     SetHandler application/x-httpd-php-source
  11.   # Deny access to raw php sources by default
  12.   # To re-enable it's recommended to enable access to the files
  13.   # only in specific virtual host or directory
  14.    Order Deny,Allow
  15.     Deny from all
  16.  </FilesMatch>
  17. # Deny access to files without filename (e.g. '.php')
  18. <FilesMatch "^\.ph(p[345]?|t|tml|ps)$">
  19.     Order Deny,Allow
  20.     Deny from all
  21. </FilesMatch>
  22.  
  23. # Running PHP scripts in user directories is disabled by default
  24. #
  25. # To re-enable PHP in user directories comment the following lines
  26. # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
  27. # prevents .htaccess files from disabling it.
  28. <IfModule mod_userdir.c>
  29.    <Directory /home/*/public_html>
  30. #       php_admin_value engine Off
  31.    </Directory>
  32. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement