Yum installation lamp in the CentOS environment

Source: Internet
Author: User

First step: Update the System kernel

Yum-y Update If a failure error is performed, the repair command can be executed: rpm–import/etc/pki/rpm-gpg/rpm-gpg-key*

Step Two: Install Apahce, Mysql, PHP, and its underlying extensions.

Yum-y Install httpd php php-mysql mysql mysql-server

Step Three: Install other common extensions for PHP

Yum-y Install PHP-GD php-xml php-mbstring php-ldap php-pear php-xmlrpc

Fourth step: Installing Apache Extensions

Yum-y Install httpd-manual mod_ssl mod_perl mod_auth_mysql

Fifth step: Set the Apache/mysql-server environment to boot automatically

# set Apache to boot from boot
/sbin/chkconfig httpd on

# Add MySQL Service
/sbin/chkconfig--add mysqld

# set MySQL to boot from
/sbin/chkconfig mysqld on

Sixth step: Launch Apache and MSYQL

Service httpd Start
Service mysqld Start

Seventh step: Set the MySQL database root account password

mysqladmin-u root password ' mysql Administrator password '

Eighth Step: Install phpMyAdmin

From phpMyAdmin official website: http://www.phpmyadmin.net/home_page/downloads.php Download the latest phpMyAdmin installation package, download to the site directory under the default under/var/www/html/. After extracting the phpMyAdmin compression package, locate config.sample.inc.php renamed to config.inc.php, modify the configuration, and the installation is complete.

(Reproduced in ... )

Yum installation lamp in the CentOS environment

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.