<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>directadmin &#8211; 科技改变生活-雨落星辰</title>
	<atom:link href="https://p1e.cn/html/tag/directadmin/feed" rel="self" type="application/rss+xml" />
	<link>https://p1e.cn</link>
	<description>所有的伟大,都源于一个勇敢的开始</description>
	<lastBuildDate>Thu, 23 May 2019 01:01:44 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>DirectAdmin开启SSL并配置Let&#8217;s Encrypt自动生成HTTPS证书</title>
		<link>https://p1e.cn/html/662.html</link>
					<comments>https://p1e.cn/html/662.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Mon, 05 Nov 2018 01:38:50 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[directadmin]]></category>
		<guid isPermaLink="false">http://www.815494.com/?p=662</guid>

					<description><![CDATA[DirectAdmin开启SSL 首先必须开启SNI功能，以支持单IP绑定多个证书。官方帮助文档见:Allow SNI for shared IP SSL certificates 简单来说，就是在DA配置文件/usr/local/directadmin/conf/directadmin.conf中添加行语句：]]></description>
										<content:encoded><![CDATA[<h2>DirectAdmin开启SSL</h2>
<p>首先必须开启SNI功能，以支持单IP绑定多个证书。官方帮助文档见:<em><a href="https://www.directadmin.com/features.php?id=1100" target="_blank" rel="noopener noreferrer">Allow SNI for shared IP SSL certificates</a></em><br />
简单来说，就是在DA配置文件<code>/usr/local/directadmin/conf/directadmin.conf</code>中添加行语句：</p>
<p>[php]enable_ssl_sni=1[/php]</p>
<h2>DirectAdmin开启自动配置Let’s Encrypt免费证书</h2>
<p>详见官方文档：<em><a href="https://help.directadmin.com/item.php?id=648" target="_blank" rel="noopener noreferrer">How to enable LetsEncrypt</a></em><br />
简单来说，就是在DA配置文件<code>/usr/local/directadmin/conf/directadmin.conf</code>中添加行语句：<br />
<code>letsencrypt=1</code></p>
<p>开启SSL和配置好Let’s Encrypt自动证书后，需要重启DA：</p>
<div id="crayon-5b5e57b7a3cce430482380" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover disable-anim wrap">[php]echo &#8220;action=directadmin&amp;value=restart&#8221; &gt;&gt; /usr/local/directadmin/data/task.queue; /usr/local/directadmin/dataskq d2000[/php]</div>
<p>然后重写主机配置，主要是要把.well-known做指向</p>
<div id="crayon-5b5e57b7a3cdd499711643" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover disable-anim wrap">[php]cd /usr/local/directadmin/custombuild[/php]<br />
[php]./build rewrite_confs[/php]</div>
<p>官方还建议做一次更新检测，新装的环境一般没必要。老环境升级建议做：</p>
<div id="crayon-5b5e57b7a3ce2035959750" class="crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped" data-settings=" minimize scroll-mouseover disable-anim wrap">cd /usr/local/directadmin/custombuild<br />
[php]./build update[/php]<br />
[php]./build letsencrypt[/php]</div>
<p>做好如上配置后，在用户控制面板中，能看到SSL图标。</p>
<h2>生成与配置域名证书</h2>
<p>首先要做域名解析。<strong>必须要把裸域@和主机www都解析到服务器的IP</strong>上。经测试通畅后，在进行后面的操作。<br />
进入用户控制面板，点击SSL图标进入配置，地址一般应该是 <code>//www.directadmin.com:8888/CMD_SSL?domain=abc.com</code><br />
点击 <code>Generate new certificate</code>，然后选 <code>Free &amp; automatic certificate from Let's Encrypt</code></p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-665" src="https://i.p1e.cn/2018/11/directadmin_ssl_lets_encrypt_cdn-1.png" alt="" width="652" height="205" /><br />
如图所示，这里面重要的是email地址不能乱写，必须写一个真实存在的可以接收邮件的地址。密钥长度肯定是越长越好，选4096和SHA256加密。</p>
<p>下一步要选域名了，按需选择，但是裸域是必选的。默认选了裸域和www主机名。</p>
<p>点确定保存即可。</p>
<p>此后DA会进行自动生成操作。如果出现错误，一般是域名没解析、Email地址不对、.well-known没找到之类的问题。</p>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/662.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>DirectAdmin安装记录（2018更新）</title>
		<link>https://p1e.cn/html/660.html</link>
					<comments>https://p1e.cn/html/660.html#respond</comments>
		
		<dc:creator><![CDATA[Naoki]]></dc:creator>
		<pubDate>Sat, 03 Nov 2018 01:38:21 +0000</pubDate>
				<category><![CDATA[运维笔记]]></category>
		<category><![CDATA[directadmin]]></category>
		<guid isPermaLink="false">http://www.815494.com/?p=660</guid>

					<description><![CDATA[下载官方脚本执行安装 wget http://www.directadmin.com/setup.sh chmod 755 setup.sh ./setup.sh 提示是否需要执行脚本预安装必须的第三方软件包  输入 y ***************************************************** * * DirectAdmin requires certain packages, described here: * http://help.directadmin.com/item.p]]></description>
										<content:encoded><![CDATA[<p>下载官方脚本执行安装</p>
<pre>wget http://www.directadmin.com/setup.sh</pre>
<pre>chmod 755 setup.sh</pre>
<pre>./setup.sh</pre>
<p>提示是否需要执行脚本预安装必须的第三方软件包  输入 y</p>
<pre>*****************************************************
 *
 * DirectAdmin requires certain packages, described here:
 * http://help.directadmin.com/item.php?id=354
 *
 * Would you like to install these required pre-install packages? (y/n): y
</pre>
<div class="crayon-line crayon-striped-line">安装完毕第三方的包以后  会要求输入用户ID  授权ID 主机名 选择网卡 确认系统版本</div>
<pre>*****************************************************
Please enter your Client ID : 用户ID
Please enter your License ID : 授权ID
Please enter your hostname (server.domain.com)
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
</pre>
<pre>Enter your hostname (FQDN) : 主机名
Client ID: *****
License ID: ******
Hostname: ***.**
Is this correct? (y,n) : y
Is eth0 your network adaptor with the license IP (**.***.**.**)? (y,n) : y
Your external IP: 
The external IP should typically match your license IP.
</pre>
<pre>Is **.**.**.** the IP in your license? (y,n) : y
</pre>
<pre>DirectAdmin will now be installed on: Enterprise 7.2
Is this correct? (must match license) (y,n) : y
</pre>
<div class="crayon-line crayon-striped-line">提示选择默认的版本  这里我们选择 n 因为 cli 版本没有隔离用户和站点 我们需要在下面选择</div>
<pre>Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.5 cli? (y/n): n
</pre>
<div class="crayon-line crayon-striped-line">提示是否备份配置文件  输入  yes</div>
<pre>Would you like to backup the current options.conf? (yes/no): yes
Backup created: /usr/local/directadmin/custombuild/options.conf.20151105102436.backup
</pre>
<div class="crayon-line crayon-striped-line">选择 WEB 服务程序  ，一般为了兼容性我们选择 apache ，如果有别的需求，建议选择nginx_apache 这个兼容性比较好，litespeed 需要商业授权，否则是免费版，限制很多.</div>
<pre>Please select webserver you would like to use (apache/nginx/nginx_apache/litespeed):apache</pre>
<div class="crayon-line crayon-striped-line">选择 FTP 服务程序，一般我们选择 proftpd ,选择 pureftpd 可以，都是DA后台在控制生成ftp信息</div>
<pre>Please select FTP server you would like to use (proftpd/pureftpd/no):proftpd
</pre>
<div class="crayon-line crayon-striped-line">接下来选择 PHP 版本。支持 php5.3~7.0，请根据自己的需求选择</div>
<div class="crayon-line crayon-striped-line">
<p>PHP 运行模式，我们选择 suphp</p>
<p>是否安装第2个版本的PHP  输入 no  我们可以在安装完毕以后使用 CustomBuild 插件进行配置多版本php.</p>
<pre>Please select default PHP version you would like to use (5.3/5.4/5.5/5.6/7.0):5.3
Please select default PHP mode you would like to use (php-fpm/fastcgi/suphp/lsphp/mod_php):suphp
Would you like to have a second instance of PHP installed? (yes/no): no
</pre>
<div class="crayon-line">
<p>接下来是常用组件，</p>
<p>一般 ionCube  和 Zend Guard Loader 是必选的，输入  yes</p>
<p>suhosin PHP安全修复组件  必选 yes</p>
<p>phpMyAdmin   必选 yes</p>
<p>其他几个组件是email的  根据需求自选</p>
<pre>Please select if you would like to use ionCube (yes/no):yes
 
Please select if you would like to use Zend Guard Loader (yes/no):yes
 
Please select if you would like to use suhosin (yes/no):yes
 
Please select if you would like CustomBuild to manage Exim installation (yes/no):no
 
Please select if you would like CustomBuild to manage Dovecot installation (yes/no):no
 
Please select if you would like CustomBuild to manage phpMyAdmin installation (yes/no):yes
 
Please select if you would like CustomBuild to manage SquirrelMail installation (yes/no):no
 
Please select if you would like CustomBuild to manage RoundCube installation (yes/no):no
</pre>
<div class="crayon-line">接下来 是否测试选择最快的镜像  y</div>
<pre>Would you like to search for the fastest download mirror? (y/n): y
</pre>
<div class="crayon-line">
<p>接下来开始自动安装 MYSQL会自动安装为 5.5版本 ，后面都可以使用 CustomBuild 插件来自定义选择版本</p>
<p>等待15~30分钟左右就安装完毕了，安装完毕以后会提示后台登录地址和帐号密码</p>
<pre>## INSTALL_COMPLETE
## ACCOUNT_INFO
 
 
The following information has been set:
 
Admin username:   admin
Admin password:   Axxxxxx2
Admin email:      admin@testda.vvv.com
 
 
Server IP: 192.x.x.x
Server Hostname: testda.vvv.com
 
To login now, follow this link:
 
http://192.x.x.x:2222
 
and enter your Admin username and password when prompted.
 
You should now visit http://admin.site-helper.com and http://www.directadmin.com/newinstall.html to learn how to get started.
 
Thank you for using DirectAdmin.  Should you have any questions, don't hesitate to contact us at support@directadmin.com
 
## REPORT_END
Permissions set
 
System Security Tips:
  http://help.directadmin.com/item.php?id=247</pre>
</div>
</div>
</div>
<div></div>]]></content:encoded>
					
					<wfw:commentRss>https://p1e.cn/html/660.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
