<?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; Debian</title> <atom:link href="http://www.vpser.net/tag/debian/feed" rel="self" type="application/rss+xml" /><link>http://www.vpser.net</link> <description>致力于VPS主机推荐、VPS管理维护、VPS优惠信息及VPS相关的信息共享平台</description> <lastBuildDate>Fri, 30 Jul 2010 01:58:28 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>DiaHosting 支持Debian32位、更新内核、gnome图形界面</title><link>http://www.vpser.net/usa-vps/diahosting-debian32bit-pvgrub-gnome.html</link> <comments>http://www.vpser.net/usa-vps/diahosting-debian32bit-pvgrub-gnome.html#comments</comments> <pubDate>Tue, 02 Feb 2010 03:57:32 +0000</pubDate> <dc:creator>VPSer</dc:creator> <category><![CDATA[美国VPS]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[DiaHosting]]></category> <category><![CDATA[gnome]]></category> <category><![CDATA[pvgrub]]></category> <category><![CDATA[更新内核]]></category><guid
isPermaLink="false">http://www.vpser.net/?p=900</guid> <description><![CDATA[
DiaHosting 1月份双倍内存超值优惠让vpser足足的尝到了些甜头，刚到2月DiaHosting除了双倍内存的优惠，还给我们这些vpser们带来了几个好消息：流量查看面板支持VPS关机、开机、重启，通过pvgrub更新内核，Debian 32位、gnome图形操作界面，下面看一下详细的介绍吧。
1. https://cp.diahosting.com增加VPS控制功能，目前可以进行开机，关机，重启。（注：重装系统还是需要通过xen-shell来进行）2. 所有新的VPS将使用pvgrub, 通过pvgrub，VPS将不再使用DiaHosting主服务器上的内核，而是使用VPS内的系统内核，这将使DiaHosting的VPS更加接近真实环境，同时用户可以自行更新内核。
3. 得益于pvgrub, DiaHosting的VPS将完美支持32位操作系统，使用32位操作系统可以明显减少内存的消耗。32位还是64位？
4. 增加如下操作系统支持:
debian 5 32bits
ubuntu 8.04 32bits
ubuntu 9.10 32bits
ubuntu 9.10 64bits5. 增加一个集成gnome图形操作界面的CentOS 5模版，使用非常简单，安装完成后，直接使用VNC访问  ip:1  即可。
ReView：DiaHosting应该是从成立之初开始用的，到现在应该有一年了，一直很稳定，我记忆中只有因为一次硬件坏了，停过机，再就是我的VPS被DDOS的时候停过机。速度洛杉矶的也没的说，总体来说DiaHosting还是一个非常值得推荐的VPS服务商。]]></description> <content:encoded><![CDATA[<div><p><a
href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a> <a
href="http://www.vpser.net/coupons/diahosting-2010-1.html" target="_blank">1月份双倍内存</a>超值优惠让<a
href="http://www.vpser.net/" target="_blank">vpser</a>足足的尝到了些甜头，刚到2月<a
href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>除了<strong>双倍内存的优惠</strong>，还给我们这些<a
href="http://www.vpser.net/" target="_blank">vpser</a>们带来了几个好消息：流量查看面板支持VPS关机、开机、重启，通过pvgrub更新内核，Debian 32位、gnome图形操作界面，下面看一下详细的介绍吧。</p><p>1. <a
href="https://cp.diahosting.com" target="_blank">https://cp.diahosting.com</a>增加VPS控制功能，目前可以进行开机，关机，重启。（注：重装系统还是需要通过<a
href="http://www.vpser.net/vps-cp/vps-xen-shell.html" target="_blank">xen-shell</a>来进行）</p><p><a
href="http://www.vpser.net/uploads/2010/02/diahosting-vps-status.jpg"><img
class="alignnone size-full wp-image-901" title="diahosting-vps-status" src="http://www.vpser.net/uploads/2010/02/diahosting-vps-status.jpg" alt="" width="479" height="134" /></a></p><p>2. 所有<em><strong>新的VPS</strong></em>将使用pvgrub, 通过pvgrub，VPS将不再使用<a
href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>主服务器上的内核，而是使用VPS内的系统内核，这将使<a
href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>的VPS更加接近真实环境，同时用户可以自行更新内核。<span
id="more-900"></span></p><p>3. 得益于pvgrub, <a
href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>的VPS将完美支持32位操作系统，使用32位操作系统可以明显减少内存的消耗。<a
href="http://www.vpser.net/other/vps-32bit-64bit.html" target="_blank">32位还是64位？</a></p><p>4. 增加如下操作系统支持:<br
/> debian 5 32bits<br
/> ubuntu 8.04 32bits<br
/> ubuntu 9.10 32bits<br
/> ubuntu 9.10 64bits</p><p><a
href="http://www.vpser.net/uploads/2010/02/diahosting-debian32-gnome.jpg"><img
class="alignnone size-full wp-image-905" title="diahosting-debian32-gnome" src="http://www.vpser.net/uploads/2010/02/diahosting-debian32-gnome.jpg" alt="" width="407" height="231" /></a></p><p>5. 增加一个集成gnome图形操作界面的CentOS 5模版，使用非常简单，安装完成后，直接使用VNC访问  ip:1  即可。</p><p>ReView：<a
href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>应该是从成立之初开始用的，到现在应该有一年了，一直很稳定，我记忆中只有因为一次硬件坏了，停过机，再就是我的VPS被DDOS的时候停过机。速度洛杉矶的也没的说，总体来说<a
href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>还是一个非常值得推荐的VPS服务商。</p></div> ]]></content:encoded> <wfw:commentRss>http://www.vpser.net/usa-vps/diahosting-debian32bit-pvgrub-gnome.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包</title><link>http://www.vpser.net/build/lnmp-debian-ubuntu.html</link> <comments>http://www.vpser.net/build/lnmp-debian-ubuntu.html#comments</comments> <pubDate>Wed, 26 Aug 2009 02:44:57 +0000</pubDate> <dc:creator>VPSer</dc:creator> <category><![CDATA[服务器环境搭建]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[LNMP]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://www.vpser.net/?p=450</guid> <description><![CDATA[  
因为个人原因，LNMP经过几次跳票终于发布了，此次发布的是在Debian或者Ubuntu下的Nginx、PHP、MySQL、phpMyAdmin、Zend一键安装包,可以在VPS、独立主机上轻松的安装LNMP生产环境。
LNMP V0.3 for Debian/Ubuntu软件版本说明(2009年11月10日更新)：
Nginx：0.7.63
PHP：5.2.10
MySQL：5.0.51a
Zend Optimizer ：3.3.9
eaccelerator：0.9.5.3
使用说明：(请尽量选用32位，D64位问题已经解决，可以正常使用)
如果系统预安装Apahce或你已经安装Apache，请先运行 killall apache2 ，再执行 apt-get remove apache2 ，删除Apache！(此步已经再V0.3新版添加，可以不用操作。)
登陆Linux,下载LNMP压缩包，并解压. (一些朋友可能不知道怎么弄，登陆VPS或者主机，
执行命令 wget http://soft.vpser.net/lnmp/lnmp0.3.tar.gz ,将lnmp0.3.tar.gz下载到VPS中，执行 tar zxvf lnmp0.3.tar.gz解压LNMP一键安装包)。
执行命令 cd lnmp0.3
然后32位系统执行./debian.sh  64位系统执行./debian64bit.sh ，输入要绑定的域名，回车后。程序会自动安装编译Nginx、PHP、MySQL、phpMyAdmin、Zend这几个软件。安装大约10分钟左右需要设置MySQL root用户的密码。
如果需要安装eaccelerator，执行./eaccelerator.sh 就可以了。
程序安装路径：
MySQL :   /usr/bin
MySQL数据库: /var/lib/mysql
PHP :     /usr/local/php
Nginx :   /usr/local/nginx
PHPMyAdmin /home/wwwroot/phpmyadmin
Web目录    /home/wwwroot/
添加虚拟主机：
修改/usr/local/nginx/conf/nginx.conf 文件
在
server
 {
  listen  80;
  server_name  status.lnmp.org;
  location / {
   stub_status on;
   access_log   off;
  }
 }
后面添加上下面代码：
server
 {
  listen       80;
  server_name www.lnmp.org;
  index index.html index.htm index.php;
  root  /web/www/abc;
  location ~ .*\.(php&#124;php5)?$
   {
    fastcgi_pass  unix:/tmp/php-cgi.sock;
    #fastcgi_pass  127.0.0.1:9000;
    fastcgi_index index.php;
    include fcgi.conf;
   }
  location ~ .*\.(gif&#124;jpg&#124;jpeg&#124;png&#124;bmp&#124;swf)$
   {
    expires      30d;
   }
  location [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.vpser.net/uploads/2009/08/openlogo-nd-50.png"><img
class="alignnone size-full wp-image-454" title="openlogo-nd-50" src="http://www.vpser.net/uploads/2009/08/openlogo-nd-50.png" alt="openlogo-nd-50" width="50" height="61" /></a><a
href="http://www.vpser.net/uploads/2009/08/debian.png"><img
class="alignnone size-full wp-image-453" title="debian" src="http://www.vpser.net/uploads/2009/08/debian.png" alt="debian" width="179" height="61" /></a>   <a
href="http://www.vpser.net/uploads/2009/08/ubuntu-logo.jpg"><img
class="alignnone size-full wp-image-457" title="ubuntu-logo" src="http://www.vpser.net/uploads/2009/08/ubuntu-logo.jpg" alt="ubuntu-logo" width="208" height="61" /></a></p><p>因为个人原因，LNMP经过几次跳票终于发布了，此次发布的是在Debian或者Ubuntu下的Nginx、PHP、MySQL、phpMyAdmin、Zend一键安装包,可以在VPS、独立主机上轻松的安装LNMP生产环境。</p><p>LNMP V0.3 for Debian/Ubuntu软件版本说明(<strong><span
style="COLOR: #ff0000">2009年11月10日更新</span></strong>)：<br
/> Nginx：0.7.63<br
/> PHP：5.2.10<br
/> MySQL：5.0.51a<br
/> Zend Optimizer ：3.3.9<br
/> eaccelerator：0.9.5.3</p><p>使用说明：(请尽量选用32位，D64位问题已经解决，可以正常使用)<br
/> 如果系统预安装Apahce或你已经安装Apache，请先运行 killall apache2 ，再执行 apt-get remove apache2 ，删除Apache！(此步已经再V0.3新版添加，可以不用操作。)<br
/> 登陆Linux,下载LNMP压缩包，并解压. (一些朋友可能不知道怎么弄，登陆VPS或者主机，</p><p>执行命令 wget <a
href="http://soft.vpser.net/lnmp/lnmp0.3.tar.gz">http://soft.vpser.net/lnmp/lnmp0.3.tar.gz</a> ,将lnmp0.3.tar.gz下载到VPS中，执行 tar zxvf lnmp0.3.tar.gz解压LNMP一键安装包)。<br
/> 执行命令 cd lnmp0.3<br
/> 然后32位系统执行./debian.sh  64位系统执行./debian64bit.sh ，输入要绑定的域名，回车后。程序会自动安装编译Nginx、PHP、MySQL、phpMyAdmin、Zend这几个软件。安装大约10分钟左右需要设置MySQL root用户的密码。<img
title="更多..." src="http://www.vpser.net/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" /></p><p>如果需要安装eaccelerator，执行./eaccelerator.sh 就可以了。</p><p>程序安装路径：<br
/> MySQL :   /usr/bin<br
/> MySQL数据库: /var/lib/mysql<br
/> PHP :     /usr/local/php<br
/> Nginx :   /usr/local/nginx<br
/> PHPMyAdmin /home/wwwroot/phpmyadmin<br
/> Web目录    /home/wwwroot/</p><p>添加虚拟主机：</p><p>修改/usr/local/nginx/conf/nginx.conf 文件</p><p>在</p><p>server<br
/>  {<br
/>   listen  80;<br
/>   server_name  status.lnmp.org;</p><p>  location / {<br
/>    stub_status on;<br
/>    access_log   off;<br
/>   }<br
/>  }</p><p>后面添加上下面代码：</p><p>server<br
/>  {<br
/>   listen       80;<br
/>   server_name <a
href="http://www.lnmp.org/">www.lnmp.org</a>;<br
/>   index index.html index.htm index.php;<br
/>   root  /web/www/abc;</p><p>  location ~ .*\.(php|php5)?$<br
/>    {<br
/>     fastcgi_pass  unix:/tmp/php-cgi.sock;<br
/>     #fastcgi_pass  127.0.0.1:9000;<br
/>     fastcgi_index index.php;<br
/>     include fcgi.conf;<br
/>    }</p><p>  location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$<br
/>    {<br
/>     expires      30d;<br
/>    }</p><p>  location ~ .*\.(js|css)?$<br
/>    {<br
/>     expires      12h;<br
/>    }</p><p>  access_log   off;<br
/>  }</p><p>再执行kill -HUP `cat /usr/local/nginx/logs/nginx.pid`虚拟机就生效了。</p><p>通过下面这几个链接查看phpinfo和管理MySQL<br
/> phpinfo： <a
href="http://domain.name/phpinfo.php">http://domain.name/phpinfo.php</a><br
/> PHP探针：<a
href="http://domain.name/p.php">http://domain.name/p.php</a><br
/> phpMyAdmin：<a
href="http://domain.name/phpmyadmin">http://domain.name/phpmyadmin</a></p><p>此版本为测试版本，已经在<a
href="http://www.diavps.cn/client/aff.php?aff=002" target="_blank">DiaVPS</a>、<a
href="http://rashost.com/vip008" target="_blank">RASHOST</a>、<a
href="http://www.linode.com/?r=8feb8d13729744f394433de7ede23efbbab1205a" target="_blank">Linode</a>、<a
href="http://www.swvps.com/affiliates/jrox.php?id=1106" target="_blank">SWVPS</a>、<a
href="http://thenynocportal.com/aff.php?aff=087" target="_blank">thenynoc.com</a>、<a
href="http://www.vpser.net/go/rapidxen" target="_blank">rapidxen</a>、BoxVPS、VMware Debian最小化安装 上测试成功。</p><p>演示站点：<a
href="http://www.vpser.net/">http://www.vpser.net</a></p><p>QQ交流群：VPS群：7617036   Linux群：12327692</p><p>反馈网址：CentOS/RedHat版 <a
href="http://blog.licess.cn/lnmp/">http://blog.licess.cn/lnmp/</a><br
/> Debian/Ubuntu版 <a
href="http://blog.licess.cn/lnmp-debian-ubuntu/">http://blog.licess.cn/lnmp-debian-ubuntu/</a></p><p>交流论坛： <a
href="http://bbs.vpser.net/">http://bbs.vpser.net</a><br
/> 下载地址：<a
href="http://soft.vpser.net/lnmp/lnmp0.3.tar.gz">http://soft.vpser.net/lnmp/lnmp0.3.tar.gz</a><br
/> <span
style="COLOR: #ff0000">友情提示：Linux下操作请注意大小写。</span></p> ]]></content:encoded> <wfw:commentRss>http://www.vpser.net/build/lnmp-debian-ubuntu.html/feed</wfw:commentRss> <slash:comments>13</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 continue [Y/n]?”
输入 y  回车继续安装
2.1.1 查看MYSQL是否工作.
输入命令
netstat -tap &#124; grep mysql
2.1.2 设置MySql 管理员（root）密码
命令
mysqladmin -u root password 你的密码
如果想把root 密码设置为 anqun 则这样书写
mysqladmin -u root password 1234
2.1.3 使用ROOT帐户登陆MYSQL.
命令
mysql -u root –p
提示输入密码.回车即可成功登陆MYSQL.
 
MySQL安装成功后我们开始安装WWW服务器Lighttpd
2.2.0 安装Lighttpd
安装命令
apt-get [...]]]></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> ]]></content:encoded> <wfw:commentRss>http://www.vpser.net/build/debian-vps-web-server.html/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 7/13 queries in 0.005 seconds using disk

Served from: www.vpser.net @ 2010-07-31 15:18:59 -->