Obsolete entries in options.conf

DigiLive

Verified User
Joined
Dec 9, 2019
Messages
11
Location
Netherlands
I'm not sure, but I think I have obsolete entries in my options.conf file.
Examples:
default_php=5
php5_cli=yes
php5_cgi=no
php5_ver=5.3
php6_cli=no
php6_cgi=no

Is there information available on which entries are obsolete or maybe a script which will clean the file?
My version is: 2.0.0 (rev: 2653)
 
Hello,

Simply delete the existing file and run CustomBuild if you'd like all of the defaults:

Code:
[root@server ~]# rm -f /usr/local/directadmin/custombuild/options.conf
rm: remove regular file ‘/usr/local/directadmin/custombuild/options.conf’? y
[root@server ~]# cd /usr/local/directadmin/custombuild
[root@server custombuild]# ./build all
Cannot find /usr/local/directadmin/custombuild/options.conf, writing defaults.
....
....

You're running CB 2.0, right?

If you need a default options.conf for reference, here is the result from removing mine and then re-running CB:

Code:
[root@server custombuild]# cat /usr/local/directadmin/custombuild/options.conf 
#PHP Settings
php1_release=7.4
php1_mode=mod_php
php2_release=no
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
php4_release=no
php4_mode=php-fpm
secure_php=no
php_ini=no
php_timezone=n/a
php_ini_type=production
x_mail_header=yes

#MySQL Settings
mysql=5.7
mariadb=10.4
mysql_inst=mysql
mysql_backup=yes
mysql_backup_gzip=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
unit=no
webserver=apache
http_methods=ALL
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=owasp
apache_ver=2.4
apache_mpm=auto
mod_ruid2=yes
userdir_access=yes
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=server.hostname.com
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_public=yes
phpmyadmin_ver=5
squirrelmail=no
roundcube=yes
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=no
clamav_exim=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
pureftpd_uploadscan=no
suhosin_php_uploadscan=no

#Mail Settings
exim=yes
eximconf=yes
eximconf_release=4.5
blockcracking=no
easy_spam_fighter=no
spamd=no
sa_update=daily
dovecot=yes
dovecot_conf=yes
mail_compress=no
pigeonhole=yes

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#PHP Extension Settings
#CustomBuild Settings
custombuild=2.0
custombuild_plugin=yes
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files.directadmin.com
unofficial_mirrors=no

#Cronjob Settings
cron=yes
cron_frequency=daily
[email protected]
notifications=no
da_autoupdate=no
updates=no
webapps_updates=no

#CloudLinux Settings
cloudlinux=no
cloudlinux_beta=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=yes
new_pcre=yes
ssl_configuration=intermediate

#PHP extensions can be found in php_extensions.conf
[root@server custombuild]#

Thanks for choosing DirectAdmin!
 
Sorry for replying late.
I have many issues at this moment.

I've compared my file against the options you've posted.
Some options where just on another line, but I also have the following options:

maildir_compress=no
proftpd=yes
pureftpd=no
jail=no
mailman=no
secure_htaccess=no
old_apr_util=no
default_php=5
php5_cli=yes
php5_cgi=no
php5_ver=5.3
php6_cli=no
php6_cgi=no
mail-header-patch=no
atmail=no
uebimiau=no
new_zlib=no
new_xml2=no
new_suphp=no

Are these obsolete or what?
 
As far as I know they are at least not all obsolete.
You might want to support this request which is almost what you would like:

At least these:
proftpd=no
pureftpd=yes

are still good. The rest isn't anymore as far as I now.
In any case he php versions are not. That is changed. Scriptkiddy answered that already and gave you an example options.conf.
 
maybe a script which will clean the file?
No but it is in Feedback as a request https://feedback.directadmin.com/b/...the-optionsconf-file-clean-of-defunct-entries
Is there information available on which entries are obsolete
No but it is a request https://feedback.directadmin.com/b/...ly-document-all-of-the-options-of-optionsconf
I'm not sure, but I think I have obsolete entries in my options.conf file.
Examples:
default_php=5
php5_cli=yes
php5_cgi=no
php5_ver=5.3
php6_cli=no
php6_cgi=no
This config is really old. Looks like you might have tried to migrate to CustomBuild 2 but never updated your options file.

May be give us more in for on you OS and Version.

as @scriptkitty said the best way is to backup the old file and install a default one then update it to your liking.
[root@server ~]# rm -f /usr/local/directadmin/custombuild/options.conf rm: remove regular file ‘/usr/local/directadmin/custombuild/options.conf’? y [root@server ~]# cd /usr/local/directadmin/custombuild [root@server custombuild]# ./build all Cannot find /usr/local/directadmin/custombuild/options.conf, writing defaults. .... ....
I wouldn't do it this above way though because it will try to rebuild all of DA. You might not want a default rebuild.
Code:
mv /usr/local/directadmin/custombuild/options.conf  /usr/local/directadmin/custombuild/options.conf.old
cd /usr/local/directadmin/custombuild
./build update

This will allow you to then go look at the file so you can updated the values you need them to be

Code:
nano /usr/local/directadmin/custombuild/options.conf

then run Build All if needed.
 
Watch out with copying options.conf and building all. First check your MySQL/MariaDB settings in options.conf.
Because the default one defaults to MariaDB (10.3 or 10.4 if I'm not mistaken) which can mess up your current installation if you are for example still on MySQL 5.7.

Imho it's better to download a new options.conf file and compare it with your current one.
Then change as needed and do a:
./build update ./build all d
(no the d there is no typo).
 
If I'm mistaken you can not download it.

Move the current one to a backup and then try this:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build options

If I'm correct that will build a new options.conf.

If it doesn't work, you can easily put your backup of the current options.conf back.
Let me know, in that case I will put an options.conf from me to download for you, in that case I have to know if you use Centos 7 or 8.
But try building it first.
 
Back
Top