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