centos7.5最新內核安裝DirectAdmin面板
官方教程地址:https://www.directadmin.com/installguide.php
先安裝gcc,g ++,openssl-devel等
Rehat/Fedora/CentOS :
yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio \
libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils -Embed \
autoconf automake libtool which patch mailx bzip2-devel lsof glibc-headers kernel-devel expat-devel db4-devel
CentOS 7
Add all of the above CentOS packages except db4-devel , then include these ones as well:
yum install psmisc net-tools systemd-devel libdb-devel perl-DBI perl-Perl4-CoreLibs xfsprogs rsyslog logrotate crontabs file
下載安裝程序
wget http://www.directadmin.com/setup.sh
授予755權限
chmod 755 setup.sh
運行安裝腳本
./setup.sh
提示輸入客戶端ID號,許可證ID號和主機名
中間有輸入讓你確認安裝哪個PHP版本的,選擇no,否則的話默認安裝1個php7.2
輸入php版本回車輸入運行模式php-fpm回車
yes回車
四個PHP版本
後面問安裝哪些php擴展,根據需求選擇
DirectAdmin’s setup has a few more things you need to fill:
Please enter your Client ID : //輸入你的Client ID
Please enter your License ID : //輸入你的License ID
Please enter your hostname \(server.domain.com\ ) //輸入一個主機名,如:linode.vpser.net
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) :
Is this correct? (y,n) : //提示上面是否正確,正確請輸入y
Is eth0 your network adaptor with the license IP? (y,n) : //輸入y
Is xx.xx.xx.xx the IP in your license? (y,n) : //確認IP是否是License上註冊的IP
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: older, more tested. Includes Apache 1.3, php 4 and frontpage.
2 : custombuild 1.1: newer, less tested. Includes any Apache version, php 4, 5, or both in cli and/or suphp. Frontpage not available with Apache 2.x.
Post any issues with custombuild to the forum: http:// www.directadmin.com/forum/forumdisplay.php?f=61
Enter your choice (1 or 2): //一般選擇2就行,使用php5