Promotion Code : hosting-90off
FREE Shared SSL Certificate
Control DirectAdmin
Daily and weekly backup
DDoS Protection
Promotion Code : hosting-90off
FREE Shared SSL Certificate
Control DirectAdmin
Daily and weekly backup
DDoS Protection
Installation ============ Installation is quite straightforward: cd /usr/src rm -fv csf.tgz wget https://download.configserver.com/csf.tgz tar -xzf csf.tgz cd csf sh install.sh Next, test whether you have the required iptables modules: perl /usr/local/csf/bin/csftest.pl Don't worry if you cannot run all the features, so long as the script doesn't report any FATAL errors You should not run any other iptables firewall configuration script. For example, if you previously used APF+BFD you can remove the combination (which you will need to do if you have them installed otherwise they will conflict): sh /usr/local/csf/bin/remove_apf_bfd.sh That's it. You can then configure csf and lfd by reading the documentation and configuration files in /etc/csf/csf.conf and /etc/csf/readme.txt directly or through the csf User Interface. csf installation for cPanel and DirectAdmin is preconfigured to work on those servers with all the standard ports open. csf auto-configures your SSH port on installation where it's running on a non- standard port. csf auto-whitelists your connected IP address where possible on installation. You should ensure that kernel logging daemon (klogd) is enabled. Typically, VPS servers running RedHat/CentOS v5 have this disabled and you should check /etc/init.d/syslog and make sure that any klogd lines are not commented out. If you change the file, remember to restart syslog. See the csf.conf and readme.txt files for more information. Perl Modules ============ While most should be installed on a standard perl installation the following may need to be installed manually: # On rpm based systems: yum install perl-libwww-perl.noarch perl-LWP-Protocol-https.noarch perl-GDGraph # On APT based systems: apt-get install libwww-perl liblwp-protocol-https-perl libgd-graph-perl # Via cpan: perl -MCPAN -eshell cpan> install LWP LWP::Protocol::https GD::Graph InterWorx ========= 1. Enable csf in InterWorx > NodeWorx > Plugins > csf 2. See the InterWorx section in /etc/csf/readme.txt Webmin Module Installation/Upgrade ================================== To install or upgrade the csf webmin module: Install csf as above Install the csf webmin module in: Webmin > Webmin Configuration > Webmin Modules > From local file > /usr/local/csf/csfwebmin.tgz > Install Module Uninstallation ============== Removing csf and lfd is even more simple: cd /etc/csf sh uninstall.sh
– Clean OS install: check install.php to ensure you’ve got a supported OS
– At least one external IP address (IP Requirements)
– SSH installed, gcc, g++, openssl-devel installed.
– Run the pre-install commands before starting the install
Sign into your client account at https://www.directadmin.com/clients and click the “view” link next to your license.
Verify that the server IP address and operating system is correct. Also make sure that the license is Active and Verified (if it isn’t, then our billing system hasn’t processed your order yet).
**** SPECIAL NOTICE for non-root ssh logins ****
If logging in as a user other than admin or root (using su to gain root access):
You *must* add “AllowUsers username” to /etc/ssh/sshd_config before you log out from root or you’ll lose root on the server forever, and you’ll have to format.
That’s it! Please see below if you are installing on a VPS, or wanting to setup DirectAdmin for secure (https://) control panel access.
After the install, add the following to /usr/local/directadmin/conf/directadmin.conf:
ethernet_dev=devicename
For example, on many vps systems it will be:
ethernet_dev=venet0:0
Other systems where the IP is not the base IP on the device, you’d need to simply set the correct number:
ethernet_dev=eth0:1
Or other systems with the IP on a different device, it might be:
ethernet_dev=eth1
Type:/sbin/ifconfig
to see which device your IP is in.
Replace devicename with the FULL devicename reported by ifconfig. If your VDS/VPS system emulates eth0, then you may skip this step.
This step is only required if you wish to use DirectAdmin through SSL. You will also have to change set SSL=1 in the directadmin.conf file: http://help.directadmin.com/item.php?id=15
DirectAdmin can be accessed at http://server.ip.address:2222 — use the Admin username/password specified in the setup.txt file in your scripts directory.
When installing RPMs, errors can sometimes occur. Don’t panic, solving them is usually easy. If you didn’t know what to install during your RedHat installation, you might have installed a few services, such as apache and sendmail. These services must be removed before the rpm will be able to be installed.
For example, lets say you are trying to install exim and you get the following:
# rpm -ivh exim-3.36-2.i386.rpm
Preparing… ########################################### [100%]
file /somefile from install of exim-3.36-2 conflicts with file from package sendmail-8.1
…
This would mean that sendmail is already installed on your server and you must remove it. This can easily be accomplished by running the following:
rpm -e –nodeps sendmail
Then you will be able to install your rpm. This follows for other services such as apache, apache-devel, wu-ftp, php, MySQL and so forth. If you need to figure out if you already have a service installed, you can run
rpm -q servicename
or
rpm -qa | grep substring
Where substring is just a word. For example, using “apache” might return:
# rpm -qa | grep apache
apache-fp-1.3.27-2
apache-fp-devel-1.3.27-2
apache-fp-manual-1.3.27-2
If you are having trouble with RPMs hanging, please look at: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=73097
You can e-mail questions to sales@directadmin.com or send an inquiry by visiting the contacts page. We are available Monday through Friday, 9 AM – 5 PM Mountain Standard Time. You may also visit the forum to see if your question has been answered there.