(1)Apache 安装步骤: ① 安装 Apache 软件 ② 配置 Apache 的 httpdf ③ 设置网站访问端口号: Listen 8080 ④ 设置网站的根目录:DocumentRoot “页面代码工作目录”
⑤This should be changed to whatever you set DocumentRoot to.
website? trunk SRC TMD-HC> ⑥追加配置 # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .html ⑦配置 Apache 的 httpdf 文件加载 php 模块,在文件最末尾添加如下语句: PHPIniDir "PHP 的安装目录"——指定 PHP.ini 的存放目录 LoadModule php5_module "PHP 安装目录/php5apache2_2.dll" ——加载 PHP 模块 ************************************ PHPIniDir "C:/Program Files/PHP5" LoadModule php5_module "C:/Program Files/PHP5/php5apache2_2.dll" ************************************ ⑧ 配置 index.php 为目录默认访问页 在中添加代码——DirectoryIndex index.php “页面代码工作目录” 路径是反斜杠
(2)PHP 安装步骤: ① 安装 PHP 软件 ② 配置 PHP.ini 开启 Mysql 模块:将 extension=php_mysql.dll 前的;去掉 开启 PHP 画图模块:将 extension=php_gd2.dll 前的;去掉 设置 extension_dir = "C:/Program Files/PHP5/ext" PHP 安装目录下的 ext
在php根目录找到这两个文件, 复制 libeay32.dll 和 ssleay32.dll到/windows/system32/, 终于 搞定,phpinfo出现如下信息: cURL support enabled cURL Information libcurl/7.16.0 OpenSSL/0.9.8e zlib/1.2.3 查看端口情况: Netstat -a -n -o