Centos 6.4 uses Yum to quickly build a lamp Environment

Source: Internet
Author: User

Centos 6.4 uses Yum to quickly build a lamp Environment


Install Apache
[[Email protected] ~] # Yum-y install httpd

Start
[[Email protected] ~] # Chkconfig httpd on
Enable Service
[[Email protected] ~] # Service httpd start

Install some extensions
[[Email protected] ~] # Yum install-y httpd-manual mod_ssl mod_perl mod_auth_mysql

Check whether the port is enabled
[[Email protected] ~] # Netstat-lnpt
Access through a browser
Http: // ip address

Install MySQL database
Client Server Development Library
[[Email protected] ~] # Yum install MySQL mysql-server mysql-devel-y
Start

[[Email protected] ~] # Chkconfig mysqld on

Enable MySQL Service
[[Email protected] ~] # Service mysqld start

View MySQL running Port
[[Email protected] ~] # Netstat-nlpt | grep MySQL


Install PHP

To allow PHP to support MySQL, we can install the PHP-mysql package, or use the following command to search for available PHP modules.

[[Email protected] ~] # Yum install PHP-mysql-y


Install common PHP extensions

[[Email protected] ~] # Yum search PHP

[[Email protected] ~] # Yum-y install gd php-Gd-devel PHP-xml php-common PHP-mbstring PHP-ldap php-pear PHP-xmlrpc php-imap

Restart httpd
[[Email protected] ~] # Service httpd restart

Write test page
[[Email protected] ~] # Cd/var/www/html/
[[Email protected] HTML] # Vim index. php

<? PHP
Phpinfo ();
?>

Browser http: // test the local IP Address

Install and configure phpMyAdmin

Official website download the latest version: http://www.phpmyadmin.net/home_page/


This article from the "technical revolution life" blog, please be sure to keep this source http://6769120.blog.51cto.com/6759120/1562183

Centos 6.4 uses Yum to quickly build a lamp Environment

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.