#测试php
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "D:/Program Files/PHP/"
LoadModule php5_module "D:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Alias /php/ "D:/Apache/htdocs/php/"
<Directory "D:/Apache/htdocs/php/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.php test.php
</Directory>
在下面加上如下:
#AddType application/x-gzip .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
2.重启apache,看到php信息说明安装成功.
3.安装mysql,自动配置成功后.
4.安装phpmyadmin,解压将:\phpMyAdmin\libraries 并打开config.default.php ,将其复制至phpMyAdmin 根目录下,
改名为config.inc.php,并做以下修改:
$cfg['Servers'][$i]['host'] = 'localhost';
/**
* MySQL port - leave blank for default port
*
* @global string $cfg['Servers'][$i]['port']
*/
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['user'] = 'root';
/**
* MySQL password (only needed with 'config' auth_type)
*
* @global string $cfg['Servers'][$i]['password']
*/
$cfg['Servers'][$i]['password'] = '123456';
#测试phpadmin
Alias /phpmyadmin "D:/phpmyadmin"
<Directory "D:/phpmyadmin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
然后 输入 :http://localhost:8005/phpmyadmin/可以通过用户mysql用户和密码进入后台,说明配置成功.