Today, let's take a look at how to rack Web servers in Linux. In LINUX, there are three common methods: CERN, NCSA, and Apache. Apache is the most commonly used method. This method has obvious features, simple configuration, and maximum system compatibility. The following describes how to configure a Linux-based WEB server.
1. Apache server Overview
Apache has notable features: it can run on all computer platforms, including UNIX/LINUX systems, integration of proxy servers and Perl programming scripts, and tracking of user access sessions; server logs can be customized; Virtual Hosts and HTTP authentication are also supported. In combination with the powerful LINUX system, we have no reason not to choose Apache.
Ii. install Apache
Generally, all Linux versions should contain the installation of this software package. If you have not installed this software package on the Linux system, you can find the installation file on the installation CD or website (note that there are two types of online versions: one is the source code that needs to be re-compiled after download, one is the executable file that can be used only after decompression), and then install it.
1. if you download an executable file package, for example, apache_1.2.4.e.tar.gz (the number in the package depends on the version you downloaded, for example), it is relatively simple, it is suitable for beginners who are not familiar with Linux compilation. You only need to execute tar xvzf apache_1.2.3.4.tar.gz to complete the installation.
2. if the source code is downloaded, for example, apache_1.2.4.rpm, first install it with rpm-ivh apache_1.2.4.rpm, and then execute ". /configure "; then run the" make "command to compile Apache; then copy the compiled executable file to the/etc/httpd/bin directory; and then run the Apache configuration file: httpd. conf, access. conf, srm. conf and mime. if types is copied to the/etc/httpd/conf directory, the installation is complete.