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: