下载Apache并安装。其实我只要解压一个Zip包就好。
下载mysql并安装。。这个是要安装的。。
下载php的zip包。这个解压就好。。
然后,第一步:
修改httpd.conf:
主要是: Listen 127.0.0.1:8099 或:listen 8099.找到不冲突的端口。
开启URL rewirte LoadModule rewrite_module modules/mod_rewrite.so
配置支持my sql 和php
#支持 my sql
LoadFile G:/PHP/AppServ/php5/libmySQL.dll
#支持 php 5
LoadModule php5_module G:/PHP/AppServ/php5/php5apache2_2.dll
PHPIniDir "G:/PHP/AppServ/php5"
AddType application/x-httpd-php .php
libmySQL.dll这个档可以在mysql的安装目录中找到。。
设置:DocumentRoot "G:/PHP/AppServ/www"
<Directory "G:/PHP/AppServ/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks MultiViews ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory
这个。。
配置 php.ini
修正 php.ini (使用php.ini-dist 或者 php.ini-recommended 都行)修改extension_dir = "G:\server\php5\ext" (用查找 extension_dir,路径改为你的php5的ext目录)
然后必须去掉;extension=php_gd2.dll 和;extension=php_mysql.dll 前的分号。
大概要点是这样。。
相关有用的资料: