Lamp platform Deployment (principle, installation of PHP environment, lamp project process ideas)

Source: Internet
Author: User
Tags mcrypt zend

First, understand LAMP:

1, LAMP is the most mature one of the Web application mode, can provide dynamic Web site application and development environment, its constituent components:l=liunx,a=apache,m=mysql , p=php

2, LAMP working principle:

           1) processing the request process: http process (response Php page request) à php page ( html+php à run php process à database ( mysqlà results to Http process à user

650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M01/8E/3B/wKiom1i5KDLCC_uNAAEVngkDXxU226.jpg "title=" 1.jpg "Style=" width:496px;height:211px; "hspace=" 0 "height=" 211 "border=" 0 "width=" 496 "vspace=" 0 "alt=" wkiom1i5kdlcc_ Unaaevngkdxxu226.jpg "/>

2) dynamic pages and static pages:

No matter what situation the user requests the same page to get the same result is a static page, different results are dynamic pages; the static pages on the server do not interact with the database, and dynamic pages interact with the database.

3, LAMP Advantages: The cost of the bottom, customizable, easy to develop, safe and stable.


Second, install the PHP environment

1, PHP(Super Text preprocessing language), is the service side of the HTML embedded scripting language, support Windows,Linux and other os.

2, install PHP: Provide PHP page to run the basic environment

1) installation process: Uninstall rpm PHP à install encryption tool (libmcryptàmhasàmcrypt) à Compile and install PHP.

2) compile and install important configuration items in PHP:

--with-mcrypt # # load Encryption tool

--WITH-PXS2 # # Specify http to provide apxs module

--with-mysql # # Specify the installation directory for MySQL

--enable-mbstring # # start multi-string

3. Configure php:

1) Configuration php.ini

Key configuration

Short_open_tag = on # allows to recognize PHP syntax tags, i.e. <?php?>

engine = on # # open php engine

Default_charset = "UTF8" # sets the character set

File_uploads = on # allows uploading of files via PHP page

zend_extension = Specify Zend module Absolute path

zend_loader.enable = 1 # # start Zend module and support Zend optimized performance

2) httpd configuration Support PHP page Request:

AddType application/x-httpd-php. PHP # # support parsing php page

DirectoryIndex index.html/directoryindex index.html # # support for index.php pages

3) Modify complete Configuration reboot:http and MySQL.

Third, LAMP deployment Application project Flow:

650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M02/8E/3B/wKiom1i5KRzRa-zsAAD79VLHMWA285.jpg "title=" 2.jpg "Style=" width:569px;height:248px; "hspace=" 0 "height=" 248 "border=" 0 "width=" 569 "vspace=" 0 "alt=" Wkiom1i5krzra-zsaad79vlhmwa285.jpg "/>

1. get the website project from the developer or download the free item (page and sql file).

2. upload the project file, release the Web page to the root of the website, and import the SQL file.






This article is from the "11982647" blog, please be sure to keep this source http://11992647.blog.51cto.com/11982647/1903025

Lamp platform Deployment (principle, installation of PHP environment, lamp project process ideas)

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.