duplicated options in options.conf

jonium

Verified User
Joined
Nov 10, 2010
Messages
208
Location
Alezio - Lecce- Apulia - South Italy
Here is the options.conf of one of my servers (it uses CB plugin):

Code:
#PHP settings.
#Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, 5.5, no. php1/php2_mode: mod_php, fastcgi, php-fpm or suphp)
php1_release=5.5
php2_release=no
php1_mode=mod_php
php2_mode=php-fpm
php_ini=no
php_timezone=CEST
#Possible values - production or development
php_ini_type=production
ioncube=yes
zend=no

#HTTP server. Possible values: apache, nginx
webserver=apache

#Apache settings
#Possible value: 2.4
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=no
redirect_host=lnx5.ormag.info
redirect_host_https=no

#Possible values - 5.1, 5.5, 5.6
mysql=5.6
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Web applications
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes

#Mail options
exim=yes
eximconf=no
clamav=yes
spamassassin=yes
dovecot=yes
pigeonhole=no

#Statistics
awstats=no
webalizer=yes

#FTP options - possible values: proftpd, pureftpd
ftpd=pureftpd

#Jailed shell
jail=no

#Autoconf/automake/libtool options
autoconf=yes
automake=yes
libtool=yes
curl=yes

#versions of zlib, apr_util and libxml2 (experts only)
zlib=no
new_zlib=no
new_xml2=yes
new_pcre=no
old_apr_util=no

#Custombuild options
custombuild=2.0
autover=yes
bold=no
clean=yes
cleanapache=no
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files1.directadmin.com

#Cron settings
cron=yes
cron_frequency=daily
[email protected]
notifications=yes
da_autoupdate=yes
updates=yes
webapps_updates=yes

#Cloudlinux settings
cloudlinux=no
cagefs=no
htscanner=yes
x-mail-header=yes
new_suphp=no
harden_symlinks_patch=yes
x_mail_header=yes
suhosin=no
pureftpd_uploadscan=no
apache_mpm=auto
suhosin_php_uploadscan=no
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=
proftpd_uploadscan=
clamav_exim=yes
opcache=
mysql_force_compile=no
proftpd_uploadscan=no
clamav_exim=yesyes
opcache=no
webapps_inbox_prefix=no
eximconf_release=2.1
blockcracking=no
easy_spam_fighter=no
modsecurity=no
modsecurity_ruleset=comodo
dovecot_conf=no

last rows get duplicated, I think it happens at every update.
 
It sounds like a very old bug, which should have been fixed about half year ago. To clean your options.conf file up:
Code:
perl -pi -e 's/^mysql_force_compile=\n//' /usr/local/directadmin/custombuild/options.conf
perl -pi -e 's/^mysql_force_compile=no\n//' /usr/local/directadmin/custombuild/options.conf
perl -pi -e 's/^proftpd_uploadscan=\n//' /usr/local/directadmin/custombuild/options.conf
perl -pi -e 's/^clamav_exim=yesyes\n//' /usr/local/directadmin/custombuild/options.conf
perl -pi -e 's/^clamav_exim=yes\n//' /usr/local/directadmin/custombuild/options.conf
perl -pi -e 's/^opcache=\n//' /usr/local/directadmin/custombuild/options.conf

Then try "./build update" to see if you get any problems you described :)
 
After doing that here is my options.conf.
Do I have to delete the duplicated rows manually?
Thanks for your help

Code:
#PHP settings.
#Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, 5.5, no. php1/php2_mode: mod_php, fastcgi, php-fpm or suphp)
php1_release=5.5
php2_release=no
php1_mode=mod_php
php2_mode=php-fpm
php_ini=no
php_timezone=CEST
#Possible values - production or development
php_ini_type=production
ioncube=yes
zend=no

#HTTP server. Possible values: apache, nginx
webserver=apache

#Apache settings
#Possible value: 2.4
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=no
redirect_host=lnx5.ormag.info
redirect_host_https=no

#Possible values - 5.1, 5.5, 5.6
mysql=5.6
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Web applications
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes

#Mail options
exim=yes
eximconf=no
clamav=yes
spamassassin=yes
dovecot=yes
pigeonhole=no

#Statistics
awstats=no
webalizer=yes

#FTP options - possible values: proftpd, pureftpd
ftpd=pureftpd

#Jailed shell
jail=no

#Autoconf/automake/libtool options
autoconf=yes
automake=yes
libtool=yes
curl=yes

#versions of zlib, apr_util and libxml2 (experts only)
zlib=no
new_zlib=no
new_xml2=yes
new_pcre=no
old_apr_util=no

#Custombuild options
custombuild=2.0
autover=yes
bold=no
clean=yes
cleanapache=no
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files1.directadmin.com

#Cron settings
cron=yes
cron_frequency=daily
[email protected]
notifications=yes
da_autoupdate=yes
updates=yes
webapps_updates=yes

#Cloudlinux settings
cloudlinux=no
cagefs=no
htscanner=yes
x-mail-header=yes
new_suphp=no
harden_symlinks_patch=yes
x_mail_header=yes
suhosin=no
pureftpd_uploadscan=no
apache_mpm=auto
suhosin_php_uploadscan=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
proftpd_uploadscan=no
opcache=no
webapps_inbox_prefix=no
eximconf_release=2.1
blockcracking=no
easy_spam_fighter=no
modsecurity=no
modsecurity_ruleset=comodo
dovecot_conf=no
mysql_force_compile=no
clamav_exim=yes
 
Automatic way to do that:
Code:
perl -pi -e 's/^opcache=no\n//' /usr/local/directadmin/custombuild/options.conf
perl -pi -e 's/^proftpd_uploadscan=no\n//' /usr/local/directadmin/custombuild/options.conf
 
Back
Top