<?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>VPS侦探 &#187; Lighttpd</title>
	<atom:link href="http://www.vpser.net/tag/lighttpd/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vpser.net</link>
	<description>致力于VPS主机推荐、VPS管理维护、VPS优惠信息及VPS相关的信息共享平台</description>
	<lastBuildDate>Mon, 06 Feb 2012 01:24:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Kloxo 安装完(network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)错误解决方法</title>
		<link>http://www.vpser.net/manage/kloxo-network-c-336-ssl-error.html</link>
		<comments>http://www.vpser.net/manage/kloxo-network-c-336-ssl-error.html#comments</comments>
		<pubDate>Thu, 08 Apr 2010 01:02:35 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[VPS管理维护]]></category>
		<category><![CDATA[Kloxo]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[openssl]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=1039</guid>
		<description><![CDATA[安装完Kloxo后lighttpd不能启动，提示 (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0) 错误。 [root@vpser.net ~]# service kloxo restart Stopping kloxo: Waiting for the process to die..... Stopped kloxo Starting kloxo: 11 cat: /usr/local/lxlabs/kloxo//pid/wrapper.pid: No such file or directory mysqld (pid 30539) is running... 2010-04-05 20:24:16: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0) Started kloxo VPS侦探 http://www.vpser.net/ 解决方法： openssl降级到openssl-0.9.8e-12.el5_4.1.i686版本 执行命令：yum downgrade openssl 如果执行上面命令不行可以通过下面的方法解决： wget http://ftp.belnet.be/mirrors/ftp.centos.org/5.4/updates/i386/RPMS/openssl-0.9.8e-12.el5_4.1.i686.rpm rpm -e --nodeps [...]]]></description>
			<content:encoded><![CDATA[<p>安装完Kloxo后lighttpd不能启动，提示 (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0) 错误。</p>
<p>[root@vpser.net ~]# service kloxo restart<br />
Stopping kloxo: Waiting for the process to die.....<br />
Stopped kloxo</p>
<p>Starting kloxo: 11<br />
cat: /usr/local/lxlabs/kloxo//pid/wrapper.pid: No such file or directory<br />
mysqld (pid 30539) is running...<br />
2010-04-05 20:24:16: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)<br />
Started kloxo <span style="color: #ffffff;">VPS侦探 </span><a style="text-decoration: none;" href="http://www.vpser.net/" target="_blank"><span style="color: #ffffff;">http://www.vpser.net/</span></a></p>
<p>解决方法： openssl降级到openssl-0.9.8e-12.el5_4.1.i686版本</p>
<p>执行命令：yum downgrade openssl<span id="more-1039"></span></p>
<p>如果执行上面命令不行可以通过下面的方法解决：</p>
<p>wget http://ftp.belnet.be/mirrors/ftp.centos.org/5.4/updates/i386/RPMS/openssl-0.9.8e-12.el5_4.1.i686.rpm<br />
rpm -e --nodeps openssl-0.9.8e-12.el5_4.6<br />
rpm -ivh openssl-0.9.8e-12.el5_4.1.i686.rpm</p>
<p>update：</p>
<p>官网上最新的解决方法是直接yum update即可，未验证。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/vps-cp/kloxo-domian-limited.html" title="去除Kloxo(原lxadmin)域名个数限制的方法">去除Kloxo(原lxadmin)域名个数限制的方法</a></li><li><a href="http://www.vpser.net/vps-cp/kloxo-dont-support-mysql-gd.html" title="安装完kloxo后不支持Mysql,GD问题的解决方法">安装完kloxo后不支持Mysql,GD问题的解决方法</a></li><li><a href="http://www.vpser.net/manage/linode-vps-add-ip.html" title="Linode VPS 添加多IP/设置静态IP(Kloxo no_ip_address解决方法)">Linode VPS 添加多IP/设置静态IP(Kloxo no_ip_address解决方法)</a></li><li><a href="http://www.vpser.net/vps-cp/centos-linux-vps-kloxol-xadmin.html" title="CentOS Linux VPS Kloxo/Lxadmin虚拟主机控制面板安装教程">CentOS Linux VPS Kloxo/Lxadmin虚拟主机控制面板安装教程</a></li><li><a href="http://www.vpser.net/build/debian-vps-web-server.html" title="Debian VPS 安装安装(Lighttpd+MySQL+Zend+vsftpd+PHPMyAdmin)Web环境">Debian VPS 安装安装(Lighttpd+MySQL+Zend+vsftpd+PHPMyAdmin)Web环境</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2010. |
<a href="http://www.vpser.net/manage/kloxo-network-c-336-ssl-error.html">Permalink</a> |
<a href="http://www.vpser.net/manage/kloxo-network-c-336-ssl-error.html#comments">4 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/manage/kloxo-network-c-336-ssl-error.html&title=Kloxo 安装完(network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)错误解决方法">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/kloxo" rel="tag">Kloxo</a>, <a href="http://www.vpser.net/tag/lighttpd" rel="tag">Lighttpd</a>, <a href="http://www.vpser.net/tag/openssl" rel="tag">openssl</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/manage/kloxo-network-c-336-ssl-error.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Debian VPS 安装安装(Lighttpd+MySQL+Zend+vsftpd+PHPMyAdmin)Web环境</title>
		<link>http://www.vpser.net/build/debian-vps-web-server.html</link>
		<comments>http://www.vpser.net/build/debian-vps-web-server.html#comments</comments>
		<pubDate>Fri, 24 Apr 2009 08:48:07 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=255</guid>
		<description><![CDATA[第一步 把自己的VPS系统切换成Debian系统（据说Debian 4.0目前是BUG最少最稳定的系统之一，虽然功能没有CentOS强大，但够用了）： 1.0 打开HyperVM控制面板 管理VPS，成功登陆后； 1.1.0 选择Rebuild   1.1.1 选择VPS操作系统为Debian 并勾选 “Confirm Rebuild”.然后点击“Update”按钮完成系统重新安装.     【提示】每隔10分钟可以重新安装一次. 1.2.0 OK让我们登陆VPS服务器.使用PuTTY工具登陆我们的VPS. 打开PuTTY输入服务器IP地址.端口，ssh连接方式选择.然后点击“open”按钮登陆服务器   首次连接出现交换密匙提示 点击是（OK）.   接着出现登陆界面 输入用户名和密码 （小技巧：密码先复制下来.在输入密码的地方右击即可.免去手工输入的烦恼） 给一个 Linux常用信息查看命令参考（不看也没有关系.） http://blog.licess.cn/linux-info-command/ 退出服务器的指令 exit 输入exit  回车即可断开连接.   ok 登陆后.让我开始安装WEB环境把. 2.0 安装前更新下Debian服务器. 使用命令 apt-get update   2.1.0 开始安装MYSQL5.0 输入命令 apt-get install mysql-server mysql-client 中途出现 “Do you want to [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-6.png"></a>第一步 把自己的VPS系统切换成Debian系统</strong>（据说Debian 4.0目前是BUG最少最稳定的系统之一，虽然功能没有CentOS强大，但够用了）：</p>
<p>1.0 打开HyperVM控制面板 管理VPS，成功登陆后；</p>
<p>1.1.0 选择Rebuild</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-2.png" target="_blank"><img class="alignnone size-full wp-image-256" title="debian-webserver-2" src="http://www.vpser.net/uploads/2009/04/debian-webserver-2.png" alt="debian-webserver-2" width="479" height="215" /></a> <span id="more-255"></span></p>
<p>1.1.1 选择VPS操作系统为Debian 并勾选 “Confirm Rebuild”.然后点击“Update”按钮完成系统重新安装.</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-3.png" target="_blank"><img class="alignnone size-full wp-image-257" title="debian-webserver-3" src="http://www.vpser.net/uploads/2009/04/debian-webserver-3.png" alt="debian-webserver-3" width="508" height="186" /></a> </p>
<p> </p>
<p>【提示】每隔10分钟可以重新安装一次.</p>
<p>1.2.0 OK让我们登陆VPS服务器.使用PuTTY工具登陆我们的VPS.</p>
<p>打开PuTTY输入服务器IP地址.端口，ssh连接方式选择.然后点击“open”按钮登陆服务器</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-4.png" target="_blank"><img class="alignnone size-full wp-image-258" title="debian-webserver-4" src="http://www.vpser.net/uploads/2009/04/debian-webserver-4.png" alt="debian-webserver-4" width="460" height="446" /></a> </p>
<p>首次连接出现交换密匙提示 点击是（OK）.</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-5.png" target="_blank"><img class="alignnone size-full wp-image-259" title="debian-webserver-5" src="http://www.vpser.net/uploads/2009/04/debian-webserver-5.png" alt="debian-webserver-5" width="538" height="340" /></a> </p>
<p>接着出现登陆界面 输入用户名和密码 （小技巧：密码先复制下来.在输入密码的地方右击即可.免去手工输入的烦恼）</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-6.png" target="_blank"><img class="alignnone size-full wp-image-260" title="debian-webserver-6" src="http://www.vpser.net/uploads/2009/04/debian-webserver-6.png" alt="debian-webserver-6" width="549" height="347" /></a></p>
<p>给一个 <a href="http://blog.licess.cn/linux-info-commandlinux-info-command/" target="_blank">Linux常用信息查看命令</a>参考（不看也没有关系.）</p>
<p><a href="http://blog.licess.cn/linux-info-commandlinux-info-command/">http://blog.licess.cn/linux-info-command/</a></p>
<p>退出服务器的指令 exit</p>
<p>输入exit  回车即可断开连接.</p>
<p> </p>
<p>ok 登陆后.让我开始安装WEB环境把.</p>
<p><strong>2.0 安装前更新下Debian服务器.</strong></p>
<p>使用命令</p>
<blockquote><p>apt-get update</p></blockquote>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-7.png" target="_blank"><img class="alignnone size-full wp-image-261" title="debian-webserver-7" src="http://www.vpser.net/uploads/2009/04/debian-webserver-7.png" alt="debian-webserver-7" width="493" height="305" /></a> </p>
<p>2.1.0 开始安装MYSQL5.0</p>
<p>输入命令</p>
<blockquote><p>apt-get install mysql-server mysql-client</p></blockquote>
<p>中途出现 “Do you want to continue [Y/n]?”</p>
<p>输入 y  回车继续安装</p>
<p>2.1.1 查看MYSQL是否工作.</p>
<p>输入命令</p>
<blockquote><p>netstat -tap | grep mysql</p></blockquote>
<p>2.1.2 设置MySql 管理员（root）密码</p>
<p>命令</p>
<blockquote><p>mysqladmin -u root password 你的密码<br />
如果想把root 密码设置为 anqun 则这样书写<br />
mysqladmin -u root password 1234</p></blockquote>
<p>2.1.3 使用ROOT帐户登陆MYSQL.</p>
<p>命令</p>
<blockquote><p>mysql -u root –p</p></blockquote>
<p>提示输入密码.回车即可成功登陆MYSQL.</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-8.png" target="_blank"><img class="alignnone size-full wp-image-262" title="debian-webserver-8" src="http://www.vpser.net/uploads/2009/04/debian-webserver-8.png" alt="debian-webserver-8" width="512" height="137" /></a> </p>
<p>MySQL安装成功后我们开始安装WWW服务器Lighttpd</p>
<p><strong>2.2.0 安装Lighttpd</strong></p>
<p>安装命令</p>
<blockquote><p>apt-get install lighttpd</p></blockquote>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-9.png" target="_blank"><img class="alignnone size-full wp-image-263" title="debian-webserver-9" src="http://www.vpser.net/uploads/2009/04/debian-webserver-9.png" alt="debian-webserver-9" width="488" height="423" /></a> </p>
<p>这时打开你的独立IP地址 就可以看见欢迎页面了.安装成功！</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-10.png" target="_blank"><img class="alignnone size-full wp-image-264" title="debian-webserver-10" src="http://www.vpser.net/uploads/2009/04/debian-webserver-10.png" alt="debian-webserver-10" width="539" height="383" /></a> </p>
<p>lighttpd默认网页文件夹</p>
<blockquote><p>/var/www</p></blockquote>
<p>lighttpd配置文件</p>
<blockquote><p>/etc/lighttpd/lighttpd.conf</p></blockquote>
<p>OK Lighttpd 既然安装成功后 我们就安装PHP让 Lighttpd支持PHP!</p>
<p>2.2.1 安装PHP.</p>
<p>命令</p>
<blockquote><p>apt-get install php5-cgi</p></blockquote>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-11.png" target="_blank"><img class="alignnone size-full wp-image-265" title="debian-webserver-11" src="http://www.vpser.net/uploads/2009/04/debian-webserver-11.png" alt="debian-webserver-11" width="426" height="484" /></a> </p>
<p>2.2.2 让Lighttpd支持PHP</p>
<p>我们要修改2个文件</p>
<ol>
<li> 
<ol>
<li>/etc/php5/cgi/php.ini</li>
<li>/etc/lighttpd/lighttpd.conf</li>
</ol>
</li>
</ol>
<p>修改方法通常使用VI指令..但是我不会用..还好HyperVM控制面板给我们提够了在线系统文件管理.</p>
<p>回到HyperVM控制面板 点击"File Manager"进入在线文件管理.</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-12.png" target="_blank"><img class="alignnone size-full wp-image-266" title="debian-webserver-12" src="http://www.vpser.net/uploads/2009/04/debian-webserver-12.png" alt="debian-webserver-12" width="477" height="125" /></a> </p>
<p>我们先找到/etc/php5/cgi/php.ini</p>
<p>打开他转到edit编辑状态.</p>
<p>在最后一行插入</p>
<blockquote><p>cgi.fix_pathinfo = 1</p></blockquote>
<p><span style="color: #ff0000;">注:在此代码后，一定要再空出一行！</span></p>
<p>然后保存</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-13.png" target="_blank"><img class="alignnone size-full wp-image-267" title="debian-webserver-13" src="http://www.vpser.net/uploads/2009/04/debian-webserver-13.png" alt="debian-webserver-13" width="486" height="372" /></a> </p>
<p>接着用同样的方法编辑/etc/lighttpd/lighttpd.conf</p>
<blockquote><p>[...]<br />
server.modules = (<br />
"mod_access",<br />
"mod_alias",<br />
"mod_accesslog",<br />
"mod_fastcgi", <br />
# "mod_rewrite",<br />
# "mod_redirect",<br />
# "mod_status",<br />
# "mod_evhost",<br />
# "mod_compress",<br />
# "mod_usertrack",<br />
# "mod_rrdtool",<br />
# "mod_webdav",<br />
# "mod_expire",<br />
# "mod_flv_streaming",<br />
# "mod_evasive"<br />
)<br />
[...]</p></blockquote>
<p>增加代码:</p>
<blockquote><p>"mod_fastcgi",</p></blockquote>
<p>注意逗号.</p>
<p>接着在文件最后增加</p>
<blockquote><p>fastcgi.server = ( ".php" =&gt; ((<br />
"bin-path" =&gt; "/usr/bin/php5-cgi",<br />
"socket" =&gt; "/tmp/php.socket"<br />
)))</p></blockquote>
<p>保存即可完成Lighttpd 与PHP的关联.</p>
<p>重新启动lighttpd</p>
<blockquote><p>/etc/init.d/lighttpd restart</p></blockquote>
<p><strong>2.2.3 测试PHP.</strong></p>
<p>我们使用iProber探针测试环境.</p>
<p>同样使用HyperVM控制面板"File Manager上传iProber.php到 /var/www</p>
<p><a href="http://soft.vpser.net/prober/iProber.zip" target="_blank">iProber探针下载</a> <a href="http://soft.vpser.net/prober/iProber.zip">http://soft.vpser.net/prober/iProber.zip</a></p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-14.png" target="_blank"><img class="alignnone size-full wp-image-268" title="debian-webserver-14" src="http://www.vpser.net/uploads/2009/04/debian-webserver-14.png" alt="debian-webserver-14" width="513" height="318" /></a> </p>
<p>然后我们打开 http://你的独立IP/iProber.php</p>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-15.png" target="_blank"><img class="alignnone size-full wp-image-269" title="debian-webserver-15" src="http://www.vpser.net/uploads/2009/04/debian-webserver-15.png" alt="debian-webserver-15" width="488" height="484" /></a> </p>
<p>看到该页面代表PHP运行成功..........</p>
<p><strong>2.3 让PHP支持MYSQL.</strong></p>
<p>很激动吧！PHP装好了吧....</p>
<p>不过突然发现探针上面</p>
<p>出现MYSQL不支持！！！！</p>
<p> <a href="http://www.vpser.net/uploads/2009/04/debian-webserver-16.png" target="_blank"><img class="alignnone size-full wp-image-270" title="debian-webserver-16" src="http://www.vpser.net/uploads/2009/04/debian-webserver-16.png" alt="debian-webserver-16" width="350" height="31" /></a></p>
<p> <a href="http://www.vpser.net/uploads/2009/04/debian-webserver-17.png" target="_blank"><img class="alignnone size-full wp-image-271" title="debian-webserver-17" src="http://www.vpser.net/uploads/2009/04/debian-webserver-17.png" alt="debian-webserver-17" width="514" height="71" /></a></p>
<p>啊！原来还有一步没有做呢！那好吧~让我们的php与mysql相处吧！</p>
<p>获得MySQL在PHP中的支持，我们可以安装php5 - MySQL的方案。这是一个很好的主意，需要安装一些其他php5模块，以及允许他们为您的应用程序。您可以搜索那些可用的php5模块使用这个命令：</p>
<blockquote><p>apt-cache search php5</p></blockquote>
<p><a href="http://www.vpser.net/uploads/2009/04/debian-webserver-18.png" target="_blank"><img class="alignnone size-full wp-image-272" title="debian-webserver-18" src="http://www.vpser.net/uploads/2009/04/debian-webserver-18.png" alt="debian-webserver-18" width="476" height="484" /></a></p>
<p>这时我们看到了php5-mysql这个模块，但是为了保证服务器对大部分程序的支援，我们还需要安装其他需要的模块，如php5-curl php5-gd php-pear等等。我们使用命令：</p>
<blockquote><p>apt-get install php-pear php5-curl php5-dev php5-gd php5-idn php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-suhosin php5-tidy php5-xmlrpc php5-xsl</p></blockquote>
<p><strong>注：</strong>php5-suhosin模块就是前面提到的安全防护系统，它有两种安装方式，这里是用模块安装的方法相当于给PHP5进行打补丁。后面我会提到用第三方扩展的形式进行安装的。</p>
<p>重启我们的Lighttpd</p>
<blockquote><p>/etc/init.d/lighttpd restart</p></blockquote>
<p>现在再打开探针地址，是不是连接成功了？</p>
<p><strong>3.0 安装Zend</strong></p>
<p>安装Zend，我们需要登录到Zend的官方网站下载，下载需要用户名，我们可以注册一个，当然这是免费的，然后下载对应版本，然后上传到服务器Root用户目录/root</p>
<p>安装过程如下：</p>
<blockquote><p>wget <a href="http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz">http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz</a><br />
tar -zxf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz<br />
cd ZendOptimizer-3.3.3-linux-glibc23-i386<br />
sh install.sh</p></blockquote>
<p>安装的时候会给你看相关说明，并且会让你同意其条款，这些我们不管，我们需要注意的是后面它会让你输入目前php.ini所在目录，这里我们输入/etc/php5/cgi，然后会问你是否使用Apache Web Server，因为我们选择了Lighttpd，所以这里我们选否，然后安装结束，系统会告诉你之前的php.ini已经备份为php.ini.bak，新的php.ini文件所在目录为/usr/local/Zend/etc/，以后如果要修改php的设置，就需要进入/usr/local/Zend/etc/这个目录修改php.ini。</p>
<p>然后输入：</p>
<blockquote><p>cd ..<br />
rm -rf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz ZendOptimizer-3.3.3-linux-glibc23-i386</p></blockquote>
<p>删除之前的安装文件</p>
<p><strong>4.0 安装suhosin</strong></p>
<p>前面我们说过suhosin有两种方法，上面那个是以补丁包的方式进行安装，这里我们将它以第三方扩展的形式进行安装。安装过程如下：</p>
<blockquote><p>wget <a href="http://download.suhosin.org/suhosin-0.9.27.tgz">http://download.suhosin.org/suhosin-0.9.27.tgz</a><br />
tar -zxf suhosin-0.9.27.tgz<br />
cd suhosin-0.9.27<br />
phpize<br />
./configure<br />
make&amp;&amp;make install<br />
cd ..<br />
rm -rf suhosin-0.9.27.tgz suhosin-0.9.27</p></blockquote>
<p>然后我们再在/usr/local/Zend/etc/php.ini文件中添加</p>
<blockquote><p>[Suhosin]<br />
extension=suhosin.so</p></blockquote>
<p>suhosin的默认配置已经足够满足大部分人的需求了，如果需要增强设置，可以在php.ini文件中添加相应的值。详情请登录<a href="http://www.hardened-php.net/suhosin/#using_suhosin">http://www.hardened-php.net/suhosin/#using_suhosin</a></p>
<p><strong>5.0 安装Ftp服务端软件</strong></p>
<p>作为服务器，必不可少需要安装FTP服务器端软件。Linux下有很多出色的Ftpd软件，我们这里选用vsftpd，短小精悍，足够满足我们的需求。使用命令：</p>
<blockquote><p>apt-get install vsftpd</p></blockquote>
<p>安装完成之后，默认的配置文件所在为/etc/vsftpd.conf</p>
<p>启动 vsftpd：</p>
<p>/etc/init.d/vsftpd start</p>
<p>以下命令建立FTP帐户及相应目录：</p>
<blockquote><p>useradd FTP帐户 -d /home/你要的目录名 -s /bin/nologin</p></blockquote>
<p>比如我要在 123目录建立一个 456用户，那命令应该是：</p>
<p>useradd 456 -d /home/123 -s /bin/nologin</p>
<p>-s /bin/nologin则表示禁止SSH登陆，去掉则可以使用SSH</p>
<p>使用“passwd 用户名”设定用户密码</p>
<blockquote><p>passwd 用户名</p></blockquote>
<p>会出现密码提示，输入密码即可</p>
<p><strong>6.0 安装phpmyadmin</strong></p>
<blockquote><p>apt-get install phpmyadmin</p></blockquote>
<p>安装好之后，如果出现在/usr/share/目录，就输入以下</p>
<blockquote><p>mv /usr/share/phpmyadmin /var/www/phpmyadmin</p></blockquote>
<p>移动个目录</p>
<p>安装成功后，可以直接登陆</p>
<p>http://你的独立IP/phpmyadmin</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/build/vps-nginx-mysql-php.html" title="VPS初始化及Nginx+MySQL+PHP/PHPMyAdmin安装优化">VPS初始化及Nginx+MySQL+PHP/PHPMyAdmin安装优化</a></li><li><a href="http://www.vpser.net/coupons/vpsyou-2011-august-coupons.html" title="VPSYOU 2011年8月全线VPS8折优惠码">VPSYOU 2011年8月全线VPS8折优惠码</a></li><li><a href="http://www.vpser.net/coupons/burstnet-2011-june-windows-linux-vps-coupons.html" title="BurstNet 2011年6月Windows和Linux VPS优惠码">BurstNet 2011年6月Windows和Linux VPS优惠码</a></li><li><a href="http://www.vpser.net/manage/linux-reset-mysql-root-password.html" title="Linux下重置MySQL root密码">Linux下重置MySQL root密码</a></li><li><a href="http://www.vpser.net/build/linode-install-openvpn.html" title="Linode VPS OpenVPN安装配置教程(基于Debian/Ubuntu)">Linode VPS OpenVPN安装配置教程(基于Debian/Ubuntu)</a></li><li><a href="http://www.vpser.net/manage/mysql-import-export.html" title="Linux VPS/服务器上轻松导入、导出MySQL数据库">Linux VPS/服务器上轻松导入、导出MySQL数据库</a></li><li><a href="http://www.vpser.net/manage/delete-mysql-mysql-bin-0000-logs.html" title="如何关闭MySQL日志，删除mysql-bin.0000*日志文件">如何关闭MySQL日志，删除mysql-bin.0000*日志文件</a></li><li><a href="http://www.vpser.net/build/lnmp-0-5.html" title="LNMP一键安装包 0.5 正式发布">LNMP一键安装包 0.5 正式发布</a></li><li><a href="http://www.vpser.net/coupons/buyvm-15-fremont-he-net-128mb-openvz-vps.html" title="BuyVM – $15/年 Fremont He.net 128MB OpenVZ VPS有货啦">BuyVM – $15/年 Fremont He.net 128MB OpenVZ VPS有货啦</a></li><li><a href="http://www.vpser.net/domain/namecheap-2010-september-coupons.html" title="NameCheap 2010年9月优惠码">NameCheap 2010年9月优惠码</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2009. |
<a href="http://www.vpser.net/build/debian-vps-web-server.html">Permalink</a> |
<a href="http://www.vpser.net/build/debian-vps-web-server.html#comments">7 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/debian-vps-web-server.html&title=Debian VPS 安装安装(Lighttpd+MySQL+Zend+vsftpd+PHPMyAdmin)Web环境">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/debian" rel="tag">Debian</a>, <a href="http://www.vpser.net/tag/lighttpd" rel="tag">Lighttpd</a>, <a href="http://www.vpser.net/tag/mysql" rel="tag">MySQL</a>, <a href="http://www.vpser.net/tag/vps" rel="tag">VPS</a>, <a href="http://www.vpser.net/tag/web" rel="tag">Web</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/debian-vps-web-server.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

