Introduction to Web server setup in Linux (1)

Source: Internet
Author: User
Tags http authentication

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.


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.