Newbie help requested (pretty please)

elvch01

Verified User
Joined
Apr 19, 2016
Messages
5
Hi everybody - please don't shoot me, I'm new :)

I have just "Inherited" the administrative duties for a DirectAdmin server and I would like some assistance in getting to grips with what I have got hold of here

Firstly some system details
  • Centos 7 64 bit
  • DirectAdmin 1.50.0
  • Exim 4.83
  • MariaDB 5.5.41
  • Named 9.9.4
  • dovecot 2.2.16
  • pure-ftpd 1.0.37
  • Apache 2.4.12 - configured to use suEXEC
  • PHP 5.5.23
  • CSF module installed
  • Squirrelmail
  • Roundcube
  • Custombuild 2.0.0-RC7 (rev: 1305)

Everything appears to be working i.e. web pages are served, email is delivered etc so I have no real immediate operational issues; I just need to get a handle on how I keep things running

I would like to use custombuild to keep things updated, but don't want to break anything because I am unsure how the system was originally built so don't want to build/install anything in case I break things and annoy paying customers

My options.conf file is below and I can see that there are some options that look different to the current configuration e.g. "mod_ruid=yes", but I know the apache server is using suEXEC and the mail section looks wrong too. Therefore I am very reluctant to change anything until I am clear about what the ramifications are. Ideally I would like to get my options.conf file into a state whereby a build will mirror what I have. This would allow me to establish a baseline from which I can build from by adding in modsecurity, pigeonhole, seive and other things that interest me

So if any of you kind people could point me to where/how I might figure out how to get started on this task I would appreciate it. Any advice on what to backup before running a build would also be very useful

Thanks in advance
Chris

PS: I have about 30 years Unix/Linux experience so am comfortable with vi, bash etc


Code:
[root@admin custombuild]# more options.conf
#PHP Settings
php1_release=5.5
php1_mode=mod_php
php2_release=no
php2_mode=php-fpm
opcache=no
htscanner=no
php_ini=no
php_timezone=Europe/London
php_ini_type=production
ioncube=no
zend=no
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=5.6
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=apache
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=comodo
apache_ver=2.4
apache_mpm=auto
mod_ruid2=yes
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=<my_server_name>
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
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=no
eximconf=no
eximconf_release=4.3
blockcracking=no
easy_spam_fighter=no
spamassassin=no
dovecot=yes
dovecot_conf=yes
pigeonhole=no

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files4.directadmin.com

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

#CloudLinux Settings
cloudlinux=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=no
new_pcre=no

mariadb=10.0
[root@admin custombuild]#
 
Hello,

When a new server is installed some options in options.conf might be disabled. This usually true for exim and mysql. It means despite the fact that an install script installs exim and mysql on a server custombuild options has "no" in their respective lines. For now I'm not quite sure why that's so, you might ask this question and try to find an answer.

Anyway, here is what you can do, run:

Code:
cd /usr/local/directadmin/custombuild
./build update
(it won't update software versions yet)

and
Code:
./build options

to see what you have in easy reading viewing.

run
Code:
./build versions

to see what can be updated.

From here you can tweak options.conf so that it would reflect the real situation:
Code:
mysql=5.5
mysql_inst=mariadb
mariadb=5.5

before enabling support of exim in custombuild, make sure that /etc/exim.conf and /etc/exim.pl were not customized. For this check the first 1-5 lines of the files to find what version you use there and compare the files with originals from directadmin file servers. If the files were not customized and then you can update them with custombuild after enabling:

Code:
exim=yes
eximconf=yes
eximconf_release=4.3

That from what I'd start. For more information read: https://forum.directadmin.com/showthread.php?t=44743
Feel free to post more questions here.
 
Thanks Alex

I will try and digest what you have given me :) and I am sure I am being overly cautious, but with live websites, failure is not an option

Regards
Chris
 
Back
Top