I am planning on running Magento 2 on my new server so i am going for a PHP 7.x server setup only and migrate sites on a per-site basis. It has been quite some time since i've looked at CustomBuild 2 options.conf and i see a lot has changed in the last couple of years. Off course i've checked the CustomBuild 2.0 FAQ (DirectAdmin 1.46 or later is recommended) page for all the options where something wasn't clear for me.
I hope you can help tune my options.conf. Please take a look at the following sections and feel free to advise me where needed.
Q: Where do i find the latest PHP version supported?
Q: I want to run the sites (PHP scripts) as the user itself. In the past i've installed mod_ruid2 on the server by manually installing it and it has worked fine ever since. I now see that php-fpm does thesame?
I see nothing strange here
Q: What is the advice on mod_security?
Q: mod_ruid2 can remain to 0 if i use php-fpm?
Q: webapps_inbox_prefix is set to "no", but my roundcube config has this line: $config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'INBOX.spam', 'Trash'); isn't the "INBOX.spam" value strange? Shouldn't this be just "Spam" or "Junk"?
Q: I would like to scan for viruses off course, especially in my emails i receive. If the option "clamav" is set to "no" would that mean also no e-mail scanning would occur? That would be strange considering the default for "clamav_exim" is "yes" right?.
Q: Can i enable all uploadscans? Will that also scan files uploaded through WinSCP for example?
Q: Will ClamAV also auto-update the definitions? (e.g. running freshclam?)
Q: regarding "mail_sni" is my assumption correct that, whenever i have set "mail_sni" to "1" and i create a certificate for a customer domain using letsencrypt, that SSL will be enabled for the mailserver "mail.customerdomein.ext" ?
Q: If i enable pigeonhole, i assume i still need to follow this guide from Poralix in order to set everything up correctly. However, if i ONLY use vacation responders, i do not need pigeonhole at all, right?
Q: In my current setup i use awstats, are there any reasons to switch to Webalizer? I've read that Webalizer doesn't differentiate between bots & humans
Q: I have removed 'downloadserver' since i assume DA will sort that out for me. Correct?
Q: regarding webapps_updates. If i add a plugin to the roundcube directory, and also to /var/www/html/roundcube/config/config.inc.php; is this plugin removed and/or the config overwritten when DA updates roundcube?
I have done loads of other configuration but i will ask that once my DA setup has been done.
I hope you can help tune my options.conf. Please take a look at the following sections and feel free to advise me where needed.
Code:
#PHP Settings
php1_release=7.1
php1_mode=php-fpm
php2_release=[B]no[/B] (was 5.6)
php2_mode=php-fpm
secure_php=[B]yes[/B] (was: no)
opcache=yes
htscanner=no
php_ini=no
php_timezone=Europe/London
php_ini_type=production
ioncube=yes
zend=yes
suhosin=[B]yes[/B] (was: no)
x_mail_header=[B]no[/B] (was: yes)
Q: Where do i find the latest PHP version supported?
Q: I want to run the sites (PHP scripts) as the user itself. In the past i've installed mod_ruid2 on the server by manually installing it and it has worked fine ever since. I now see that php-fpm does thesame?
Code:
#MySQL Settings
mysql=[B]5.7[/B] (was 5.6)
mariadb=[B]10.3[/B] (was 10.2)
mysql_inst=mariadb
mysql_backup=yes
mysql_backup_gzip=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no (<- Flag is not mentioned in the FAQ)
I see nothing strange here
Code:
#WEB Server Settings
webserver=apache
http_methods=GET:HEAD:POST
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
userdir_access=yes
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=localhost.localdomain
redirect_host_https=no
Q: What is the advice on mod_security?
Q: mod_ruid2 can remain to 0 if i use php-fpm?
Code:
#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=no
roundcube=yes
webapps_inbox_prefix=no
Q: webapps_inbox_prefix is set to "no", but my roundcube config has this line: $config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'INBOX.spam', 'Trash'); isn't the "INBOX.spam" value strange? Shouldn't this be just "Spam" or "Junk"?
Code:
#ClamAV-related Settings
clamav=[B]yes[/B] (was: no)
clamav_exim=yes
modsecurity_uploadscan=yes
proftpd_uploadscan=yes
pureftpd_uploadscan=yes
suhosin_php_uploadscan=yes
Q: I would like to scan for viruses off course, especially in my emails i receive. If the option "clamav" is set to "no" would that mean also no e-mail scanning would occur? That would be strange considering the default for "clamav_exim" is "yes" right?.
Q: Can i enable all uploadscans? Will that also scan files uploaded through WinSCP for example?
Q: Will ClamAV also auto-update the definitions? (e.g. running freshclam?)
Code:
#Mail Settings
exim=yes
eximconf=yes
eximconf_release=4.5
blockcracking=no
easy_spam_fighter=yes
spamd=spamassassin
sa_update=daily
dovecot=yes
dovecot_conf=yes
pigeonhole=[B]yes[/B] (was no; set to yes to enable SIEVE auto-replies)
Q: regarding "mail_sni" is my assumption correct that, whenever i have set "mail_sni" to "1" and i create a certificate for a customer domain using letsencrypt, that SSL will be enabled for the mailserver "mail.customerdomein.ext" ?
Q: If i enable pigeonhole, i assume i still need to follow this guide from Poralix in order to set everything up correctly. However, if i ONLY use vacation responders, i do not need pigeonhole at all, right?
Code:
#Statistics Settings
awstats=no
webalizer=yes
Q: In my current setup i use awstats, are there any reasons to switch to Webalizer? I've read that Webalizer doesn't differentiate between bots & humans
Code:
#CustomBuild Settings
custombuild=2.0
autover=yes
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
[I]downloadserver=files6.directadmin.com[/I]
Q: I have removed 'downloadserver' since i assume DA will sort that out for me. Correct?
Code:
#Cronjob Settings
cron=yes
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=yes
updates=no
webapps_updates=yes
Q: regarding webapps_updates. If i add a plugin to the roundcube directory, and also to /var/www/html/roundcube/config/config.inc.php; is this plugin removed and/or the config overwritten when DA updates roundcube?
I have done loads of other configuration but i will ask that once my DA setup has been done.
Last edited: