PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : نصب DirectAdmin در Ubuntu



WebRang
June 20th, 2009, 19:21
سلام...
آموزش عالی+ ساده ای هست ...
از عنوانش دیگه معلوم که قضیه چیه!
امیدوارم دوستان مشکلشون حل بشه ...:53:
و واسه سلامتی منم یه صلوات بفرستن :105:
خوب آموزش به زبان اصلیهست :d
بازم باید از کاربرای خوب انجمن تشکر کنیم میدونی چرا ؟
دوستانی که باز متوجه نشدن میتونن از دیکشنری آنلاین گوگل یا سایت زیر استفاده کنن ( برای ترجمه)
لینک دیکشنری های آنلاین :


دیکشنری آنلاین گوگل : http://translate.google.com/?sl=en&tl=fa
دیکشنری آنلاین فارسی : http://www.parstranslator.net/far/translate.htm



آموزش نصب دایرکت ادمین بر روی ابونتو :



This howto describes the process of installation in order to get the ‘awesome’ Directatmin control panel running under Ubuntu Feisty 7.04.
First of all you want to make sure you’ve got the ’server’ version of feisty; i’m setting it up inside a domU using the ‘Howto install’ described in a previous post.
Now, you have a working shell to you fresh and clean install of Feisty, let’s get started :
First, you need to enable ‘quota’ support on your rootfs; simple add ‘usrquota,grpquota’ after your ‘defaults’ in your /etc/fstab :
/dev/sda1 / ext3 defaults,usrquota,grpquota 0 0
/dev/sda2 none swap sw 0 0
proc /proc proc defaults 0 0
sys /sys sysfs defaults 0 0

Make sure you got all the needed repositories by editing ‘/etc/apt/menu.lst’, for this example here’s a copy of my current ’sources.list’ :
deb http://ch.archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu/ feisty main restricted
deb http://ch.archive.ubuntu.com/ubuntu/ feisty universe
deb-src http://ch.archive.ubuntu.com/ubuntu/ feisty universe
deb http://ch.archive.ubuntu.com/ubuntu/ feisty multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ feisty multiverse
deb http://ch.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://ch.archive.ubuntu.com/ubuntu/ feisty multiverse

adjust mirrors according to your location (may replace ‘ch’ by ‘de’, ‘us’ or whatever’) :
Now, install the needed packages in order to build DirectAdmin smoothly by doing :
apt-get update
apt-get install libssl-dev wget telnet build-essential openssh-server quota man xinetd zziplib-bin libzzip-dev libgdbm-dev libkrb5-dev ftp liblwp2 unzip perl-base perl-modules openssl

Since DirectAdmin doesn’t support Debian 4.0 (which is feisty’s build), we have to slightly change some files
in order to get DirectAdmin set up, after installation you can change those files back. So, et’s do some cosmetics :
mv /bin/sh /bin/o_sh
ln -s /bin/bash /bin/sh
echo 3.1 > /etc/debian_version
ln -s /sbin/killall5 /sbin/killall

Original wget doesn’t support SSL urls, let’s fetch a version that does :
mv /usr/bin/wget /usr/bin/o_wget
cd /usr/bin
/usr/bin/o_wget wget http://files.directadmin.com/services/debian_3.1/wget
chmod 755 /usr/bin/wget

At this point, we’re ready to fetch DirectAdmin’s installer :
cd /usr/src
wget http://www.directadmin.com/setup.sh
chmod 755 setup.sh

And launch the installation process :
./setup.sh

The process should go smoothly, and you’ll end up with an ‘installation complete’ message.
Now time to add some cool stuff !
Let’s enable Zend (used on some skins, for example Marina) :
/usr/local/directadmin/customapache/build zend

Follow the on screen instruction (answering default to every question). That should build and install Zend smoothly.
Finally, let’s setup Spam Assassin (taken from http://help.directadmin.com/item.php?id=36 )
cd /usr/local/directadmin/scripts
./spam.sh

Say ‘y’ to everything (or hit ‘Enter’ a bunch of times)
Once it’s done, start spamd by doing :
/usr/bin/spamd -d -c -m 5

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

to :
# 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

And restart exim by doing :
/etc/init.d/exim restart

The global spamassassin config file is in /etc/mail/spamassassin/local.cf.
DirectAdmin is not started by default so you’ll have to start it manually this time :
/etc/init.d/directadmin start

By default DirectAdmin doesn’t enable IMAP (for some obscure reasons i must say), here’s how to get it run. Create the new file in ‘/etc/xinetd.d/imap’, and insert the following code :
# default: on
# description: imapd
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
}

Now restart xinetd with :
/etc/init.d/xinetd restart

Test IMAP connection with :
telnet localhost 143
That should return :
Trying 127.0.0.1...
Connected to localhost.
Escape character is ‘^]’.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN] localhost IMAP4rev1 2003.339 at Wed, 16 May 2007 17:18:41 +0000 (UTC)

Proftpd and Apache (httpd) are not started by default so you’ll have to start it manually this time :
/etc/init.d/proftpd start
/etc/init.d/httpd start

For Proftpd to start at boot, we need to create two directories (thanks to this post)
mkdir -p /var/run/proftpd/
mkdir -p /var/lock/subsys/

And voilà !
Logon into your control panel using the ‘admin’ and password provided at the end of installation of Directadmin using :
http://your_servers_ip:2222/
Update (25 june 2007)
In order to install PHP5 instead of php4, simply do :
apt-get install libxml2-dev
wget “http://ch2.php.net/get/php-5.2.2.tar.bz2/from/this/mirror”
bunzip2 php-5.2.2.tar.bz2 && tar vxf php-5.2.2.tar
/usr/local/directadmin/customapache/configure.php
make
make install



موفق باشید....