It's my first time. . . It took me an all-nighter and failed four times. Finally, after the installation was successful, I found out that I was careless and speculated on it. I just installed Apache and wrote down the successful installation process. . . This document is for a super novice like me who is new to Linux. ^_^ When I installed redhat6.2, ftp, http and database were not installed. Basically, I just installed XFree86. Preparation work: Run lynx from 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 After the .gz download is completed, save it as /usr/local/src/httpd-2.0.44.tar.gz. Press q and answer y to exit lynx and start the 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 (Explanation: --prefix=/usr/local/servers/apache2 this The option is the installation destination directory of apache that you set yourself) Wait and wait. . . , the configuration is complete #make This make seems to have been waiting 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 keyboard, turn the page, find #ServerName xxxxx:80, replace the ServerName Remove the # number and change xxxxx to the full name of your machine, for example, I changed it to ServerName pig.home.cn; the other most critical step is to change Group #-1 to Group nobody. If you miss to change it, apache It cannot be started. Finally, press the Esc key twice, enter :wq and press Enter to save and exit the vi editor. Start Apache: #cd /usr/local/servers/apache2/bin #./apachectl start Test whether Apache is working. The exciting moment has arrived. Enter at the command line: #lynx http://localhost Wow, wow, I really saw it. Home page~~~~ There will be a power outage during the day. . . Java, JSP and PHP can only be installed at night. sigh I forgot to mention, to stop apache is #cd /usr/local/servers/apache2/bin #./apachectl stop haha