搭建apache+mysql+php+phpMyAdmin开发环境

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目录下。添加以下几行。

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';
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值