Advertisement
kabouter123

php.conf

Dec 29th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #
  2. # PHP is an HTML-embedded scripting language which attempts to make it
  3. # easy for developers to write dynamically generated webpages.
  4. #
  5. <IfModule prefork.c>
  6. LoadModule php5_module modules/libphp5.so
  7. </IfModule>
  8. <IfModule !prefork.c>
  9. LoadModule php5_module modules/libphp5-zts.so
  10. </IfModule>
  11.  
  12.  
  13. #
  14. # Cause the PHP interpreter to handle files with a .php extension.
  15. #
  16. <FilesMatch \.php$>
  17. SetHandler application/x-httpd-php
  18. </FilesMatch>
  19.  
  20. #
  21. # Allow php to handle Multiviews
  22. #
  23. AddType text/html .php
  24.  
  25. #
  26. # Add index.php to the list of files that will be served as directory
  27. # indexes.
  28. #
  29. DirectoryIndex index.php
  30.  
  31. #
  32. # Uncomment the following lines to allow PHP to pretty-print .phps
  33. # files as PHP source code:
  34. #
  35. #<FilesMatch \.phps$>
  36. # SetHandler application/x-httpd-php-source
  37. #</FilesMatch>
  38.  
  39. #
  40. # Apache specific PHP configuration options
  41. # those can be override in each configured vhost
  42. #
  43. php_value session.save_handler "files"
  44. php_value session.save_path "/var/lib/php/session"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement