How can I install Apache-6.2 in RedHat linux 2.0.44?

Source: Internet
Author: User

This is my first time... It took me a whole night and failed for four times. After the installation was successful, I realized that I was careless and sold it now. After installing Apache, I wrote down the successful installation process... This article is for the startup linux Startup like me, ^_^
When installing redhat6.2, ftp and http are not installed, but XFree86 is basically installed.
Preparations:
Run lynx in the command line to download apache-2.0.44.tar.gz
# Cd/usr/local/src
# Lynx http://www.apache.org/dist/httpd/httpd-2.0.44.tar.gz
Save as/usr/local/src/httpd-2.0.44.tar.gz after download ends, press 'Q' and answer y to exit lynx
Start installation:
# Cd/usr/local/src
# Tar zxvf httpd-2.0.44.tar.gz
# Cd/usr/local/src/httpd-2.0.44
#./Configure -- prefix =/usr/local/servers/apache2
(Note: -- prefix =/usr/local/servers/apache2 is the installation target directory of apache)
Wait... the configuration is complete.
# Make
This make seems to have waited for n years... Bitter
# Make install
Simple Configuration:
# Cd/usr/local/servers/apache2/conf
# Vi httpd. conf
Edit httpd. conf: press the Insert key on the disk, flip the page, find # ServerName xxxxx: 80, remove the # sign before ServerName, and change xxxxx to the full name of your machine. For example, I change it to ServerName pig.home.cn; another step is to change Group #-1 to Group nobody. apache cannot be started if it is missed. Press the Esc key twice and enter: wq and press enter to save the disk and exit the vi editor.
Start Apache:
# Cd/usr/local/servers/apache2/bin
#./Apachectl start
It's exciting to test whether Apache is working. input the following command line:
# Lynx http: // localhost
Wow, I really saw the homepage ~~~~
Power outages during the day... Java, JSP, and PHP can only be installed at night. Sigh
I forgot to say that stopping apache is
# Cd/usr/local/servers/apache2/bin
#./Apachectl stop
Haha

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.