The virtual host creation and deployment of the Apache server for Lamp architecture

Source: Internet
Author: User

Project Environment:

Xian Lingyun High-Tech Co., Ltd. use the RHEL4 system to build a Linux server, the current DNS server, FTP server, Samba server, and so on, as well as deployment completed, currently because the company needs to work for the company to build an Apache server. Based on the Apache server on the basis of the implementation of virtual directory laying.

Project objectives:

Able to complete the installation of the Apache service (here we do not demonstrate the CD-ROM installation method), the implementation of virtual directory overall laying.

Project implementation:

1. The main features of Apache server;

Open source code, Cross-platform applications, support for common web technologies, modular design, Apache server running is very stable, and relatively high security.

2. Install Apache server; In this project, we use 2.0 of the version, of course, two versions have their own, the details are not detailed. The Apache server and related software are installed by default in the RHEL4 system, so we need to "stop" the previously installed servers (of course to install more smoothly) when we compile and install the Apache service, but we also know that the biggest feature of the source compilation installation is "flexibility "So we can set up according to our actual situation, compile the software installation."

2.1.1.1. Copy and compile the Software Apache service package; Make sure the path to the copy is correct before copying, as shown in Figure 2-1;

2.1.1.2. Release the source package file to release the software, we will release the compiled file through tar; Figure 2-2;

2.1.1.3. After releasing the file, we need to go to the directory where we released the files to view the software we released, and then go to the directory where we released the files to see the files we need to compile. As shown in Figure 2-3:

2.1.1.4. Pre-compilation configuration, using the "./configure" command in the httpd source directory to complete the configuration before the compilation, we use the "-prefix" option to specify the directory where the Apache server program will be installed to the system, in general we use the "/ Usr/local/apache2 "While the"-enable-so "option sets the Apache server to use the Dynamic load module feature. Use the-enable-rewrite option to set the Apache server to have rewrite functionality. It will take some time for us to wait patiently while compiling. As shown in Figure 2-4:

2.1.1.5. After completion we need to compile the server program, of course, the process is really to forward the program as an executable program, in the process of conversion will take a long time; After compiling we need to use the "make install" Laian to compile the program, as shown in Figure 2-5:

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.