Article Title: describes the installation and configuration of Apachewebserver. 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.
I. Introduction to Apache web server
Apache web server is an open source web server software developed and maintained by the apache software foundation. It is the most widely used web server software in the world and supports various unix and windows platforms. This article describes the most basic installation and configuration in Red hat Linux 9.
2. software-related resources
Official Website: http://httpd.apache.org/source Code Software Package: Apache is an open-source software. You can download it from its official website http://httpd.apache.org/download.cgi. The latest stable version is httpd-2.0.53. Help documentation: http://httpd.apache.org/docs-project/ has a more comprehensive help documentation for this software.
FAQ: The http://httpd.apache.org/docs/misc/FAQ.html answers frequently asked questions about the software.
3. Software Installation
1. Install
Download the source code software package httpd-2.0.53.tar.gz from the official website. Next I will explain some important steps in the installation process:
Tar xzvf httpd-2.0.53.tar.gz decompression package.
. /Configure performs Installation check and setting on the machine. Most of the work is done automatically by the machine. However, you can set some parameters. Common options include:
. /Configure -- help: view the parameter settings help.
-- Prefix = specifies the software installation directory (default:/usr/local/apache2 ).
-- Enable-modules = specifies the module to be loaded.
-- The enable-v4-mapped supports ipv6 socket to process ipv4 connections.
You can set many parameters. You can use-help to view the required parameters. Generally, you can set the parameters by default.
By default, the/usr/local/apache2 directory is installed. The following describes several common components of/usr/local/apache2:
/Usr/local/apache2/bin mainly contains server programs. Commonly used include the deamon program httpd and the control script apachectl.
/Usr/local/apache2/conf is the server-related configuration file. The main configuration file is httpd. conf.
/Usr/local/apache2/htdocs default website html file root directory.
/Usr/local/apache2/cgi-bin default cgi program storage directory.
2. Start:
If there is no problem, ps aux should be able to check the httpd process, or netstat-an can also see that the port 80 service is up. To enable auto-start web server upon startup, add a line to/etc/rc. d/rc. local.
/Usr/local/apache2/bin/apachectl start