一、准备工作:
1、安装好
2、准备好所需用到的软件,我所用的具体如下:
php(做为现在的主流开发语言) V5.2.1 For Windows
http://www.skycn.com/soft/516.html
MySQL(和PHP搭配之最佳组合) For Windows V5.2 Alpha
http://www.skycn.com/soft/1262.html
php(做为现在的主流开发语言)MyAdmin For
Zend Optimizer V3.2.6 For
php(做为现在的主流开发语言)Wind论坛系统 V5.3
http://www.skycn.com/soft/34201.html
3、系统构建设定:
本例中MySQL(和PHP搭配之最佳组合)系统“root”用户口令为“123456”,论坛数据库名为“MyData”。
如果大家的系统设定与此不同,请注意在相关处自行修改。
另:在所配截图中,请注意鼠标箭头所指。
二、php(做为现在的主流开发语言)安装:
1、将“php(做为现在的主流开发语言) V5.2.1 for (标准化越来越近了):NAMESPACE PREFIX = Windows”安装包直接解压到“F />
2、将“F:MyForumProgphp(做为现在的主流开发语言)”目录下的“php(做为现在的主流开发语言).exe”、“php(做为现在的主流开发语言)-win.exe”及“php(做为现在的主流开发语言).ini-recommended”等三个文件拷贝到“C:WinXP”目录下;将“F:MyForumProgphp(做为现在的主流开发语言)”目录下所有的“.dll”文件拷贝到“C:WinXPsystem32”目录下。我在拷贝时未见有重名提示,如有重名提示就选择覆盖。
另:有些教程上特别提到:“要将‘F:MyForumProgphp(做为现在的主流开发语言)ext’目录下所有的‘.dll’文件也拷贝到‘C:WinXPsystem32’目录下”,我没拷也装成了,但不知道将来在使用过程中会不会有影响。
3、将“C:WinXPphp(做为现在的主流开发语言).ini-recommended”文件改名为“php(做为现在的主流开发语言).ini”,然后用记事本打开编辑。
查找字符串“register_globals = Off”,将“register_globals = Off”改为“register_globals = On”(见下图);
查找字符串“extension_dir =”,将“extension_dir = "."”改为“extension_dir = "F:MyForumProgphp(做为现在的主流开发语言)ext"”(见下图);
Search for the string ";
;extension=php(as the current mainstream development language)_gd2.dll This item is used to support the GD library. It is generally required and must be selected
;extension=php(as the current mainstream development language)_ldap.dll Optional
;extension=php(as the current mainstream development language)_mbstring.dllThis If this option is not selected, use php(as the current mainstream development language)MyAdmin will prompt an error, and must select
;extension=php(as the current mainstream development language) _mssql(Powerful database platform on WINDOWS platform).dll This item is used to support mssql(Powerful database platform on WINDOWS platform) database, optional
; extension=php (as the current mainstream development language)_MySQL(the best combination with PHP).dll This item is used to support MySQL(the best combination with PHP) )Database, required
3. Configure iis (Microsoft's WEB server platform) to support php (as the current mainstream development language) :
1. Running mode selection: php(as the current mainstream development language)There are two running modes: cgi(not many people use it now) and ISAPI . Generally speaking, the cgi (not many people use it now) mode consumes high system resources and is easily unreflected due to timeout, but it is actually safer; while the ISAPI mode has high execution efficiency and consumes system resources Small, strong load capacity, but slightly less safe. This example is about local installation, and the security requirements can be relaxed appropriately. Therefore, the configuration steps are introduced using the ISAPI mode as an example.
2. Double-click "Administrative Tools" in "Control Panel" to run "Internet Information Services", and in the "Internet Information Services" window that pops up, click on the "+" sign on the left step by step. Until the "Default Website" appears; right-click on the "Default Website" and click "Stop" to stop the Web support of iis(Microsoft's WEB server platform) for configuration (see the picture below).
3. Right-click on "Default Website" and click "Properties" (Note: At this time, "Default Website" has become "Default Website (Stop)"), start configuring iis(Microsoft's WEB server platform) (see the picture below).
4. In the "Default Website (Stop) Properties" window that pops up, click "Home Directory" and change " "Local Path" is set to "F:MyForumProgMyBBS" (see the picture below);
Note: "Execute permissions" in the "Application Settings" column "The item should be "Pure Script" (default option, see the picture below);
Then, click the "Configure" button on the right (See picture below);