DirectAdmin Installation Guide

การสนับสนุนสำหรับ webhosts ที่ใช้ CentOS
ตอบกลับ
รูปประจำตัวสมาชิก
slwt2002
Administrator
โพสต์: 126
ลงทะเบียนเมื่อ: พุธ 24 มิ.ย. 2015 18:03

DirectAdmin Installation Guide

โพสต์ โดย slwt2002 »

Step 1: Do you meet the system requirements?



- Clean OS install: check install.html to ensure you've got a supported OS

- At least one external IP address (NAT/LAN-based systems will NOT work)

- SSH installed, gcc, g++, openssl-devel installed.
- Run the pre-install commands before starting the install.

โค้ด: เลือกทั้งหมด

yum update -y

โค้ด: เลือกทั้งหมด

yum install gcc-c++ make patch screen wget quota ncftp bind bind-utils caching-nameserver which bison flex webalizer patch openssl-devel.x86_64 curl-devel.x86_64 e2fsprogs-devel.x86_64 perl-DBI ntp tcpdump iptables telnet traceroute rsync openssh-clients perl-Term-ReadKey autoconf rpm-build vim-enhanced nginx automake libaio libcurl-devel
Step 2: Make sure your license information is correct.

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).

Step 3: Begin the installation!



**** 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.



Login as root and download the setup.sh file

โค้ด: เลือกทั้งหมด

wget http://www.directadmin.com/setup.sh
Hint: Use "fetch" instead of "wget" on FreeBSD systems.



Change permissions on the setup.sh file


โค้ด: เลือกทั้งหมด

chmod 755 setup.sh
Run the setup script!


โค้ด: เลือกทั้งหมด

./setup.sh
You will be prompted for a client ID number, license ID number, and hostname.



Important: The hostname should not be the same as the primary domain name. e.g. gary.com is not a good hostname, where server.gary.com is. Having the same host/main domain name will cause e-mail and FTP problems. Also, please make sure the hostname resolves once you setup DNS.



That's it! Please see below if you are installing on a VPS, or wanting to setup DirectAdmin for secure (https://) control panel access.



Special notice for VPS/VDS installs:
After the install, add:

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.
to /usr/local/directadmin/conf/directadmin.conf.

Replace devicename with the FULL devicename reported by ifconfig. If your VDS/VPS system emulates eth0, then you may skip this step.
ไม่มีลายเซ็นต์ ขอเขียนแล้วกัน
ตอบกลับ