Source code installation series-Apache

Source: Internet
Author: User
Source code installation series-Apache-Linux Enterprise Application-Linux server application information. The following is a detailed description. As a Linux learner, learning Source Code installation is necessary. Sometimes, to enable some functions of the software, you must install the software using the source code. For example, if the postfix supports mysql, you must install the postfix with the source code. I want to systematically study the postfix solution of linux, and strive to master a method that is easy to understand and highly maintainability. Although Tmail can be installed quickly, such integrated packages are not flexible enough to meet new requirements, because you don't know where to start! The problem is also relatively passive, so it is the best strategy to learn from start to end honestly. In the past, I used to use the yum/apt/or other installation source code for a relatively small amount of installation. This afternoon, I am tired of reading nothing, so I will install the commonly used service software source code. Apache is the first.

: Www.apache.org

What I download is httpd-2.2.3.tar.gz.

Installation: tar xzvf httpd-2.2.3.tar.gz
Specify the installation directory:./configure? Prefix =/usr/local/apache/--> before the apache directory is created
Compile: make & make install

Copy to the startup directory: cp apachectl/etc/init. d/httpd

Give it the corresponding permissions: chmod + x/etc/init. d/httpd

Then you can start it with/etc/init. d/httpd start. The default test page is "/usr/local/apache // htdocs"

Of course, this is just the beginning. We also need to install other software such as ssl, jsp, php, and asp for 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.