PhpMyAdmin assembly configuration

Source: Internet
Author: User
Tags mcrypt
What is The phpMyAdmin installation configuration? (For Debian systems )?? Step 1: install php5 and Apache2? Apt-getinstallphp5apt-getinstallApache2apt-getinstallphp5-mysql ?? Step 2: modify the configuration file? Modify the "DocumentRoo phpMyAdmin installation configuration"

PhpMyAdmin installation configuration

?

(For Debian systems )?

?

Step 1: install php5 and Apache2

?

Apt-get install php5

Apt-get install Apache2

Apt-get install php5-mysql

?

?

Step 2: modify the configuration file

?

Modify the "DocumentRoot" File: vi/etc/apache2/sites-available/default

?

Step 3: Download phpMyAdmin software

?

Upload a file? Under DocumentRoot, change to pma

?

?

?

Finally: Solutions to problems encountered during the process

?

?

1 )? The mysqli extension is missing. check the PHP configuration.

?

  

????? In php. ini (/etc/php5/apache2/php. ini), find extension_dir = "./" and change it to the directory where the file mysqli. so is located.

?

You also need to modify mysql. default_port, parameter, add port, and host

?

2 )? The mcrypt extension is missing. check the PHP configuration.

?

Apt-get install mcrypt * mhash *

?

After the installation is complete, restart apache2.

?

3) the logon page prompts: #1045 #2002 unable to log on to the MySQL server

?

(1) first, let's talk about phpmyadmin installation.
A. decompress the package to a directory on the website, such as mydb.
B. copy config. sample. inc. php to config. inc. php.


(2) #2002 unable to log on to the MySQL server
This error indicates that the database is not connected. Modify the config. inc. php file,
Set $ cfg ['servers'] [$ I] ['host'] = 'localhost ';
Change to $ cfg ['servers'] [$ I] ['host'] = '2017. 0.0.1 ';


(3) #1045 unable to log on to the MySQL server
This error occurs because the password or user name is incorrect. why is the password incorrect?
It turned out that we modified the host, but the password for the root@127.0.0.1 in the database is not set by default.
Modify the password of the root@127.0.0.1 in the database. execute the following command
Mysqladmin-h 127.0.0.1-u root password 'yourpassword'

?

   

? 4) #2013 unable to log on to the MySQL server

?

The connection to the mysql server is not enabled. (Delete unnecessary my. cnf files, such as/etc/mysql/my. cnf)

?

?

?

?

?

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.