1.[url]http://php.net/downloads.php[/url]下载php5安装包。安装php
配置php.ini:
extension_dir="G:\platform\php-5.3.3-vc6-x86\ext"
环境变量path添加G:\platform\php-5.3.3-vc6-x86\
2.[url]http://http://httpd.apache.org/download.cgi/[/url]下载apache2.2
安装,配置http.conf,该配置文件在apache根路径conf目录下。添加以下几行。
修改
为
3.下载mysql安装,环境变量path添加D:\Program Files\MySQL\MySQL Server 5.1\bin
4.配置phpMyAdmin
[url]http://www.phpmyadmin.net/home_page/downloads.php[/url]下载phpMyAdmin
解压到apache服务器根目录下的htdocs目录中。
config.sample.inc.php重命名为config.inc.php
修改配置:
配置php.ini:
extension_dir="G:\platform\php-5.3.3-vc6-x86\ext"
环境变量path添加G:\platform\php-5.3.3-vc6-x86\
2.[url]http://http://httpd.apache.org/download.cgi/[/url]下载apache2.2
安装,配置http.conf,该配置文件在apache根路径conf目录下。添加以下几行。
PHPIniDir "G:/platform/php-5.3.3-vc6-x86/"
LoadModule php5_module "G:/platform/php-5.3.3-vc6-x86/php5apache2_2.dll"
LoadModule php5_module G:/platform/php-5.3.3-vc6-x86/php5apache2_2.dll
AddHandler application/x-httpd-php .php
修改
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
为
<IfModule dir_module>
DirectoryIndex index.php index.html default.php default.html index.htm default.html
</IfModule>
3.下载mysql安装,环境变量path添加D:\Program Files\MySQL\MySQL Server 5.1\bin
4.配置phpMyAdmin
[url]http://www.phpmyadmin.net/home_page/downloads.php[/url]下载phpMyAdmin
解压到apache服务器根目录下的htdocs目录中。
config.sample.inc.php重命名为config.inc.php
修改配置:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['connect_type'] = 'http';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'mysql';