Installing LAMP on the CENTOS6

Source: Internet
Author: User

LAMP stands for Linux, Apache, MySQL, and PHP. The first step is to install Apache using Yum installation
    1. sudo Yum Install httpd
Start the httpd service
    1. sudo service httpd start
Test whether the installation is successful, you can access the server's address, such as http://12.34.56.78, my test page is such a second step, install the database MySQL the same, with Yum, install it after you start it
    1. sudo Yum Install mysql-serverservice mysqld start
Step three, install PHP
    1. sudo Yum Install PHP php-mysql
PHP has a lot of binary modules that you can search for:
    1. sudo Yum Search php-
This way, all available modules starting with PHP are displayed, and if you want to view information about one of the modules,
    1. sudo Yum Info Name of the module
For example, I would like to check the information of the php-cli.i686 module:
    1. sudo Yum Info php-cli.i686
If you want to install this module,
    1. sudo Yum Install php-cli.i686
When the Apache server starts, PHP will automatically run the last step to see if PHP is working properly and we create a PHP information page.
    1. VI /var/www/html/info. php
Plus:
    1. <? PHP Phpinfo ();? >
Typing: x, enter reboot httpd server
    1. sudo service httpd restart
Test PHP for normal reference by visiting http://12.34.56.78/info.php https://www.digitalocean.com/community/tutorials/ How-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6



From for notes (Wiz)



Installing LAMP on the CENTOS6

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.