操作系统:
Windows 8.1 64位
软件准备:
httpd-2.4.9-win64-VC11.zip(vcredist_x64.exe)
mysql-5.6.17-winx64.zip
php-5.5.10-Win32-VC11-x64.zip
phpMyAdmin-4.1.12-all-languages.zip
配置过程:
首先安装vcredist_x64.exe,然后将下载的软件压缩包解压至C:\wampx,解压后的目录树如下:
C:\WAMPX
├─Apache24
├─mysql-5.6.17
└─php-5.5.10
1.配置Apache httpd:修改配置文件“C:\wampx\Apache24\conf\httpd.conf”如下参数:
ServerRoot "c:/wampx/Apache24" LoadModule php5_module "C:/wampx/php-5.5.10/php5apache2_4.dll" PHPIniDir "C:/wampx/php-5.5.10" ServerName 192.168.1.110:80 DocumentRoot "c:/wampx/Apache24/htdocs" <Directory "c:/wampx/Apache24/htdocs"> DirectoryIndex index.html index.php ScriptAlias /cgi-bin/ "c:/wampx/Apache24/cgi-bin/" <Directory "c:/wampx/Apache24/cgi-bin"> AddType application/x-httpd-php .php
2.配置MySQL:修改配置文件“C:\wampx\mysql-5.6.17\my.ini”如下参数:
basedir = "c:/wampx/mysql-5.6.17" datadir = "c:/wampx/mysql-5.6.17/data"
3.配置PHP:修改配置文件“C:\wampx\php-5.5.10\php.ini”如下参数:
doc_root = "c:/wampx/Apache24/htdocs" extension_dir = "c:/wampx/php-5.5.10/ext" extension=php_gd2.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo_mysql.dll session.save_path = "c:/wampx/php-5.5.10/tmp"
4.配置phpMyAdmin:拷贝配置文件“./libraries/config.default.php”重命名为“config.inc.php”并修改如下参数:
$cfg[‘blowfish_secret‘] = ‘cookie‘;
验证演示:
1.启动httpd服务器:执行命令"C:\wampx\Apache24\bin\httpd.exe";
2.启动MySQL数据库:执行命令"c:\wampx\mysql-5.6.17\bin\mysqld.exe" --console;执行命令"c:\wampx\mysql-5.6.17\bin\mysqlshow.exe"检查是否启动成功;执行命令"c:\wampx\mysql-5.6.17\bin\mysqladmin.exe" -u root -h localhost password "sysdba"可修改root用户密码;
3.在浏览器输入网址“http://192.168.1.110/phpMyAdmin/”可以登录phpMyAdmin来进行验证和管理MySQL数据库。至此我们成功完成了WAMP开发环境的实战演练!
本文出自 “IWARE” 博客,请务必保留此出处http://iware.blog.51cto.com/8316607/1390185
WAMP实战演练之Apache-httpd-2.4.9+MySQL-5.6.17+PHP-5.5.10开发环境搭建,布布扣,bubuko.com