Windows 下 PHP 环境的活动

2012 年 10 月 25 日6130

1. 所需软件环境: 1. apache 2.2 2. active perl 5.8 c:\perl 3. 到底 5.1 必须安在 c:\到底 4. ZendOptimizer-3.0.2 5. 到底环境所需 includes --在 到底 安装之后,无法正常运行时必须的库。 ----------------------------------------------- 2. apache 2.2--

1. 所需软件环境:

1. apache 2.2

2. active perl 5.8 c:\perl

3. 到底 5.1 必须安在 c:\到底

4. ZendOptimizer-3.0.2

5. 到底环境所需 includes --在 到底 安装之后,无法正常运行时必须的库。

-----------------------------------------------

2. apache 2.2--------httpd.conf 文件活动

1. 第133行前面加 #

2. 修改 <IfModule alias_module> </IfModule> 之间

ScriptAlias /cgi-bin/ "D:/Programmes/Server/Apache2.2/cgi-bin/"

<Directory "D:/Programmes/Server/Apache2.2/cgi-bin">

划线部分分别改为 C:/到底/ 和 C:/到底

3. 将 #!c:/program files/perl/perl 改为 #!C:/Perl/bin

4. 在文件末尾添加

ScriptAlias /到底/ "c:/到底/"

AddType application/x-httpd-到底 .到底

# For PHP 4

#Action application/x-httpd-到底 "/到底/到底.exe"

# For PHP 5

Action application/x-httpd-到底 "/到底/到底-cgi.exe"

-------------------------------------------------------------------------------

3. 到底活动细则:

1. 将 c:\到底 加入 学到底 环境变量 path 中

2. 将 includes 拷入 c:\到底\includes

3. 将 到底.ini-dist 改名为 到底.ini

4. 下面是 到底.ini 活动细则:

1. 将 doc_root = 设置为 doc_root = D:\Programmes\Server\Apache2.2\htdocs

2. 将 extension_dir = 设置为 extension_dir = "C:\到底\ext"

3. 将 ;extension=到底_mysql.dll 前面的 ”;” 去掉,改为 extension=到底_mysql.dll

4. 在 ; Windows: "\path1;\path2" 下面 的 include_path = 改为

include_path = ".;c:\到底\includes"

5. 对 [MySQL] 下面进行活动

4. active perl 安装很简单照着指示做就可以 最好安到 c:\perl

5. ZendOptimizer 安装时把 apache 服务器关掉,在过程中要指定 apache 和 到底 的安装路径。

<? 到底info() ?>

0 0