Home  >  Article  >  php教程  >  Apache+PHP+PhpMyAdmin+MySql配置

Apache+PHP+PhpMyAdmin+MySql配置

WBOY
WBOYOriginal
2016-06-06 19:47:451258browse

一、Apache LoadModule php5_module D:/ProgramFiles/WEB/php-5.2.17/php5apache2_2.dll PHPIniDir D:/ProgramFiles/WEB/php-5.2.17 AddType application/x-httpd-php .php .phtml 路径根据实际情况,设置 二、PHP extension_dir = D:/ProgramFiles/WEB/php-

一、Apache 

 LoadModule php5_module D:/ProgramFiles/WEB/php-5.2.17/php5apache2_2.dll

 PHPIniDir "D:/ProgramFiles/WEB/php-5.2.17"
 AddType application/x-httpd-php .php .phtml

 

路径根据实际情况,设置

 

二、PHP

extension_dir = "D:/ProgramFiles/WEB/php-5.2.17/ext"

 

三、PhpMyAdmin连接MySql

1.检查php.ini ;extension=php_mysqli.dll是不是已经启用 也就是去掉前面的;

2.检查php.ini extension_dir 地址是不是指向了php目录的ext目录下这步是关键 我就是处在这一步的问题上 我把 extension_dir = "e:\www\php54\ext" 设置成了自己的目录 就可以了 

3.检查lib_mysql.dll有没有拷贝到windows目录下  这个dll文件有多种形式的 有没加下划线的libmysql_d.dll 因此要注意自己看

4.检查php安装目录ext目录下,php_mysqli.dll文件是不是存在 网上也说明 最好使用zip包解压 不会出现文件丢失

5.查看php详细页面,看看mysql和mysqli是不是已经启动这一步就是检查你有没有开启mysqli的
没有开启的话 你查找mysqli关键字是无法再php详细页面看到的 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn