php5.2 installation and extension libraries for the following versions

Source: Internet
Author: User
Tags mysql login
Installation of php5.2 and extension libraries

After installing phpMyAdmin, the problem that everyone often appears is error: "Unable to load MySQL extension, please check PHP configuration".

If you are using a version of php5.2 or more, please note that PHP has made some changes to the extended functionality of the service, that is to say, you have to adjust the way you install PHP and extensions.

The main adjustment has two aspects, one is PHP5.2 above version, the php.ini file does not need to add to the Windows directory. The second is that library files such as "MySQL extension" C:\PHP\libmcrypt.dll to be copied into the C:\PHP\ext directory instead of being copied to C:\Windows \system32 as the old version of the installation.

For specific installation procedures, please refer to the following:

1. Extract the php5.2.x to your installation directory, such as C:\PHP

2. In the Apache configuration document http.conf file, add the following code so that Apache can load PHP as a module:

LoadModule php5_module "C:/php/php5apache2_2.dll"
AddType application/x-httpd-php. php

3. In the Apache configuration document http.conf file, add the following code to specify the directory where the php.ini file is located:

Phpinidir "c:/php"

4. Rename the php.ini-dist to php.ini and edit the C:\PHP\PHP. INI file:
Find Extension_dir = "./"
Change to Extension_dir = "C:\php\ext"
to find; Extension=php_mysql.dll.
Remove the preceding semicolon.

5. Now is the most important step, please note: copy C:\PHP\libmysql.dll to C:\PHP\ext directory, to support MySQL extension library,
and add it to the APACHE2.2 configuration file.
LoadFile C:\php\php5ts.dll
LoadFile C:\php\libmysql.dll

6. Restart the Web service

7.IIS user, change content above, need to copy php.ini file to%ststemroot%

Restart the service after completing the above operation.


When all services are configured, install phpMyAdmin, there will be "unable to load the mcrypt extension, check PHP configuration" prompt, the solution to this problem is:

1. Edit the apache2.2.x configuration file httpd.conf add LoadFile C:\php\libmcrypt.dll

2. Copy C:\PHP\libmcrypt.dll to C:\PHP\ext for the full extension file.

3. Edit C:\PHP\PHP. INI file, find; Extension=php_mcrypt.dll, remove the front semicolon ";"

If, when installing PhpMyAdmin, also appears--"No PHP extension settings mbstring, and the current system seems to be using a wide character set, no mbstring extended phpMyAdmin does not correctly recognize the string, may produce unexpected results," The solution to this problem is:
Edit C:\PHP\PHP. INI to find; extension=php_mbstring.dll, remove the preceding semicolon ";"

Restart the service again after completing the above operation.

Finally, there are some basic configuration before using PHPMYADMIN3, this configuration is for the version above phpMyadmin3.0.

Before configuration, make sure that you configure the PHP operating environment correctly as above.

The basic steps to configure are as follows:

1. Copy the phpmyadmin\libraries\config.default.php to the phpMyAdmin root directory and rename it to config.inc.php

2. Edit config.inc.php

$cfg [' blowfish_secret '] = '; Change to $cfg[' blowfish_secret '] = ' abcd '; two single quotes can be entered arbitrarily.
$cfg [' Servers '] [$i] [' auth_type '] = ' config ' and change to $cfg[' Servers ' [$i] [' auth_type '] = ' cookie ';

After saving, refresh the page, enter the MySQL login account and password on it.

If a cookie has to be enabled to log in, clear the browser's cookies.

Original: http://student.csdn.net/space.php?uid=435961&do=blog&id=36724

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.