In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to install phpMyAdmin under Linux centos7" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to install phpMyAdmin under Linux centos7" article can help you solve the problem.
1. Download the phpmyadmin package on the official website
Wget-c https://files.phpmyadmin.net/phpmyadmin/4.9.3/phpmyadmin-4.9.3-all-languages.tar.gz
two。 Extract to / var/www/html/
Tar-zxvf phpmyadmin-4.9.3-all-languages.tar.gz-c / var/www/html/
3. Rename
Cd / var/www/html/mv phpmyadmin-4.9.3-all-languages phpmyadmin
This step is generally accessible via localhost/phpmyadmin, but sometimes there are other problems.
4. Go to the phpmyadmin installation directory to copy phpmyadmin's simple configuration file config.sample.inc.php as the default configuration file config.inc.php
Copy a file
Cp config.sample.inc.php config.inc.php
Edit configuration file
Vim config.inc.php
The configuration file now needs a phrase password to find the
$cfg ['blowfish_secret'] =''; / / adding a few characters too short here will give you an error. $cfg ['servers'] [$I] [' auth_type'] = 'cookie'; / / default here is $cfg [' servers'] [$I] ['host'] =' localhost'; / / you can change it to your own ip address or domain name. It doesn't matter if you don't change it.
5. If there is an error prompt
The variable $cfg ['tempdir'] (. / tmp/) cannot be accessed. Phpmyadmin cannot cache the template file, so it runs slowly.
Create a new tmp folder under the phpmyadmin directory
Mkdir tmpchmod 777 tmp
6. It may be prompted that some extensions are missing
Install the extension package for the php linked database
Yum install php-mysql
Install a package that supports multi-byte string extension
Yum install php-mbstring-y
Install packages that support multiple encryption extensions
Yum install php-mcrypt-y
7. Other computers need to open port 80 or turn off the firewall.
Open port 80
Firewall-cmd-- zone=public-- add-port=80/tcp-- permanent//--zone scope,-- add-port=80/tcp add port / protocol,-- permanent takes effect permanently
Restart the firewall
Systemctl restart firewalld
Or simply turn off the firewall.
View firewall status
Systemctl status firewalld
Stop the firewall
Systemctl stop firewalld
Turn it off, turn on, start the firewall.
Systemctl disable firewalld
8. If forbidden prompts you that you do not have permission to access, it may be blocked by selinux
Check to see if selinux is running
Gettenforce
If it is
Enforcing / / mandatory mode, will restrict domain/type permissive / / tolerance mode, there will be warnings but no restrictions on domain/type disabled / / closed status, not running
Settenforce 0 / / converts to tolerance mode, which is equivalent to temporarily shutting down selinuxx settenforce 1 / / and switching to mandatory mode.
Set selinux=disables to set whether to boot or not.
Vim / etc/selinux/config
This is the end of the introduction on "how to install phpMyAdmin under Linux centos7". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.