RedHatLinuxAS4LAMP Website Construction Instance

Source: Internet
Author: User
Article Title: RedHatLinuxAS4LAMP website construction instance. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Apache is the world's top Web server. According to a survey conducted by Netcraf (www. netsraft. co. uk), more than 50% of the world's Web servers are using Apache.

Especially now, LAMP (Linux + Apache + MySQL + PHP) is a popular method to build medium-level applications. Therefore, mastering Apache configuration is one of the essential skills for System Engineers.

Using LAMP (Linux + Apache + MySQL + PHP) to build medium-level applications (especially e-commerce) is already a popular method, because all are open-source and free software, therefore, the cost is very low. This section describes how to build the platform. When building the platform, you can also directly use the RPM package for installation. However, since the RPM package is not supported on some systems, we use a more general method: directly install it from the source code.

  Apache features:

1) It can run on almost all computer platforms.

2) supports the latest HTTP/1.1 protocol

3) simple and powerful file-based configuration (HTTPD. CONF)

4) General Gateway Interface (CGI) supported)

5) supports virtual hosts.

6) supports HTTP authentication.

7) Integrate PERL.

8) Integrated Proxy Server

9) you can use a WEB browser to monitor the server status and customize logs.

10) the server can contain commands (SSI ).

11) supports Secure SOCKET Layer (SSL ).

12) tracking the user session process.

13) FASTCGI support

14) supports java servlets.

Install Apache from source code

Generally, most e-commerce websites have online payment systems. For security

The payment system must use the https protocol for access, that is, the SSL support is required.

Before installing apache Software, you must first install OpenSSL.

  To install OpenSSL, follow these steps:

(1) obtain the source code:

Create a directory for storing software:

Mkdir/root/software (which can be stored in any directory you want)

Download the source code package to the http://www.openssl.org/source/ and place it in/root/software /.

Openssl-0.9.8.tar.gz is downloaded in this case.

(2) decompress the software

Tar-zxvf openssl-0.9.8.tar.gz

(3) go to the source code directory:

Cd openssl-0.9.8

(4) Configure compilation options:

./Config -- prefix =/usr/local/openssl -- shared

-- Shared indicates creating shared library files. If no file is added, only static library files are generated during compilation.

(5) Compile:

Make

Make test # test

(6) Installation

Make install

After execution, the related files will be copied to the corresponding directory of/usr/local/openssl.

[1] [2] [3] Next page

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.