centos7.5最新内核安装DirectAdmin面板

教程大全centos7.5,DirectAdmin,DirectAdmin面板

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

Posted by 柴郡猫