Simple installation of yum in lamp Environment

Source: Internet
Author: User

Lamp is a platform environment for Linux + Apache + MySQL + PHP.

It includes:

Linux operating system.

Apache website running software.

MySQL database.

PHP website editing software.

----------------------------------------------------------------------

Generally, lamp installation includes RPM installation and source code compilation and installation.

For RPM installation, you can use the front-end Yum to ignore dependencies and simplify the installation.

For source code compilation and installation, you must first install the compiling environment and manually specify the installation path and options.

The following is a brief introduction to Yum installation:

-----------------------------------------------------------------------

Prerequisite: Disable the firewall iptables-F

[LAMP conventional Yum installation]

# Yum-y install httpd MySQL mysql-server PHP-MySQL

Httpd Configuration]

# Service httpd start

# Cd/var/www/html

# Vim index. php

<? PHP

Phpinfo ();

?>

Test: http: // 192.168.200.1

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/45/CF/wKioL1Prfkqz8i8eAAOilTcKgpo486.jpg "Title =" image 000.png" alt = "wkiol1prfkqz8i8eaaoiltckgpo486.jpg"/>

[MySQL configuration]

Use the default settings without modification. The root user is created by default when the service is started, and an empty password is set.

# Service mysqld start

Blog Software Installation]

# Cd/var/www/html/WordPress

# Cp wp-config-sample.php wp-config.php

# Vi wp-config.php

Define ('db _ name', 'mysql ');

Define ('db _ user', 'root ');

Define ('db _ password ',");

Test: http: // 192.168.200.1/WordPress

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/45/CF/wKioL1PrfmLgb4GkAACprEtcgBo687.jpg "Title =" image 001.png" alt = "wkiol1prfmlgb4gkaacpretcgbo687.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/45/CF/wKioL1PrfnmQaCFPAAKlZb-fVKU327.jpg "Title =" image 002.png" alt = "wKioL1PrfnmQaCFPAAKlZb-fVKU327.jpg"/>


This article is from the "riaair small building" blog, please be sure to keep this source http://riaair.blog.51cto.com/9177337/1539682

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.