Centos6 Yum install PHP + MySQL + Apache + PhP Extension

Source: Internet
Author: User
Tags mcrypt

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

  1. # Modify the ABCDE text to your own character.
  2. $ 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

  1. <Directory "/usr/share/phpMyAdmin">
  2. Order deny, allow
  3. # Deny from all
  4. Allow from all
  5. </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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.