Installing Apache under Linux

Source: Internet
Author: User

1: Download the Apache installation package under the GUI, I am under the httpd-2.2.9.tar.gz source installation package, the address is http://httpd.apache.org/download.cgi
2: By: gzip-d httpd-2.2.9.tar.gz
Tar xvf Httpd-2.2.9.tar
Unpack the installation package, and the httpd-2.2.9 folder will appear before you enter the folder.
3: Under the httpd-2.2.9 folder, you can see the Configure folder, at this time with: sudo./configure--prefix=/usr/local/apache--enable-so Set the installation directory and parameter settings. The command so module is used to mention the DSO support for the Apache core module, where Setup starts.

4: Install Apache:sudo make using make and make install
5:/usr/local/apache/bin/apachectl start, this command is used to enable Apache.

Error when performing step fourth:httpd:could not reliably determine the server ' s fully qualified domain name

Solution:

Go to Apache's installation directory:

Linux:/usr/local/apache/conf

sudo gedit httpd.conf

Remove the #servername localhost:80 annotation inside

Re-execute HTTPD

HTTP://LOCALHOST:80 can then be accessed through a browser if the page displays "It works! ", which means that Apache has been installed and started successfully.

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.