Created
May 28, 2015 08:04
-
-
Save githiro/fdb7ae6d50ff95e2b680 to your computer and use it in GitHub Desktop.
PHP: basic php.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# PHP is an HTML-embedded scripting language which attempts to make it | |
# easy for developers to write dynamically generated webpages. | |
# | |
<IfModule prefork.c> | |
LoadModule php5_module modules/libphp5.so | |
</IfModule> | |
<IfModule !prefork.c> | |
LoadModule php5_module modules/libphp5-zts.so | |
</IfModule> | |
# | |
# Cause the PHP interpreter to handle files with a .php extension. | |
# | |
<FilesMatch \.php$> | |
SetHandler application/x-httpd-php | |
</FilesMatch> | |
# | |
# Allow php to handle Multiviews | |
# | |
AddType text/html .php | |
# | |
# Add index.php to the list of files that will be served as directory | |
# indexes. | |
# | |
DirectoryIndex index.php | |
# | |
# Uncomment the following lines to allow PHP to pretty-print .phps | |
# files as PHP source code: | |
# | |
#<FilesMatch \.phps$> | |
# SetHandler application/x-httpd-php-source | |
#</FilesMatch> | |
# | |
# Apache specific PHP configuration options | |
# those can be override in each configured vhost | |
# | |
php_value session.save_handler "files" | |
php_value session.save_path "/var/lib/php/session" | |
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment