window利用iis安装php、phpMyAdmin

需要工具php、phpMyAdmin、PHPManager
下载PHPManagerForIIS
这里下载
选择对应的系统版本下载
下载php 【window利用iis安装php、phpMyAdmin】官方下载
注意:iis下载的是Non Thread Safe
重命名放本地,路径自己定,例如我的D:\Program Files\php
添加到系统环境变量,方便以后操作
新建一个PHP_HOME,如图

window利用iis安装php、phpMyAdmin
文章图片
QQ截图20181226181728.png
在path中添加 ; %PHP_HOME%进去,如图

window利用iis安装php、phpMyAdmin
文章图片
28.png
复制 php.ini-development,重命名为 php.ini
配置php
打开PHPManager配置,如图

window利用iis安装php、phpMyAdmin
文章图片
3.png
根据自身需要配置
安装phpMyAdmin
去官网下载,官方下载
解压完放本地目录D:\Program Files\phpMyAdmin
拷贝config.sample.inc.php,重命名为config.inc.php
修改主要配置信息,如下

$cfg['blowfish_secret'] = 'hh5987fsns08fdr3560s0f0fsfgvd6785'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! *//** * Servers configuration */ $i = 0; /** * First server */ $i++; /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'cookie'; /* Server parameters */ $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['port'] = '3306'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers'][$i]['AllowNoPassword'] = false; /** * phpMyAdmin configuration storage settings. *//* User used to manipulate with storage */ // $cfg['Servers'][$i]['controlhost'] = ''; // $cfg['Servers'][$i]['controlport'] = ''; // $cfg['Servers'][$i]['controluser'] = 'pma'; // $cfg['Servers'][$i]['controlpass'] = 'pmapass'; /* Storage database and tables */ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; $cfg['Servers'][$i]['relation'] = 'pma__relation'; $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; $cfg['Servers'][$i]['column_info'] = 'pma__column_info'; $cfg['Servers'][$i]['history'] = 'pma__history'; $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; $cfg['Servers'][$i]['tracking'] = 'pma__tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; $cfg['Servers'][$i]['recent'] = 'pma__recent'; $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; $cfg['Servers'][$i]['users'] = 'pma__users'; $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; /** * End of servers configuration */

然后到iis添加站点,指定目录到D:\Program Files\phpMyAdmin
最后就可以打开登录了
END

    推荐阅读