view modules/website/files/php.conf @ 25:13adb555a7e2 puppet-3.6

Use "<IfVersion>" to handle auth differences between 2.2 and 2.4 Also, add Nano, because damnit vi!
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Mar 2015 00:58:19 +0000
parents 956e484adc12
children be2b30b17a4c
line wrap: on
line source

#Webtatic PHP config - note the different files used!

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule !worker.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
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 line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps