Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install phpmyadmin under Linux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to install phpmyadmin under the Linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to install phpmyadmin under the Linux system"!

PhpMyAdmin is a MySQL management tool that manages MySQL directly from web.

Suppose your web root directory is / var/www/. Suppose your host web access is like this http://192.168.1.11/.

You can install it to / var/www/phpmyadmin or any subordinate directory of / var/www/

Note that the name of this directory is best known only to the administrator. So let's assume / var/www/onlyyouknow

a. First go to the official site of phpMyAdmin to download the latest phpMyAdmin program

Http://superb-east.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.11.3-all-languages.tar.gz

Download phpMyAdmin-2.11.3-all-languages.tar.bz2 to / var/www/

# cd / var/www/

# wget http://superb-east.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.11.3-all-languages.tar.gz

Of course, you can also go to your own windows machine, and then upload it to the web server after editing it.

b. Unzip this file

# tar zxvf phpMyAdmin-2.11.3-all-languages.tar.gz

Path / var/www/phpMyAdmin-2.11.3-all-languages at this time

c. Modify the directory name to / var/www/onlyyoukown

# mv / var/www/phpMyAdmin-2.11.3-all-languages / var/www/onlyyoukown

d. Modify profile

1. Find the / libraries/config.default.php file (copy config.default.php to the phpmyadmin directory and rename it to config.inc.php). The file has the following items (2-8) to be self-configured. Windows is edited with WordPad (do not use notepad, this is UTF8 code) and edited directly with vim under linux.

two。 Find $cfg ['PmaAbsoluteUri'] and change it to the URL of the phpMyAdmin that you will upload to the space

For example, $cfg ['PmaAbsoluteUri'] =' http://192.168.1.11/onlyyouknow/';

3. Look for $cfg ['Servers'] [$I] [' host'] = 'localhost'; (default is usually used, and there are exceptions that do not need to be modified)

4. Find $cfg ['Servers'] [$I] [' auth_type'] = 'config'

Debug config; in your own machine if you use cookie in the space on the network, now that we have added the URL here, we will modify it to cookie. It is recommended to use cookie.

5. Find $cfg ['Servers'] [$I] [' user'] = 'root'; / / MySQL user (mysql user name, use root; on your computer)

6. Find $cfg ['Servers'] [$I] [' password'] =''; / / MySQL password (the password of the mysql user. Your server is usually the password of the mysql user root)

7. Look for $cfg ['Servers'] [$I] [' only_db'] ='; / / If set to a db-name, only (if you only have one data, set it up; if you are on this machine or want to set up a server, it is recommended to leave it blank)

8. Look for $cfg ['DefaultLang'] =' zh'; (here is the choice of language, zh stands for simplified Chinese, I don't know whether to fill in gbk)

9. Save after setting up

If "the configuration file now requires a top secret phrase password (blowfish_secret)", please set the cookie of your site in the equal sign of $cfg ['blowfish_secret'] =';, for example: $cfg ['blowfish_secret'] =' any character'; this is because of your "$cfg ['Servers'] [$I] [' auth_type'] = 'cookie'".

e. test

Open the browser, http://192.168.1.11/onlyyoukown/

At this point, I believe you have a deeper understanding of "how to install phpmyadmin under the Linux system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report