Installation Instructions
Posted by Sean Sullivan on 14 September 2011 05:12 PM
#########################
Recommended DirectAdmin install instructions
AFTER a license is obtained
#########################

1) SSH to the server, as root.

cd /root
yum install make gcc gcc++ flex expect -y
wget http://www.directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh

2) you will be prompted for the following:

Please enter your Client ID :
Please enter your License ID :

Please enter your hostname :
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don't use domain.com. Use server.domain.com instead.
Do not enter http:// or www
Enter your hostname (FQDN) : server.domain.com

Client ID: ###
License ID: #####
Hostname: server.domain.com
Is this correct? (y,n) : y

(for dedicated servers and SolusVM VPS)
Is eth0 your network adaptor with the license IP? (y,n) : y

(for OpenVZ legacy VPS)
Is eth0 your network adaptor with the license IP? (y,n) : y
Enter the name of the ethernet device you wish to use : venet0:0
Is aaa.bbb.ccc.ddd the IP in your license? (y,n) : y

DirectAdmin will now be installed on: Enterprise 5.#
Is this correct? (must match license) (y,n) : y

You now have 2 options for your apache/php setup.

1: customapache: end-of-life software. Includes Apache 1.3, php 4 and frontpage. **Not recommended**.
Will not work with newer OSs. Limited tech support.

2: custombuild 1.1: newer software (recommended).
Includes any Apache version, php 4, 5, or both in cli and/or suphp.
Frontpage not available.

Post any issues with custombuild to the forum:
http://www.directadmin.com/forum/forumdisplay.php?f=61

Enter your choice (1 or 2): 2
You have chosen custombuild 1.1.

Would you like the default settings of apache 2.2 and php 5 cli? (y/n): n

Do you want to have PHP4 or PHP5 as default? (4/5): 5

Do you want to have PHP5? (yes/no): yes

Do you want to have PHP5 as CLI or CGI? (cli/cgi): cgi

Do you want to have PHP4? (yes/no): no

Do you want to have the php.ini (PHP configuration file) rewritten? (yes/no): yes

For the next question, the usual file is the dist (distribution) version.What type of php.ini (PHP configuration file) do you want to have? (dist/recommended): dist

Do you want to have Zend Optimizer? (yes/no): yes

Do you want to be able to update/instal MySQL using CustomBuild? (yes/no): yes

Which version of MySQL do you want to have? (4.1/5.0/5.1): 5.1

Do you want CustomBuild to backup MySQL databases before the update? (yes/no): yes

Which version of Apache do you want to have? (1.3/2.0/2.2): 2.2

Do you want to be able to install/update phpMyAdmin using CustomBuild? (yes/no): yes

Do you want to be able to install/update Atmail webmail using CustomBuild? (yes/no): no

Do you want to be able to install/update SquirrelMail webmail using CustomBuild? (yes/no): yes

Do you want to be able to install/update RoundCube webmail using CustomBuild? (yes/no): yes

Do you want to be able to install/update UebiMiau webmail using CustomBuild? (yes/no): no

Do you want to install PHP mail() header patch together with PHP? (yes/no): yes

Do you want to install Dovecot? (yes/no): yes

Do you want to be able to update Exim configuration file (exim.conf) using CustomBuild? (yes/no): yes

Do you want to be able to install/update ProFTPD using CustomBuild? (yes/no): yes

Do you want CustomBuild to install Jailed shell (beta)? (yes/no): yes

Do you want CustomBuild to download versions.txt every time? (yes/no): yes

Do you want to enable bolded text? (yes/no): yes

Do you want to clean everything (run './build clean' every time) running CustomBuild? (yes/no): yes

Which fileserver do you want to use (1 is located in USA, 2 - Europe)? (1/2): 1

Options.conf has been installed successfully

The installer starts the Zend installation, which requires hands on input .. answer the question, yes to everything (except httpd restart) .. when it asks for the path to php.ini ... enter: /usr/local/etc/php5/cgi


3) Be sure to note the admin login information once install completes.

4) Once install has completed do:

service directadmin restart

5) Access DA by going to

http://yourserverip:2222


TO INSTALL
#########################
Spamassasin
#########################

cd /usr/local/directadmin/scripts

run (say yes to any questions)
PERL_MM_USE_DEFAULT=1 cpan -i Archive::Tar Digest::SHA Mail::SPF IP::Country Net::Ident IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect

./spam.sh

Answer yes to ANY questions EXCEPT:
>> Are you ready for manual configuration?
^Say NO... the defaults are the most reliable!

/usr/bin/spamd -d -c -m 15
chkconfig spamassassin on


In order to get exim to use the spamd program, you'll need to make some
changes in your /etc/exim.conf.

Change:
# Spam Assassin
#spamcheck_director:
# driver = accept
# condition = "${if and { \
# {!def:h_X-Spam-Flag:} \
# {!eq {$received_protocol}{spam-scanned}} \
# {!eq {$received_protocol}{local}} \
#
{exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}}
\
# {<{$message_size}{100k}} \
# } {1}{0}}"
# retry_use_local_part
# transport = spamcheck
# no_verify


change TO (if its there why isn't it on by default jesus!?)

# Spam Assassin
spamcheck_director:
driver = accept
condition = "${if and { \
{!def:h_X-Spam-Flag:} \
{!eq {$received_protocol}{spam-scanned}} \
{!eq {$received_protocol}{local}} \

{exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}}
\
{<{$message_size}{100k}} \
} {1}{0}}"
retry_use_local_part
transport = spamcheck
no_verify


then restart exim
/sbin/service exim restart







Powered by TurnKey Internet]]>