yum install httpd php mariadb-server -y
some of the problems encountered after the installation of phpMyAdmin to build a lamp operating environment record it
1. official website to download phpMyAdmin archive
wget -c https://files.phpmyadmin.net/phpMyAdmin/4.9.3/phpMyAdmin-4.9.3-all-languages.tar.gz
2. decompress / var / www / html /
takes -zxvf phpMyAdmin- 4.9 . 3 -all-languages.tar.gz -C / was / www / html /
3. Rename
cd /var/www/html/ mv phpMyAdmin-4.9.3-all-languages phpMyAdmin
At this point it can generally be a normal visit by localhost / phpMyAdmin, but sometimes there will always be some other problem.
4. copied into phpmyadmin phpMyAdmin installation directory under the Simple Profile config.sample.inc.php, as default profile config.inc.php
Copy files cp config.sample.inc.php config.inc.php edit the configuration file vim config.inc.php configuration file now needs a passphrase to find $ cfg [ ' blowfish_secret ' ] = '' ; // here, feel free to add a few characters too short error messages. CFG $ [ ' the Servers ' ] [$ I] [ ' AUTH_TYPE ' ] = ' Cookie ' ; // default here like $ CFG [ ' the Servers ' ] [$ I] [ ' Host ' ] = ' localhost ' ; // here you can change your ip address or domain name, do not change it does not matter
5. If an error message appears
Variable $ cfg [ 'TempDir'] (./tmp/) inaccessible. phpMyAdmin was unable to cache the template file, it will run slowly.
New tmp directory under the phpMyAdmin folder mkdir tmp chmod 777 tmp
6. You may be prompted missing some extensions
Installation php link database extended package yum the install php - MySQL mounted multi-byte character string extended package yum the install php -mbstring - Y mounting supports multiple encryption expanded package yum the install php -mcrypt -Y
7. The need to open access to other computers or turn off the firewall on port 80
Open port 80 Firewall -cmd --zone = public --add-Port = 80 / tcp - Permanent // --zone scope, - add-port = 80 / tcp add port / protocol, - permanent permanent restart the firewall systemctl restart firewalld or simply turn off the firewall directly view the firewall status systemctl status firewalld stop firewall systemctl stop firewalld Off On start the firewall systemctl disable firewalld
8. If there is no access to the Forbidden prompt, may have been to prevent the selinux
See if SELinux is running gettenforce if it is enforcing // enforcement mode limits the Domain / of the type permissive // tolerant mode, there will be a warning, but not limited Domain / of the type Disabled // off, not running settenforce 0 // convert tolerant mode, corresponds to the temporary closure SELinuxx settenforce . 1 // converted into a forced mode set the SELINUX = disables power may be provided not start Vim / etc / SELinux / config