Hi,
I'm not completely happy about how PHP is enabled/disabled in Vhosts.
IMHO completely disabling PHP for the whole server and only activating it in the vhost statements isn't the best practice.
I've enhanced the apache2_php parameters in config.inc.php with "engine". If you specify this option, an "php_admin_flag on" or "php_admin_flag off" is included in the vhost. This way it is possible to let PHP be activated for the server, without enabling it for every vhost.
From now on you can either use the old format:
Code:
$go_info["server"]["apache2_php"] = 'both';
Or you can pass an array of valid options:
Code:
$go_info["server"]["apache2_php"] = array("filter", "engine");
It should be completely backward compatible.
If you like this way of handling PHP, I'd suggest to:
1) Change the default value to:
Code:
$go_info["server"]["apache2_php"] = array("filter", "addtype", "engine");
2) Remove the commenting of the php AddType clauses in httpd.conf.
This would decrease the amount of configuration when setting up a new server, as you can leave the mime types and the php AddTypes untouched.
Recent comments
1 day 17 hours ago
2 days 1 hour ago
2 days 4 hours ago
2 days 5 hours ago
2 days 7 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 11 hours ago
3 days 3 hours ago
3 days 4 hours ago