Quickly build lamp environment

Source: Internet
Author: User

Quickly build lamp environment

linux+apache+mysql+php, a group of open-source software used to build dynamic Web sites or servers, is itself a separate program, but because it is often used together, it has an increasingly high degree of compatibility, which together form a powerful Web application platform.

Installation steps:


1. Install MySQL

# yum Install mysql-server-y

2. Start MySQL

#/etc/init.d/mysqld Start

To modify a database password

# mysqladmin-u root password "NewPassword"

3. Installing PHP programs and Php-mysql plugins

# Yum Install php php-mysql-y

4. Install Apache program, Linux Apache package name is httpd

# yum Install Httpd-y

5. Launch Apache

# chkconfig httpd on# service httpd start

6. Firewall to open the appropriate Web port

The default is port 80, which is opened via iptables.

7. Testing

Create a new file in the default installation directory/var/www/html/hello.php, add something:

Accessed through a page, such as.

650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "alt=" clip_image002 "src=" Http://s3.51cto.com/wyfs02/M00/6B/EB/wKiom1U56uiQn2OlAAArny6eml8895.jpg "border=" 0 "height="/>

This article is from the SQL Server deep dives blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1637979

Quickly build lamp 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.