<?php phpinfo();?>有mysql信息
启动 phpmyadmin 2003错误:localhost --> 127.0.0.1?
httpd.conf
<VirtualHost *>
ServerName localhost
DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
</VirtualHost>
###LoadModule php5_module "e:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
[color=red]增加此句PHPIniDir "e:/php"[/color]
会导致无法导入mysql扩展??
LoadModule php5_module "E:/php/php5apache2_2.dll"
conf.inc.php
/* Authentication type */
$cfg['Servers'][1]['auth_type'] = 'config';
/* Server parameters */
$cfg['Servers'][1]['host'] = 'localhost';
$cfg['Servers'][1]['connect_type'] = 'tcp';
$cfg['Servers'][1]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][1]['extension'] = 'mysql';
/* User for advanced features */
$cfg['Servers'][1]['controluser'] = 'root';
$cfg['Servers'][1]['controlpass'] = '';
php.ini c:\windows
short_open_tag = on
1.出现“没有发现 PHP 的扩展设置mbstring, 而当前系统好像在使用宽字符集。没有 mbstring 扩展的 phpMyAdmin 不能正确识别字符串,可能产生不可意料的结果.”
解决方法:
win系统:
打开c:\windows\php.ini
把
;extension=php_mbstring.dll
改成
extension=php_mbstring.dll
unix:
打开/etc/php.ini
把
;extension=php_mbstring.so
改成
extension=php_mbstring.so
还得把mbstring.dll复制到system32 才可以
启动 phpmyadmin 2003错误:localhost --> 127.0.0.1?
httpd.conf
<VirtualHost *>
ServerName localhost
DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
</VirtualHost>
###LoadModule php5_module "e:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
[color=red]增加此句PHPIniDir "e:/php"[/color]
会导致无法导入mysql扩展??
LoadModule php5_module "E:/php/php5apache2_2.dll"
conf.inc.php
/* Authentication type */
$cfg['Servers'][1]['auth_type'] = 'config';
/* Server parameters */
$cfg['Servers'][1]['host'] = 'localhost';
$cfg['Servers'][1]['connect_type'] = 'tcp';
$cfg['Servers'][1]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][1]['extension'] = 'mysql';
/* User for advanced features */
$cfg['Servers'][1]['controluser'] = 'root';
$cfg['Servers'][1]['controlpass'] = '';
php.ini c:\windows
short_open_tag = on
1.出现“没有发现 PHP 的扩展设置mbstring, 而当前系统好像在使用宽字符集。没有 mbstring 扩展的 phpMyAdmin 不能正确识别字符串,可能产生不可意料的结果.”
解决方法:
win系统:
打开c:\windows\php.ini
把
;extension=php_mbstring.dll
改成
extension=php_mbstring.dll
unix:
打开/etc/php.ini
把
;extension=php_mbstring.so
改成
extension=php_mbstring.so
还得把mbstring.dll复制到system32 才可以