Linux installation Apache

Source: Internet
Author: User

An Introduction to Apache:
Apache is the world's most used Web server software. It can run on almost all widely used computer platforms and is one of the most popular Web server-side software due to its widespread use across platforms and security.
Second, the advantage of using Apache:
Apache server performance in terms of functionality, performance and security are more prominent, can be better to meet the needs of Web server users of the application. Its main features include the following aspects,
1. Open Source code: This is? One of the important features of Apache server is the foundation of other features, Apache service program is maintained by many developers around the world, and anyone is free to use, which fully embodies the spirit of open source software
2, cross-platform application: This feature benefits from? Apache source code open,? Apache server can run on most hardware and software platforms, all UNX operating systems can run? Apache server, even? Apache server can run well in most of them? In Windows System platform.? Apache server's cross-platform feature makes it a widely used condition
3. Support various web programming languages:? What are the Web programming languages that Apache server can support? Perl? Php.? Python,java and so on, even Microsoft's ASP technology can also be in? Used in Apache servers. Support a variety of common web programming languages to make? Apache has a wider range of application areas
4, modular design:? Apache does not focus all of its functions within a single service program, but instead, as far as possible, to implement proprietary functions in the standard modules. Apache servers provide good extensibility, and other software developers can write standard module programs to add other features that Apache does not own
5, the operation is very stable: Apache server can be used to build a Web site with large load traffic, many well-known enterprise sites use Apache as a Web services software
6, good security: Apache server has relatively good security, which is the characteristics of the soft common and, Apache maintenance team will be in time to provide patches for the identified vulnerabilities, for all Apache users to provide the most secure server program.
Third, install HTTPD server
1, to avoid the occurrence of port conflicts, program conflicts and other phenomena, it is recommended to uninstall the RPM-style installation of httpd.

2. Source code compilation and installation
(1) Unzip the downloaded httpd package into the/USR/SRC and enter the/USR/SRC/HTTPD

(2) configuration

Parameter explanation:

    • Prefix: Specifies the installation path for the httpd.
    • ENABLE-SO: Enable dynamic load module support, enabling httpd to further expand capabilities.
  • -enable-rewrite: Enable Web page address rewriting for optimization and directory migration maintenance.
  • -enable-charset-lite: Launch character set support, easy to support a variety of character set encoding pages.
  • -ENABLE-CGI: Enables CGI scripting support to extend the application access capabilities of the Web site.
    (3) Compile and install

    Compiling the installation takes a few minutes, wait patiently!
    3. Confirm the installation result
    Due to the establishment of the installation directory for/USR/LOCAL/HTTPD, so httpd of various programs, modules, help files are in this directory.
    In the post-installation/USR/OCAL/HTTPD directory, the main subdirectories are used as follows:
    /usr/local/httpd/bin: A variety of execution Program files for HTPD services, including main program HTPD, Service Control tool APACHECTL, etc.
    /usr/local/httd/conf: A variety of configuration files that store HTPD services, including Master profile htpd.conf, enhanced configuration subdirectory exta, and more.
    Usr/ocal/httpd/htdocs: Store Web documents, including the default home file index HTML and so on.
    /usr/local/httpd/ogs: Log file that holds the HTTPD service.
    /usr/local/httpd/modules: Various modules for storing HTPD services. File.
    /usr/local/httd/cgi-bin: Store various CGL program files
    3, optimize the path
    By compiling the installed HTPD service through source code, the program path is not in the default search path, so you can add symbolic links to related programs in order to make the service more convenient to use.

    4, add httpd for system service
    Copy the Apachectl script into/etc/init.d/httpd and add the chkconfig identification configuration in the beginning file to the standard Linux system service.



    You can then use service httpd start to start the services.

Linux installation Apache

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.