Home >Backend Development >PHP Tutorial >My process of installing Apache-2.0.44 under RedHat linux 6.2_PHP tutorial

My process of installing Apache-2.0.44 under RedHat linux 6.2_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:11:50716browse

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:
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.gz
After downloading, save it as /usr/local/src/httpd-2.0.44.tar.gz, 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
(Explanation: --prefix=/usr/local/servers/apache2 This option is the installation destination directory of apache set by yourself)
Wait and wait. . . , the configuration is completed
#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 and press the Insert key on the keyboard , turn the page, find #ServerName xxxxx:80, remove the # before ServerName, and change xxxxx to the full name of your machine, for example, I changed it to ServerName pig.home.cn; the most critical step is to change Group # Change -1 to Group nobody. If you miss to change it, apache will not start. 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, I really saw the homepage~~~~
There is a power outage during the day. . . Java, JSP and PHP can only be installed at night. sigh
Forgot to say, to stop apache is
#cd /usr/local/servers/apache2/bin
#./apachectl stop
Haha

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629550.htmlTechArticleThis is my first time. . . It took me an all-nighter and failed four times. I finally installed it successfully and found out that it was due to my carelessness and speculation. I just installed Apache and installed it successfully...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn