WinXP+Apache+PHP5+MySQL5+Zend+GD库+phpMyAdmin+PHPWind 5.3 本机安全优化安装

 在《WindowsXP+IIS+PHP5+MySQL5+Zend+GD库+phpMyAdmin+PHPWind 5.3 本机安装》一帖中,首先解决了最基本的论坛安装问题;在这一帖中,则要进一步解决如何安全地装好论坛的问题——即打造一个相对安全的论坛。不知道大家的感觉如何,反正我挂在网上的时候,心底里总还是不时浮现出一丝不安。

  有必要事先说明一点:千万不要以为服务器的安全设置可有可无,也千万不要以为你能把服务器设置得滴水不漏;而且Windows XP本来就不是用来支持服务器的,在安全性上自然也比不上专用的服务器版操作系统。不过,我们可以进行一些必要的安全设置,这也许防不住黑客高手,但至少可以防止那些小毛贼轻松地就把你的服务器变成传说中的“肉鸡”。这么说吧,如果不进行必要的安全设置,其直接结果就是——你的服务器在网上裸奔。^-^

一、准备工作:
  1、安装好Windows XP,最好能进行一些必要的优化调整。如果不太熟悉的话,可以在网上找一些相关的文章看看,应该会很多的,这里就不再多说了。如果你还没自己装过Windows XP,那么建议先熟悉一下Windows XP的安装过程以及计算机方面的基础知识,否则看下去会比较吃力。

  2、准备好所需用到的软件,我所用的具体如下:
    Apache HTTP Server For Windows V2.2.4——(apache_2.2.4-win32-x86-no_ssl.zip  4343 KB)
    http://www.skycn.com/soft/1218.html

    PHP V5.2.1 For Windows——(php-5.2.1-Win32.zip  9616 KB)
    http://www.skycn.com/soft/516.html

    MySQL For Windows V5.2 Alpha——(mysql-5.2.0-falcon-alpha-win32.zip  36943 KB)
    http://www.skycn.com/soft/1262.html

    PHPMyAdmin For Windows V2.10.2——(phpMyAdmin-2.10.2-all-languages.zip  4254 KB)
    http://www.skycn.com/soft/17470.html

    Zend Optimizer V3.2.6 For Windows——(ZendOptimizer-3.2.6-Windows-i386.zip  8735 KB)
    http://www.skycn.com/soft/20133.html

    PHPWind论坛系统 V5.3——(PHPWind_GBK_5.3.zip  1728 KB)
    http://www.skycn.com/soft/34201.html

  3、本例中系统架构的约定:
  Windows XP 安装在“C:\WinXP”目录下;建坛所需用到的软件均安装在“F:\MyForumProg”目录下,Apache的虚拟根目录为“F:\MyForumProg\MyBBS”,论坛程序安装在“F:\MyForumProg\MyBBS\upload”目录下。
  如果大家的系统架构设定与此不同,请注意在相关处自行修改。

  MySQL系统“root”用户口令为“123456”,论坛数据库名为“MyData”。
  注意:在本例中,还会有其他用户的口令也取为“123456”,但这仅仅是为了方便说明;从安全的角度出发,各用户的口令均应采用8位以上的数字、字符混合形式。在实际应用时请大家自行修改,切记,切记!!!

  另:在所配截图中,请注意鼠标箭头所指。


二、Windows XP中的安全设置:
  有关Windows XP的安全设置内容很多,限于篇幅和水平,在这里就只挑主要的简单讲几条,以实用为主,解释为辅。有兴趣深入探索的朋友,可以自己在网上找些相关的文章看看。

  1、在Windows XP中,NTFS文件系统相对于FAT32文件系统来说,安全性和强壮性都更高。因此,至少在系统分区(C:)和安装论坛程序的分区(F:)都应该采用NTFS文件系统格式。
  注:如果相应的分区不是NTFS文件系统格式,个人不建议使用格式转换;建议用NTFS格式重新格式化分区,也许可以避免一些不必要的麻烦。

  2、在Windows XP默认启用的“简单文件共享”模式下,任何用户都可以轻易地获取共享资源,安全性不高。因此,应取消“简单文件共享”模式的使用,以便对共享资源进行具体的权限设置。
  2.1、打开“我的电脑”,在上部的“工具”项中点选“文件夹选项”;在随后弹出的“文件夹选项”窗口中点选“查看”项,取消对“使用简单文件共享(推荐)”的勾选,再点窗口下方的“应用”按钮(见下图)。


  2.2、然后,点窗口中部的“应用到所有文件夹”按钮(见下图)。


  2.3、在随后弹出的“文件夹视图”窗口中点选“是”按钮(见下图)。


  2.4、返回“文件夹选项”窗口后,点窗口下方的“确定”按钮退出。

  3、禁用LSA枚举帐号:LSA枚举可使远程用户能够得到系统中的所有用户名并进行密码破解。
  3.1、在“控制面板”的“管理工具”中双击运行“本地安全策略”,在随后弹出的“本地安全设置”窗口中点开“本地策略”下的“安全选项”,并在右侧窗口中找到“网络访问:不允许SAM帐户和共享的匿名枚举”项,其默认设置为“已停用”(见下图)。

  3.2、双击进入“网络访问:不允许SAM帐户和共享的匿名枚举  属性”窗口并点选“已启用”,再点窗口下方的“确定”按钮(见下图)。


  3.3、在随后弹出的“确认设置修改”窗口中,点选“是”按钮确认设置修改(见下图)。


  3.4、返回“本地安全设置”窗口后,可以看到“网络访问:不允许SAM帐户和共享的匿名枚举”项已被设置为“已启用”(见下图)。



  4、按类似方式修改右侧窗口中最下方的“帐户:重命名来宾帐户”和“帐户:重命名系统管理员帐户”两项(见下图),完成后关闭“本地安全设置”窗口。



  5、如果不嫌麻烦的话,重启登录后还可以创建一个没有权限的陷阱管理员帐户“Administrator”,并为其设置一个超长的复杂密码,让那些别有用心的人慢慢猜去吧。^-^
  5.1、在“控制面板”的“用户帐户”中点“创建一个新帐户”(见下图)。
  注意:在这里可以看到系统中的管理员帐户、来宾帐户均为上一步所修改的内容,且来宾帐户未被启用。

  5.2、在随后弹出的“为新帐户起名”窗口中输入帐户名“Administrator”后,点下方的“下一步”按钮继续(见下图)。


  5.3、由于“Administrator”帐户为系统默认的管理员帐户,故此时无法为其选择帐户类型,直接点下方的“创建帐户”按钮继续(见下图)。


  5.4、帐户创建完成后,可以看到系统中增加了“Administrator”这个管理员帐户,此时点选“Administrator”帐户(见下图)。


  5.5、在随后弹出的窗口中点“创建密码”项(见下图)。


  5.6、两次输入一个超强密码及提示短语后点下方的“创建密码”按钮继续(见下图),完成后关闭“用户帐户”窗口。


  5.7、在“控制面板”的“管理工具”中双击运行“计算机管理”,在“计算机管理”窗口中逐级点开“本地用户和组”下的“用户”项,找到帐户“Administrator”,并右击点选其“属性”项(见下图)。


  5.8、在“Administrator 属性”窗口中的“隶属于”标签下,选定所有的组名并点下方的“删除”按钮(见下图),将帐户“Administrator”从所有的用户组中删除,再点“确定”按钮退出“Administrator 属性”窗口。


  5.9、如果想验证处理结果,可在“组”中查看相应的用户组属性,检查“Administrator”帐户是否还包含其中;且在“控制面板”的“用户帐户”中,“Administrator”帐户也将不再显示。
  如此这般处理后,“Administrator”帐户在系统中默认将没有任何权限,除非管理员单独为其再分配权限。

  6、此外,还有诸如关闭未使用端口,定期下载安装Windows XP安全补丁,安装放火墙(必须开放Web服务用的TCP 80端口)、防范病毒及恶意软件的工具软件等常规安全措施值得注意。


三、PHP的安装及安全设置:
  1、将“PHP V5.2.1 For Windows”安装包中的所有文件直接解压到“F:\MyForumProg\PHP”目录下(见下图)。当然,也可以将安装包解压到其它目录,然后改名为“PHP”再移动到“F:\MyForumProg”目录下。
  注意:如果操作正确的话,在“F:\MyForumProg\PHP”目录下应该能看到“php.exe”文件。


  2、将“F:\MyForumProg\PHP”目录下的“php.exe”、“php-win.exe”及“php.ini-recommended”等三个文件拷贝到“C:\WinXP”目录下;将“F:\MyForumProg\PHP”目录下所有的“.dll”文件拷贝到“C:\WinXP\system32”目录下。我在操作时未见有重名提示,如有重名提示就选择覆盖。
  另:有些教程上特别提到:“要将‘F:\MyForumProg\PHP\ext’目录下所有的‘.dll’文件也拷贝到‘C:\WinXP\system32’目录下”,我没拷也装成了,但不知道将来在使用过程中会不会有影响。

  3、PHP的基本配置:将“C:\WinXP\php.ini-recommended”文件改名为“php.ini”,然后用记事本打开编辑。
  3.1、查找字符串“extension_dir =”,将“extension_dir = ".\"”改为“extension_dir = "F:\MyForumProg\PHP\ext"”(见下图)。

  3.2、查找字符串“; Windows Extensions”,将下列各行行首的分号(;)去掉(见下图)。
    ;extension=php_dbase.dll    可选
    ;extension=php_gd2.dll     此项用以支持GD库的,一般需要,必选
    ;extension=php_ldap.dll     可选
    ;extension=php_mbstring.dll   此项不选则使用PHPMyAdmin会提示错误,必选
    ;extension=php_mcrypt.dll    此项不选则使用PHPMyAdmin会提示错误,必选
    ;extension=php_mssql.dll    此项用以支持MSSQL数据库,可选
    ;extension=php_mysql.dll    此项用以支持MySQL数据库,必选

  
至此,PHP安装及基本的配置工作已经完成,如保存文件退出,PHP就可以正常使用了。

  4、PHP的安全设置:为了提高PHP的安全性,还需要接着对PHP进行一些安全设置,编辑调整下列各项参数的设置。
  4.1、safe_mode = On:其默认值为“Off”,开启此参数(见下图)能够限制PHP中一些涉及安全的函数(如“system()”),并对一些文件相关的函数进行权限控制,不允许PHP程序访问某些关键位置的文件。



  4.2、safe_mode_gid = Off:其默认值即为“Off”,但还是检查一下为好;这是因为开启了“safe_mode = On”参数后,如果此参数也被开启的话,PHP脚本可能无法正常操作网站目录下的文件,因此必须将其设置为“Off”(见下图)。



  4.3、safe_mode_exec_dir = "F:\MyForumProg\MyBBS":此参数设置PHP在调用执行程序命令时所查找的目录,应将其限定在网站目录下(见下图)。



  4.4、open_basedir = "F:\MyForumProg\MyBBS;C:\Documents and Settings\apache\Local Settings\Temp":此参数设置PHP进行文件操作的目录范围,尽量将其限定在网站目录下(见下图)。
  注:“C:\Documents and Settings\apache\Local Settings\Temp”目录是以后运行PHPMyAdmin程序要用到的。



  4.5、disable_functions = system,passthru,exec,shell_exec,popen,phpinfo:此参数用来设置禁用的PHP函数,这些PHP函数要么是暴露系统的重要信息,要么可被利用来直接入侵,自然要封杀掉(见下图)。
  注意:其中的phpinfo函数在论坛安装过程中会被用到,建议论坛安装完成后再封掉。



  4.6、expose_php = Off:HTTP信息头部中会包含PHP的版本信息,有可能会被利用来发现针对服务器的溢出攻击方法,因此还是让PHP“闭嘴”吧(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0705/22_1077608_7a6ab06ca0604ae.jpg');" src="http://img.phpwind.net/attachout/Mon_0705/22_1077608_7a6ab06ca0604ae.jpg" onload="if(this.width>'660')this.width='660';" border=0>


  4.7、register_globals = Off:禁用全局变量,这样可以确保PHP程序在传递变量时不被截获(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0705/22_1077608_51b3481f66391f4.jpg');" src="http://img.phpwind.net/attachout/Mon_0705/22_1077608_51b3481f66391f4.jpg" onload="if(this.width>'660')this.width='660';" border=0>


  4.8、magic_quotes_gpc = On:开启此变量(见下图)会对用户提交的SQL查询进行转义,可以非常显著地减少SQL注入,避免对数据库构成威胁。

=660) window.open('http://img.phpwind.net/attachout/Mon_0705/22_1077608_926ed34ab77998c.jpg');" src="http://img.phpwind.net/attachout/Mon_0705/22_1077608_926ed34ab77998c.jpg" onload="if(this.width>'660')this.width='660';" border=0>


  4.9、display_errors = Off:此参数用来设置是否显示PHP错误。黑客攻击前一般都会向PHP程序提交一些错误的数据,通过网页返回的错误信息来获得目录位置、服务器版本及其他一些重要信息,因此应将此参数设置为“Off”(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0705/22_1077608_d3f06b1f546d2f3.jpg');" src="http://img.phpwind.net/attachout/Mon_0705/22_1077608_d3f06b1f546d2f3.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  最后,保存文件退出,PHP至此全部配置完毕。


四、Apache的安装及设置:
  1、Apache的安装:
  1.1、将“Apache HTTP Server For Windows V2.2.4”安装包解压,双击运行“apache_2.2.4-win32-x86-no_ssl.msi”后点“Next”按钮开始安装(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_2526b906dcc831f.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_2526b906dcc831f.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.2、点选“I accept ......”项后点“Next”按钮继续(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_3e72b9c20aa0960.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_3e72b9c20aa0960.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_7d40d0643f4220f.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_7d40d0643f4220f.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.3、随后弹出的“Server Information”窗口中要求填写网站的域名信息,没有的话可以随便填。此处假设服务器名为“www.myforum.com”,填写好后点“Next”按钮继续(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_e702fb3534681ef.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_e702fb3534681ef.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.4、点选“Typical”项设置典型安装后点“Next”按钮继续(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_0f5177cee238073.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_0f5177cee238073.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.5、点选“Change...”按钮将安装路径更改为“F:\MyForumProg\Apache2.2\”后点“Next”按钮继续(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_3af308694d695ff.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_3af308694d695ff.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_c323f23c5cb82ae.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_c323f23c5cb82ae.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.6、收集完必要的信息后,点“Install”按钮即开始安装(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_8331eeda99fc9ab.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_8331eeda99fc9ab.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_d8e626b9d49eae1.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_d8e626b9d49eae1.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.7、如果机器里装有防火墙的话,在安装过程中可能会弹出网络访问请求,此时应予以放行(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_97b19f97af99f9f.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_97b19f97af99f9f.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.8、最后,点下方的“Finish”按钮完成Apache的安装(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_373d37e00bf9b19.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_373d37e00bf9b19.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.9、随后,在桌面右下角的系统托盘中会出现一个Apache的图标(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_40930ef814f6ae5.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_40930ef814f6ae5.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  1.10、在浏览器中打开:http://localhost/,如能看到以下画面(见下图),则说明Apache安装成功了。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_297189948fb2a2e.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_297189948fb2a2e.jpg" onload="if(this.width>'660')this.width='660';" border=0>


  2、配置Apache以支持PHP:
  2.1、用记事本打开并编辑Apache的配置文件“F:\MyForumProg\Apache2.2\conf\httpd.conf”,查找字符串“#LoadModule ssl”,在其后加入一行“LoadModule php5_module F:/MyForumProg/PHP/php5apache2_2.dll”(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_23b80e4fa99891a.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_23b80e4fa99891a.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.2、查找字符串“DocumentRoot "”,将其设置为我们设定的Apache虚拟根目录为“F:\MyForumProg\MyBBS”(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_07d322435a33986.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_07d322435a33986.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.3、查找字符串“<Directory "”,将其也设置为我们设定的Apache虚拟根目录为“F:\MyForumProg\MyBBS”(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_56f54a0db6cd93f.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_56f54a0db6cd93f.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.4、查找字符串“DirectoryIndex index.html”,将其修改为“DirectoryIndex index.php index.html”(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_1f8b5bdb377b8d2.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_1f8b5bdb377b8d2.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.5、查找字符串“AddType application/x-gzip”,在其后加入一行“AddType application/x-httpd-php .php”(见下图);然后,保存文件并退出。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_c6d85855b9d0c82.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_c6d85855b9d0c82.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  至此,Apache的基本配置工作已经完成。

  2.6.1、为了验证配置文件修改的正确性,可右击桌面右下角系统托盘中的Apache图标,点选“Open Apache Monitor”项(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_cc9a4fbe7b27950.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_cc9a4fbe7b27950.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.6.2、在随后弹出的“Apache Service Monitor”窗口中,点击“Restart”按钮,如果提示“The Apache2 Service has restarted.”,则说明Apache服务在修改后的配置下重启成功(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_b2d9648fe15c12b.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_b2d9648fe15c12b.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_9800fa2d52e2c51.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_9800fa2d52e2c51.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.7、为了验证Apache对PHP的支持,可在Apache的虚拟根目录(F:\MyForumProg\MyBBS)下创建一个名为“phpinfo.php”的文件,内容如下:
    <?php
    phpinfo();
    ?>
  在浏览器中打开:http://localhost/phpinfo.php,如能看到当前服务器所支持PHP的全部信息(见下图),则说明Apache对PHP的支持配置成功了。注意:“Server API”的模式为“Apache 2.0 Handler ”。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_6e4a1cb8a7a14be.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_6e4a1cb8a7a14be.jpg" onload="if(this.width>'660')this.width='660';" border=0>


  3、创建低权限用户启动Apache服务,以提高安全性:
  3.1、在“开始”的“运行”中执行“cmd”命令进入命令行状态,然后执行如下命令(见下图):
   net user apache 123456 /add      # 创建一个名为“apache”、密码为“123456”的用户
   net localgroup users apache /del     # 将用户“apache”从所有的用户组中删除
   exit                  # 退出命令行状态
  当然,也可以参考前面创建陷阱管理员帐户“Administrator”的方法在图形界面上完成,只不过用命令行的方式更加简捷。如果想验证结果的话,可以在“控制面板”的“管理工具”中双击运行“计算机管理”,在“计算机管理”窗口中逐级点开“本地用户和组”下的“用户”项,找到帐户“apache”,并右击点选其“属性”项中的“隶属于”标签,其内容如果为空就表示结果正确。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_c9226798bbd0f9c.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_c9226798bbd0f9c.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.2、在“控制面板”的“管理工具”中双击运行“服务”,在“服务”窗口中找到名为“apache2”的服务项,并右击点选其“属性”项(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_5926198a6348752.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_5926198a6348752.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.3、在“Apache2的属性”窗口的“登录”项中,点选“此帐户”后填写帐户名“apache”及其密码“123456”,然后一直点“确定”按钮退出(见下图)并关闭“服务”窗口。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_c8edf52a8a85923.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_c8edf52a8a85923.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_ee4309dc041d2cf.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_ee4309dc041d2cf.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_82d8c1c424e69c6.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_82d8c1c424e69c6.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.4、由于帐户“apache”不隶属于任何用户组,在默认情况下是没有文件操作权限的,因此还必须为其分配相关的文件操作权限。
  3.4.1、在“我的电脑”中进入目录“F:\MyForumProg”,右击“Apache2.2”文件夹并点选“属性”项(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_92dd5099c3f4705.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_92dd5099c3f4705.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.4.2、在随后弹出的“Apache2.2 属性”窗口中,点击“添加”按钮(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_812c5602a7cb01a.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_812c5602a7cb01a.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.4.3、在随后弹出的“选择用户或组”窗口中,依次点击“高级”、“立即查找”按钮,选定查找到的“apache”帐户后,一路点“确定”按钮退出“选择用户或组”窗口(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_8c074458104f5bd.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_8c074458104f5bd.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_691b6f22745ec07.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_691b6f22745ec07.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_cbaf004ad2fc55a.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_cbaf004ad2fc55a.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_87f5ec61f696566.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_87f5ec61f696566.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.4.4、回到“Apache2.2 属性”窗口后,点选“apache”帐户,将其权限设置为“完全控制”,然后点“高级”按钮进入“Apache2.2的高级安全设置”(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_cd7ce815079dfc4.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_cd7ce815079dfc4.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.4.5、进入“Apache2.2的高级安全设置”窗口后,勾选“”项并点“确定”按钮;在弹出的安全提示界面点“是”继续(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_66fbefd00033ad4.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_66fbefd00033ad4.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.4.6、设置完成后,在“Apache2.2 属性”窗口中点“确定”按钮退出(见下图)。此时,Apache服务就应该可以由低权限用户“apache”来启动运行了。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_2c697bb907df27a.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_2c697bb907df27a.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.4.7、此时,我们不妨顺手按照上述方法给“apache”帐户赋予Apache的虚拟根目录(F:\MyForumProg\MyBBS)的“完全控制”权限。注意:这一步是必做的!

  3.5、为了验证Apache服务的启动状况,可以在“控制面板”的“管理工具”中双击运行“服务”,在“服务”窗口中找到“apache2”服务,并右击进入其“属性”窗口。
  3.5.1、在“常规”项中可以看到“服务状态”栏为“已启动”,点“停止”按钮停止当前“apache2”服务(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_de71080cf2a3fce.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_de71080cf2a3fce.jpg" onload="if(this.width>'660')this.width='660';" border=0>
 
  3.5.2、当“服务状态”栏变为“已停止”后,点“启动”按钮来重新启动“apache2”服务(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_f9b4b4e070a2edf.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_f9b4b4e070a2edf.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.5.3、如果“apache2”服务重新启动正常的话,“服务状态”栏应该变回为“已启动”;此时,可以点“确定”按钮退出“Apache2的属性”窗口(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_f5ec92c69ea1ede.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_f5ec92c69ea1ede.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.5.4、回到“服务”窗口后,我们可以注意到“apache2”服务的“登录为”项是显示为“.\apache”的(见下图),这表明“apache2”服务现在已是由低权限用户“apache”来启动运行的了。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_506cbc18f5e2ef8.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_506cbc18f5e2ef8.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  3.5.5、当然,你也可以直接重启计算机,然后进入“服务”窗口查看一下“apache2”服务的“状态”和“登录为”项的显示内容,如同上图所示就说明OK了。


五、安装 MySQL:
  1、将“MySQL for Windows V5.2 Alpha”安装包解压并双击运行“Setup.exe”后点“Next”按钮开始安装(见下图)。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_b5f72c87de3335a.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_b5f72c87de3335a.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  在“Setup Type”中应点选“Custom”以便更改安装路径后点“Next”按钮继续(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_128cda6ece6a24e.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_128cda6ece6a24e.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  在“Custom Setup”中点选“Change...”按钮将安装路径更改为“F:\MyForumProg\MySQL Server 5.2\”后点“Next”按钮继续(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_d8e635f64e4cc96.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_d8e635f64e4cc96.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_c52b8ebcef0b74e.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_c52b8ebcef0b74e.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_af5bc89ed7b245d.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_af5bc89ed7b245d.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  收集完必要的信息后,点“Install”按钮即开始安装(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_df757ec3dabe902.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_df757ec3dabe902.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_6b87a1618b298d0.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_6b87a1618b298d0.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  在随后出现的“MySQL.com Sign-UP”窗口中,点选下方的“Skip Sign-UP”后点“Next”按钮继续(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_6b9ad804db58bad.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_6b9ad804db58bad.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  至此,MySQL 5.2的安装已经完成,勾选“Configure the MySQL Server now”项以便随后进行MySQL Server的配置,然后点“Finish”按钮完成安装过程(见下图)。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_593ec61cf5aaf92.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_593ec61cf5aaf92.jpg" onload="if(this.width>'660')this.width='660';" border=0>


  2、随后即会自动进入MySQL Server 配置界面,点“Next”按钮继续(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_18aac051c7b1075.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_18aac051c7b1075.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  点选“Standard Configuration”后点“Next”按钮继续(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_55aee534a31899b.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_55aee534a31899b.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  勾选“Install As Windows Service”项(以Windows服务方式自动运行)后点“Next”按钮继续(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_2321e443bc0d3ee.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_2321e443bc0d3ee.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  随后设置“root”用户口令(本例中为“123456”),并确认没有勾选“Enable root access from remote machines”项(允许远程主机以root权限访问)后点“Next”按钮继续(见下图);
  注意:“root”用户的口令千万别忘了,否则得卸载MySQL,并清理干净注册表中的相关项后,才能重装恢复!
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_d9996351589e067.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_d9996351589e067.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  最后点下方的“Execute”按钮开始运行配置程序(见下图)。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_22df6f5d39d9401.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_22df6f5d39d9401.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  如果机器里装有防火墙的话,运行到第三项“Start service”时,会弹出网络访问请求,此时应予放行(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_7830e4b583c52d3.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_7830e4b583c52d3.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_57eea7abf6c4137.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_57eea7abf6c4137.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  注意:如果顺手选择了拒绝放行,将会出现如下错误提示(见下图);此时只能点“Skip”按钮退出MySQL安装程序,然后在防火墙程序中删除或编辑拒绝放行的相关访问规则,并在卸载MySQL程序后重新安装。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_db2e1f208e05273.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_db2e1f208e05273.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  运行结束即完成MySQL Server的配置,点“Finish”退出(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_9d837b607b80d5b.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_9d837b607b80d5b.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  至此,MySQL数据库系统的安装及配置过程就全部完成了。也就是说,MySQL数据库系统现在已经可以使用了,但是。。。。。。

  3、创建低权限用户启动MySQL服务,以提高安全性:
  在这里我们要创建一个名为“mysql”的低权限用户,并给其分配MySQL安装目录“F:\MyForumProg\MySQL Server 5.2\”的“完全控制”权限,使其能启动MySQL服务(见下图)。整个的操作过程与前述创建低权限用户启动Apache服务类似,这里就不再重复了。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_03c420d3cc6cd8e.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_03c420d3cc6cd8e.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>



六、安装 Zend Optimizer :
  1、将“Zend Optimizer V3.2.6 For Windows”安装包解压并双击运行安装程序(见下图);

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_34118febcb42059.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_34118febcb42059.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2、在“Choose Destination Folder”画面将安装路径更改为“F:\MyForumProg\ZendOptimizer”后点“Next”按钮继续(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_b243504551a907f.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_b243504551a907f.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_0a27f7089bacd92.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_0a27f7089bacd92.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  3、在“Choose Web server”画面点选“Apache 2.x”(千万别选错了)后点“Next”按钮继续(见下图);

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_ba4b9f17bc83e81.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_ba4b9f17bc83e81.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  4、在“Choose the php.ini folder”画面定位“php.ini”的安装路径“C:\WinXP”后点“Next”按钮继续(见下图)。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_4f92233b780d07f.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_4f92233b780d07f.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  5、在“Choose the Web server's root folder”画面定位Apache程序的安装目录“F:\MyForumProg\Apache2.2”后点“Next”按钮继续(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_c1d403a36ed19e0.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_c1d403a36ed19e0.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  6、在“Pre-Install Summary”画面点下方的“Install”按钮开始安装(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_45c44b6005ed022.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_45c44b6005ed022.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  7、在安装过程中,会出现“Web Server Restart”的确认请求,点“是”继续;随后,将先后出现Web Server停止和启动的提示信息(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_96f4b88a0681ade.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_96f4b88a0681ade.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  8、安装完成后点下方的“Finish”按钮退出安装程序(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_52e813836f851fa.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_52e813836f851fa.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  9、此时可在浏览器中打开:http://localhost/phpinfo.php,注意对比一下安装前后“Zend Engine”处显示信息的差异的(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_0127979ce973ab0.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_0127979ce973ab0.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_9f8afac0102f06c.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_9f8afac0102f06c.jpg" onload="if(this.width>'660')this.width='660';" border=0>


 
七、安装GD库:
  在前面配置“php.ini”文件时其实已经打开了GD库支持(即去掉“;extension=php_gd2.dll”行首的“;”),可在浏览器中打开:http://localhost/phpinfo.php,查看“GD Support”项的状态,正确的话应该是“Enable”(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_fe1ad402b37de40.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_fe1ad402b37de40.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  如果“GD Support”项状态不对的话,该怎么处理就不用我再多说了吧。:)


八、安装PHPMyAdmin:
  1、将“PHPMyAdmin V2.10.2”安装包直接解压到“F:\MyForumProg\MyBBS\PHPMyAdmin”目录下(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_e128a6915794083.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_e128a6915794083.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2、将“F:\MyForumProg\MyBBS\PHPMyAdmin\libraries”目录下的“config.default.php”文件拷贝到“F:\MyForumProg\MyBBS\PHPMyAdmin”目录下,并改名为“config.inc.php”,然后用记事本打开编辑。
  2.1、查找字符串“$cfg['PmaAbsoluteUri']”,将其值设置为PHPMyAdmin的URL:http://localhost/PHPMyAdmin/(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_0def0ec9b61a914.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_0def0ec9b61a914.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.2、查找字符串“$cfg['blowfish_secret']”,此变量设置的是cookie加密密钥,随便输几个字符就可以了(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_376c4a11c95ee24.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_376c4a11c95ee24.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.3、查找字符串“$cfg['Servers'][$i]['host']”,将其值设置为“localhost”(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_6c56debf47e5703.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_6c56debf47e5703.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.4、查找字符串“$cfg['Servers'][$i]['auth_type']”,其值默认为“config”,一般用于本机调试,存在一定的安全隐患,建议将其值设置为“cookie”(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_c3af3ee7ea4f340.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_c3af3ee7ea4f340.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.5、查找字符串“$cfg['Servers'][$i]['password']”,将其值设置为MySQL系统“root”用户口令“123456”(见下图);
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_17bb56f1b2c91b9.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_17bb56f1b2c91b9.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3、最后,保存文件退出,PHPMyAdmin至此已安装、配置完毕。建议重启计算机,在浏览器中打开:http://localhost/PHPMyAdmin/,应该可以看到下图画面。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_8e9719e4056e36b.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_8e9719e4056e36b.jpg" onload="if(this.width>'660')this.width='660';" border=0>



九、使用PHPMyAdmin构建数据库:
  1、在 http://localhost/PHPMyAdmin/ 页面中输入“root”用户的口令“123456”,即可进入PHPMyAdmin操作MySQL数据库(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_bd677c86c2200e1.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_bd677c86c2200e1.jpg" onload="if(this.width>'660')this.width='660';" border=0>

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_ab11fe1aba8a663.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_ab11fe1aba8a663.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  2、MySql默认指向的用户数据库为“test”库,为规范管理起见,应将“test”库删除。
  2.1、点开左侧的数据库选择框,点选“test(0)”数据库(见下图);

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_7fb661dc2eb54a2.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_7fb661dc2eb54a2.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.2、在右侧的操作区点“删除”按钮,并在随后弹出的确认窗口点“确定”按钮以确认删除(见下图);

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_3d2ea1c0d23aa6d.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_3d2ea1c0d23aa6d.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  2.3、操作返回后,在右侧操作区顶端可见“数据库'test'已被删除。”的结果提示(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_970962727f11846.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_970962727f11846.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3、创建一个论坛专用的数据库。
  3.1、在“创建一个新的数据库”提示下面的编辑框内输入论坛专用数据库的库名“MyData”,然后点“创建”按钮新建数据库(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_161ae05101c82d5.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_161ae05101c82d5.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  3.2、操作返回后,在右侧操作区顶端可见“数据库 MyData 已建立。”的结果提示(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_26c9060583305db.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_26c9060583305db.jpg" width=660 onload="if(this.width>'660')this.width='660';" border=0>

  4、点左侧绿色的“Exit”按钮退出PHPMyAdmin操作界面并关闭窗口(见下图)。

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_92e5e6bdcb0a994.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_92e5e6bdcb0a994.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  注意:在进行数据库操作时,可能会弹出如下错误提示,输入正确的密码后点“执行”按钮即可(见下图)!

=660) window.open('http://img.phpwind.net/attachout/Mon_0708/22_1077608_6a2e3dd739f6e1f.jpg');" src="http://img.phpwind.net/attachout/Mon_0708/22_1077608_6a2e3dd739f6e1f.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  OK,论坛安装所需的准备工作至此已全部完成,下面可以开始论坛程序的安装、配置了。


十、“PHPWind论坛系统 V5.3 正式版”的安装、配置:
  1、将“PHPWind论坛系统 V5.3 正式版”的安装包解压,然后“复制”其中的“upload”文件夹“粘贴”到Apache的虚拟根目录(F:\MyForumProg\MyBBS)下,并将目录“F:\MyForumProg\MyBBS”设置为共享。

  2、在浏览器中打开:http://localhost/upload/install.php,可以看到PHPWind论坛系统相关的版权、责任声明;很显然,要想继续走下去,在这里就只有点“同意”按钮了(见下图)。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_32d545eb1f54301.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_32d545eb1f54301.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.1、在随后出现的页面上半部,可看到相关目录及文件的可写性测试结果(见下图);不用说,这里应该全为“OK”才行。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_86f0251aad05fd4.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_86f0251aad05fd4.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  3.2、在页面的下半部设置好论坛数据库服务器配置资料及论坛创始人资料等信息后,点下方的“开始安装”按钮继续(见下图)。
  注意:如未将目录“F:\MyForumProg\MyBBS”设置为共享,在接下来的安装过程中会出现错误提示。理论上讲,只需将“F:\MyForumProg\MyBBS\upload”下的某几个目录设置为共享就可以安装了,但为了图方便就没有具体去试,有兴趣的朋友可以试一下。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_c09c2ad8eefeb14.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_c09c2ad8eefeb14.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  4、在随后出现的页面上半部,可以看到刚才设置论坛数据库服务器配置资料及论坛创始人资料的操作结果;至于页面下半部的论坛营销、推广设置,由于是本机安装,可以全部取消;设置好后,点下方的“继续安装”按钮继续安装(见下图)。
  建议:为了熟悉论坛营销、推广的相关操作,可以将其都安装起来,反正对于目前主流配置的机器来说,这点儿资源消耗实在是算不了什么。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_90123d9968d3549.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_90123d9968d3549.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  5、如果你能看到接下来的这个页面,那么恭喜你,论坛安装成功!
  在页面下半部提示了你的网站及论坛URL为:http://localhost/upload(见下图),点下方的“完成安装”按钮继续。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_2337d95d27dbfd5.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_2337d95d27dbfd5.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  6、在随后出现的页面中,点下方的“...进入管理面板...”链接(见下图),可直接转到论坛管理员登陆页面:http://localhost/upload/admin.php
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_16d9ce256ec8797.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_16d9ce256ec8797.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  7、在论坛管理员登陆页面(http://localhost/upload/admin.php)中,正确输入刚才设置的论坛创始人ID及密码(见下图),即可进入论坛后台,开始对论坛的相关内容进行设置。
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_2a7a1fb9302e9f9.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_2a7a1fb9302e9f9.jpg" onload="if(this.width>'660')this.width='660';" border=0>

  8、如果想先睹为快的话,可以在浏览器中打开:http://localhost/upload/index.php(见下图),看到PHPWind forums的靓丽图标了吗?
=660) window.open('http://img.phpwind.net/attachout/Mon_0703/22_1077608_fad84133079fab8.jpg');" src="http://img.phpwind.net/attachout/Mon_0703/22_1077608_fad84133079fab8.jpg" onload="if(this.width>'660')this.width='660';" border=0>


  到此,整个论坛已搭建完毕,剩下的就是慢慢地过你的坛主瘾了!!! 

posted on 2007-09-11 09:09  msczhu  阅读(1524)  评论(0编辑  收藏  举报

导航