In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how centos7 installs phpMyAdmin in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Linux centos7 install phpMyAdmin
Yum install httpd php mariadb-server-y
Record some problems encountered in installing phpMyAdmin after setting up the lamp runtime environment.
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
At this point, it is generally possible to access through localhost/phpMyAdmin normally, 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 file cp config.sample.inc.php config.inc.php edit configuration file vim config.inc.php configuration file now requires a phrase password, find $cfg ['blowfish_secret'] =''; / / there will be an error if you add a few characters too short here. $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 mkdir tmpchmod 777 tmp under the phpMyAdmin directory
6. It may be prompted that some extensions are missing
Install the extension package for the php linked database yum install php-mysql install the package yum install php-mbstring-y that supports multi-byte string extensions install the package yum install php-mcrypt-y that supports multiple encryption extensions
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 ports / protocols,-- permanent permanently effective restart firewall systemctl restart firewalld or simply turn off firewall view firewall status systemctl status firewalld stop firewall systemctl stop firewalld turn on start 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, it will restrict domain/typepermissive / / tolerance mode, there will be warnings but no restrictions on domain/typedisabled / / off state, not running settenforce 0 / / to convert to tolerance mode, which is equivalent to temporarily shutting down SELinuxxsettenforce 1 / / and converting to mandatory mode settings SELINUX=disables can be set to boot and not start vim / etc/selinux/config. Thank you for reading! This is the end of the article on "how to install phpMyAdmin in centos7 in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
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.