installation of lamp environment configuration phpMyAdmin

Source: Internet
Author: User
Tags http authentication php template

Installation of phpMyAdmin

1, Enter the source code of the software in the directory/usr/local/src/, and extract the package phpmyadmin-3.5.6-all-languages.tar.gz to the current directory phpmyadmin-3.5.6-all-languages. &NBSP,
2, the extracted directory phpmyadmin-3.5.6-all-languages under the file, all copied to Apache/usr/local/apache/htdocs, and create a new directory named phpMyAdmin, the installation is complete. [[email protected] 
3, Before using phpMyAdmin, you need to configure it first. The configuration is done by setting several options in the file in the phpMyAdmin top-level directory. The file does not exist by default, we need to create one manually, or you can copy the template to get a minimal configuration file.  
[root@localhost src]# cd/usr/local/apache/htdocs/phpmyadmin/ 

[root@localhost phpmyadmin]# CP   
phpMyAdmin configuration  
      We can use the authentication mode requirements, there are two configuration scenarios, one is the HTTP and cookie authentication mode. In both modes, the user must first enter a valid user name and password for the MySQL database in a login window to use the phpMyAdmin program. This approach has two obvious benefits: first, because the MySQL database password does not appear in the file, the authentication process is more secure, and second, allows you to log on to your own database as a different user. These two authentication modes are especially suitable for multiple user accounts in a database.  
    The second scenario is the Config authentication mode. In this case, the password is stored in clear text in the file. Just write the MySQL user name and password directly to the file. This way, you will not be prompted to enter a user name and password when you log in to phpMyAdmin, only the user who is written in the file is logged in directly. You can use this mode if you are using phpMyAdmin only on a local test system. 1, HTTP authentication mode  
If you want phpMyAdmin to use HTTP authentication mode, you first need to make the following modifications to the file:

when we have finished setting up, when we launch phpMyAdmin, a Web Browser dialog box will pop up, and we need to enter the MySQL username and password in this dialog box to enter the phpMyAdmin interface. As shown in the Windows client with IE browser, access the Web server's phpMyAdmin directory under the index.php file, you can start phpMyAdmin.

2. Cookie Authentication Mode
The cookie Authentication mode complements the HTTP authentication mode and can be used in situations where HTTP authentication mode cannot be used. The cookie authentication mode requires that the user must allow cookies from phpMyAdmin to enter their own computer. That is, the user needs to turn on the client's cookie function in the browser.
If you want phpMyAdmin to use cookie authentication mode, you must also provide a string to the Blowfish_secret parameter in addition to the AUTH_TYPE statement in the file. This string can be arbitrary, in order to store the user and password used at login on the client computer before the cookie, the system will use this string to add a password. The content that is modified in is as follows:

As in the way it starts phpmyadmin, we use IE browser on the Windows client to access the index.php file under the phpMyAdmin directory on the Web server and need to provide MySQL username and password to log in as shown:

3. config Authentication mode
If you want phpMyAdmin to use the Config authentication mode, you first need to make the following changes in the file. The MySQL database user name and password are written in clear text, the specific changes are as follows:

As in the way it started phpMyAdmin, we used the Windows client to access the index.php file under the phpMyAdmin directory on the Web server using Internet Explorer. However, you can log on without providing a username and password for MySQL, which is logged in with the user name and password written in clear text in It's not here. Here lamp is installed, we downloaded the software has a zendguard useless, because I installed the php5.4.11 version, as of now the official has not supported the PHP5.4 version of the Zend Accelerator, the official as follows:

installation of lamp environment configuration phpMyAdmin

Related Article

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: 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.