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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of building LNMP+phpmyadmin environment in CentOS7, which is very detailed and has certain reference value. Friends who are interested must finish it!
Now that we have installed the lnmp environment, let's install phpmyadmin.
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, the configuration of phpmyadmin is complete. Finally, it is insecure to expose the access address of the database, so it is best to configure a complex and irregular address.
The above is all the contents of the article "example Analysis of LNMP+phpmyadmin Environment Construction in CentOS7". Thank you for reading! Hope to share the content to help you, more related 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.
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.