首页 运维 正文
CentOS下如何安装虚拟主机管理软件DirectAdmin?

 2022-10-23    392  

CentOS(CommunityENTerpriseOperatingSystem)是Linux发行版之一,它是来自于RedHatEnterpriseLinux依照开放源代码规定释出的源代码所编译而成。而DirectAdmin是一款付费的虚拟主机管理软件,通常简称为DA,DA比Cpanel功能上简单,但是内存占用也更少些,更重要的是价格也更便宜,一般自己用或者搞合租DA算是很合适的。下文介绍了在CentOS下安装虚拟主机管理软件DA(DirectAdmin)的方法。

安装前首先确保已经购买了DirectAdmin的授权,购买授权后会有ClientID,LicenseID,也需要在DA官网上或者DA销售商那里提交你的VPS或者服务器的IP和系统信息。

CentOS下如何安装虚拟主机管理软件DirectAdmin?

1、安装CentOS的相关组件的命令如下:

yumupdate-y 

yuminstallgcc-c++gccmakeautomakewgetflex-y

2、安装DirectAdmin需要干净的系统,所以在装之前要卸载掉httpd、php、mysql。

yumremovehttpd*php*mysql*-y

3、下载DirectAdmin安装脚本文件,执行命令:

wgethttp://directadmin.com/setup.sh

4、为DirectAdmin安装脚本文件添加执行权限,执行命令:

chmod+xsetup.sh

5、执行DirectAdmin安装脚本文件:

./setup.sh

运行DirectAdmin安装文件,然后在下面填入相关的信息。其中hostname最好最好使用如:linode.vpser.net之类的二级域名不要使用顶级域名。

DirectAdmin’ssetuphasafewmorethingsyouneedtofill: 

PleaseenteryourClientID://输入你的ClientID 

PleaseenteryourLicenseID://输入你的LicenseID 

Pleaseenteryourhostname\(server.domain.com\)//输入一个主机名,如:linode.vpser.net 

ItmustbeaFullyQualifiedDomainName 

Do*not*useadomainyouplanonusingforthehostname: 

eg.don’tusedomain.com.Useserver.domain.cominstead. 

Donotenterhttp://orwww 

Enteryourhostname(FQDN): 

Isthiscorrect?(y,n)://提示上面是否正确,正确请输入y 

Iseth0yournetworkadaptorwiththelicenseIP?(y,n)://输入y 

Isxx.xx.xx.xxtheIPinyourlicense?(y,n)://确认IP是否是License上注册的IP 

DirectAdminwillnowbeinstalledon:Enterprise5 

Isthiscorrect?(mustmatchlicense)(y,n)://输入y 

Younowhave2optionsforyourapache/phpsetup. 

1:customapache:older,moretested.IncludesApache1.3,php4andfrontpage. 

2:custombuild1.1:newer,lesstested.IncludesanyApacheversion,php4,5,orbothincliand/orsuphp.FrontpagenotavailablewithApache2.x. 

Postanyissueswithcustombuildtotheforum:http://www.directadmin.com/forum/forumdisplay.php?f=61

Enteryourchoice(1or2)://一般选择2就行,使用php5

经过这些步骤,DirectAdmin的安装已经完成了。

安装完成后会提示:

DirectAdmin的用户名密码及DirectAdmin的管理后台地址等。

一般基于OpenVZ的VPS需要在使用前打开/usr/local/directadmin/conf/directadmin.conf这个文件,确认其中的ethernet_dev的值修改为:venet0:0,具体已ifconfig为准。

执行:servicedirectadminrestart重启DirectAdmin,用http://IP:2222登录DirectAdmin后台。

原文链接:https://77isp.com/post/6112.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。