Linux APache (web) installation

Source: Internet
Author: User

One, ApAche Introduction

Apache HTTP Server is an outstanding representation of open source software projects, providing web browsing services based on standard HTTP network protocols and maintaining over half of the Web server space over the long term. Apache server can be run in various operating platforms such as Linux,unix,windows


Second, Apache features

Open Source: This is one of the most important features of Apache, open source free, this is also a very important reason for the fire in the country.

Cross-platform application: This feature is due to the Apache source code open, Apache server can be run on the vast majority of hardware and software platform.

Support a variety of Web programming languages: Support Perl,php,python,java and so on, even Microsoft's ASP technology can be used.

Modular design: Apache does not centralize all of its functionality in a single server, but rather uses the standard modular design to achieve proprietary functionality

Stable operation: The Apache server can be used to build a Web site with heavy load traffic and has high security.


Third, install the httpd server

1. To avoid conflicts, it is recommended to first uninstall the HTTP installed using the RPM method

2. Unzip the installation package into the/USR/SRC directory

3. Configuration, according to the actual application needs, custom options

--prefie: Specifies which directory the HTTPD service program installs

--ENABLE-SO: Enable dynamic load module with extended function

--enable-rewrite: Enable page rewriting for migrating directory maintenance

--enable-charset-lite: Enable character Set support

--ENABLE-CGI: Enable CGI scripting support

4. Compiling and installing

5. Confirm the results


In the post-installation/USR/LOCAL/HTTPD directory, the main subdirectories are as follows:

/usr/local/httpd/bin: A variety of execution files that store httpd servers

/usr/local/httpd/conf: A variety of configuration files for the HTTPD service, including the main configuration file http.conf,

/usr/local/httpd/htdocs: Store Web document, including default home file Index.html

/usr/local/httpd/logs: Storing httpd server log files

/usr/local/httpd/modules: Store httpd service various module files

/usr/local/httpd/cgi-bin: Storing various CGI program Files


6. Optimize Execution path

7. Add httpd to system service and start at 3 5 runlevel

The first row needs to be modified and the 23rd line needs to be added

To add httpd as a system service

8. Start the service



H The TTP service is installed. To publish a site to the Internet, you need to request a legitimate IP address and register the URL name with the DNS server provider, with the web host IP address 192.168.1.1 Domain name is www.whw.com

1) Configure HTTPD master configuration file

Find this entry, enter the purchased domain name, this example is www.whw.com

Write the purchased public address and save the exit


2) Client Access


The underlying HTTPD server is installed, and subsequent updates to the httpd are more complex to configure and use.

Linux APache (web) installation

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.