CentOS6.2 using Yum to install lamp and phpMyAdmin

Source: Internet
Author: User
Tags mcrypt phpmyadmin
CentOS6.2 using Yum to install lamp and phpMyAdmin

This article describes how to install the lamp environment under CentOs6.2 using the Yum configuration, some brothers also like to use the installation method of compiling, personally feel that if not to the server to do custom, with yum install stable simple, why go to Download&make&make Install it.

Step1. Configure Rpmforge and Epel sources for CentOS. The official CentOS source is also sufficient, but some extensions like PHP, such as Php-mcrypt, are not in the official source.

The Rpmforge source can be downloaded and installed in http://pkgs.repoforge.org/rpmforge-release/, named rpmforge-release-*.i686.rpm or rpmforge-release-*. X86_64.RPM, find the latest version

Epel source can be found in the http://mirrors.ustc.edu.cn/fedora/epel/6/, 32 system in the I386 folder, 64 bits in the x86_64 folder, named epel-release-6-*. NOARCH.RPM, find the latest version

Here is an example of a 32-bit system,

reprint please indicate source CentOS6.2 using Yum to install lamp and phpMyAdmin

<textarea readonly="" name="code" class="plain">#如果提示The requested URL returned error:404, please switch to the latest version RPM-IVH http://pkgs.repoforge.org/rpmforge-release/ RPMFORGE-RELEASE-0.5.2-2.EL6.RF.I686.RPMRPM-IVH http://download.fedoraproject.org/pub/epel/6/i386/ epel-release-6-5.noarch.rpm</textarea>

Step 2. Installing PHP/MYSQL/HTTPD

<textarea readonly="" name="code" class="plain">#安装apacheyum-y-install httpd httpd-devel #安装mysqlyum-y install MySQL mysql-devel mysql-server mysql-libs# installation phpyum-y Install php# installation PHP extension yum-y install php-mysql php-gd php-imap php-ldap php-odbc php-mbstring php-devel php-soap php-cli php -pdo yum-y Install php-mcrypt php-tidy php-xml php-xmlrpc php-pear #其它不常用php扩展 without installing yum-y install Php-pecl-memcache PHP -eaccelerator# Installing phpmyadminyum-y Install phpMyAdmin #安装完成之后, start service httpd startservice mysqld</textarea> start

Step 3: Configure httpd, mysqld boot from

<textarea readonly="" name="code" class="plain">chkconfig mysqld onchkconfig httpd</textarea> on

Step 4: Configure phpMyAdmin

Modify/usr/share/phpmyadmin/config.inc.php

<textarea readonly="" name="code" class="plain">#将这里abcde文字修改为自己的字符, can be arbitrarily $cfg[' blowfish_secret '] = ' ABCDE ';</textarea>


Problems

1. The phpMyAdmin prompt does not turn on Php-mcrypt because the php-mrcrpt extension is not installed. There is no php-mrcrpt extension in official source, please install Epel source and then yum install Php-mcrypt

2. phpMyAdmin Cannot access

phpMyAdmin By default can only be accessed using http://localhost/phpmyadmin, you can modify the corresponding part of the/etc/httpd/conf.d/phpmyadmin.conf into

<textarea readonly="" name="code" class="plain"><directory "/usr/share/phpmyadmin" > Order deny,allow# Deny</textarea> from all to-all</directory>But it's strongly not supportive, exposing phpmyadmin to insecurity.



********************************************

* Author: Ye Wentao

* Link: CentOS6.2 using yum to install lamp and phpMyAdmin

Reprint please indicate source ***************






  • 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.