I am running PHP Version => 5.3.0
As you can see, I default to turning off php's engine.
1) Can I turn php off by default in httpd.conf globally, in the master virtual host container?
2) I have not tried #1 above, but in the below 'php_value engine on'. When I load any page, it will download the file, and php is effectively off. If I remove the line, then php comes alive.
I can not find docs on this specific setting for 5.3, so I am nut sure this is a bug, or normal behavior.
I would like to default server wide to off, and to have to explicitly enable it for each virtual host, without having to remember to have the line in the virtual host block.
Sample template I have been using...
<VirtualHost *:80>
DocumentRoot "/path"
ServerName example.com
ServerAlias www.example.com
DirectoryIndex index.php
# php setttings
php_admin_value open_basedir "/path/:/private/var/tmp/:"
php_value engine off
<Directory "/path">
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>