In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to build a phpmyadmin environment with CentOS7". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to build a phpmyadmin environment with CentOS7".
As before, there is no phpmyadmin in the default library of yum. We need to install it from the epel library. Friends who have installed epel before can download the rpm package directly.
Yum install epel-releaserpm-ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Install phpmyadmin after the download is complete
Yum install-- enablerepo=remi--enablerepo=remi-php56 phpmyadmin
Then, we change the configuration file of nginx to add the path of phpmyadmin.
Vi / etc/nginx/conf.d/default.conf
Add the following code to the nginx configuration file. Then it is shown in the following figure.
Location / phpmyadmin {alias / usr/share/phpmyadmin; index index.php;} location ~ / phpmyadmin/.+\ .php ${if ($fastcgi_script_name ~ / phpmyadmin/ (. +\ .php. *) $) {set $valid_fastcgi_script_name $1;} include fastcgi_params; fastcgi_pass 127.0.0.1 valid_fastcgi_script_name 9000; fastcgi_index index.php; fastcgi_param script_filename / usr/share/phpmyadmin/$valid_fastcgi_script_name }
After the modification is completed, wq exits, then nginx-t detects the syntax, and nginx-s reload restarts nginx
Finally, we open the browser, visit http://localhost/phpmyadmin/, and the following interface appears.
At this point, I believe you have a deeper understanding of "how to build a phpmyadmin environment in CentOS7". 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.