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 in linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to install linux phpmyadmin, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. download

Http://www.phpmyadmin.net/

After entering, there is a download button. Click the Download link in the navigation bar to enter the download interface, where you can download the latest version of phpMyAdmin 4.9.2.

two。 Download it and upload it to the server, and then execute the following command to extract:

Tar-xvzf phpMyAdmin-4.9.2-all-languages.tar.gz

3. Move to the accessible address of the website (the root of the website)

Mv phpMyAdmin-4.9.2-all-languages / var/www/

4. Rename folder (phpMyAdmin-4.9.2-all-languages) to phpmyadmin

5. At this point, you can see that there is a configuration file in the directory: config.sample.inc.php. Copy this file into config.inc.php.

Cp config.sample.inc.php config.inc.php

Then perform the edit:

Vim config.inc.php

Find the $cfg ['blowfish_secret'] configuration item, which is empty by default. Here we can randomly set a complex string to encrypt the use of

Then the item $cfg ['Servers'] [$I] [' auth_type'] defaults to cookie, which means you have to log in every time, and we don't have to modify it, so it's more secure.

Then $cfg ['Servers'] [$I] [' host'] = '127.0.0.1'; here change it to your own database link address

$cfg ['blowfish_secret'] =' randomly set a complex string'; / * YOU MUST FILL IN THIS FOR COOKIE AUTH! * / * Servers configuration * / $I = 0 * First server * / $cfg ['Servers'] [$I] [' auth_type'] = 'cookie';/* Server parameters * / $cfg [' Servers'] [$I] ['host'] =' database host address' $cfg ['Servers'] [$I] [' connect_type'] = 'tcp';$cfg [' Servers'] [$I] ['compress'] = false;$cfg [' Servers'] [$I] ['AllowNoPassword'] = false

As follows:

6. Configure nginx

Server {client_max_body_size 20M; listen 80; server_name 47.room.room.230; set $root_path'/ var/www/phpmyadmin'; root $root_path; index index.php index.html index.htm; try_files $uri $uri/ @ rewrite Location ~\ .php {fastcgi_pass 127.0.0.1 fastcgi_index 9000; fastcgi_index / index.php; fastcgi_split_path_info ^ (. +\ .php) (/. +) $; fastcgi_param PATH_INFO $fastcgi_path_info Fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params;}}

Restart nginx

Service nginx restart

7. Visit

The above is all the contents of the article "how to install phpmyadmin in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Database

Wechat

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

12
Report