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

Tutorials for installing phpMyAdmin under Linux centos7

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

yum install httpd php mariadb-server -y

Install phpMyAdmin after setting up lamp running environment. Record some problems encountered.

1. Download phpMyAdmin archive from official website

wget -c https://files.phpmyadmin.net/phpMyAdmin/4.9.3/phpMyAdmin-4.9.3-all-languages.tar.gz

2. Unzip 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 normally accessible via localhost/phpMyAdmin, but sometimes there are other problems.

4. Go to the phpMyAdmin installation directory and copy the simple configuration file config.sample.inc.php of phpmyadmin as the default configuration file config.inc.php

copy files

cp config.sample.inc.php config.inc.php

edit the configuration file

vim config.inc.php

Profiles now require a phrase password to find

$cfg ['blowfish_secret']=''; //Add a few characters here randomly too short will have an error prompt.$ cfg['Servers'][$i]['auth_type'] = 'cookie';//Here default is good $cfg['Servers'][$i][' host']= 'localhost';//Here can be changed to your own IP address or domain name, it doesn't matter if you don't change it

5. If an error occurs

Variable $cfg ['TempDir '](./ tmp/) cannot be accessed. phpMyAdmin cannot cache template files, so it runs slowly.

Create a tmp folder under phpMyAdmin

mkdir tmpchmod 777 tmp

6. Some extensions may be missing

Install php link database extension package

yum install php-mysql

Install packages that support multibyte string extensions

yum install php-mbstring -y

Install packages that support multiple encryption extensions

yum install php-mcrypt -y

7. Access from other computers requires opening port 80 or closing the firewall

Open port 80.

firewall-cmd --zone=public --add-port=80/tcp --permanent//--zone scope, --add-port=80/tcp add port/protocol, --permanent Permanently in effect

Restart firewall

systemctl restart firewalld

Or just shut down the firewall.

View firewall status

systemctl status firewalld

Stop the firewall

systemctl stop firewalld

Close, open, activate firewall.

systemctl disable firewalld

8. If the Forbidden prompt appears, you may have been blocked by selinux.

Check if SELinux is running

gettenforce

if it is

enforcing //mandatory mode, will restrict domain/type permissive //tolerant mode, will have warnings but not restrict domain/type disabled //shutdown state, does not run

settenforce0//convert to tolerant mode, equivalent to temporarily turning off SELinuxx settenforce1//convert to forced mode

SELINUX=disables can be set not to start

vim /etc/selinux/config

summary

The above is a small series to introduce you to Linux centos7 installation phpMyAdmin tutorial, I hope to help you, if you have any questions please give me a message, small series will reply to you in time. Thank you very much for your support! If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!

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

Servers

Wechat

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

12
Report