After the default installation is complete, mcrypt and mbstring are not installed. Therefore, the installation is as follows:
Yum install PHP-mcrypt
Yum install PHP-mbstring
But still not sure, why? For the sake of security, the official sources of the new centos version no longer include mcrypt by default. You only need to do it yourself.
FirstPhp-versionIt is 5.3.3. Okay.
Wget http://dl.fedoraproject.org/pub/epel/6/i386/php-mcrypt-5.3.3-1.el6.i686.rpm
Wget http://dl.fedoraproject.org/pub/epel/6/i386/libmcrypt-2.5.8-9.el6.i686.rpm
Rpm-uvh php-mcrypt-5.3.3-1.el6.i686.rpm libmcrypt-2.5.8-9.el6.i686.rpm
Install phpMyAdmin
Rpm -- import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
Yum install phpMyAdmin
ThenService httpd restart..
Configure phpMyAdmin
Modify/usr/share/PHPmyAdmin/config. Inc. php
- # Modify the ABCDE text to your own character.
- $ Cfg ['blowfish _ secret'] = 'abcde ';
FAQs
1. phpMyAdmin prompts that PHP-mcrypt is not enabled because the PHP-mrcrpt extension is not installed. No PHP-mrcrpt extension is available in official sources. Please install epel source before Yum install PHP-mcrypt
2. phpMyAdmin cannot be accessed
PhpMyAdmin can only be accessed through http: // localhost/phpMyAdmin by default. You can modify the corresponding part of/etc/httpd/CONF. d/phpMyAdmin. conf
- <Directory "/usr/share/phpMyAdmin">
- Order deny, allow
- # Deny from all
- Allow from all
- </Directory>
However, it is strongly not supported to expose phpMyAdmin to be insecure.
Http://www.maoegg.com/centos6-yum-install-php-mysql-apache-php-extension/