virtual_host template changes for custombuild 2.0

Version 1.402

Feature
Finished

With custombuild 2.0, it will support 5.3 and higher. php has disabled safemode in those versions, so the templates have been changed from: |*if CLI="1"| <IfModule !mod_php6.c> php_admin_flag safe_mode |SAFE_MODE| </IfModule> php_admin_flag engine |PHP| php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|' |*endif| to be: |*if HAVE_SAFE_MODE="1"| php_admin_flag safe_mode |SAFE_MODE| |*endif| |*if CLI="1"| php_admin_flag engine |PHP| php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|' |*endif| where HAVE_SAFE_MODE is based on the contents of: /usr/local/directadmin/custombuild/options.conf. The default value of HAVE_SAFE_MODE is set to the same CLI token in the virtual_host configs. If the custombuild/options.conf exists, and it's custombuild>=2.0 and (php1_release>=5.3 or php2_release>=5.3), then HAVE_SAFE_MODE will be set to 0. If there is no CLI php, then HAVE_SAFE_MODE will always be 0. ------------------ In preperation for mod_ruid2, this will replace the SuexecUserGroup line. <IfModule !mod_ruid2.c> SuexecUserGroup admin admin </IfModule> <IfModule mod_ruid2.c> RMode config RUidGid admin admin RGroups apache access </IfModule>

Interested to try DirectAdmin? Get a 30-day Free Trial!