Introduction: This is a detailed page of APACHE-2.0.44 installation in redhatlinux6.2. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 325453 'rolling = 'no'>
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
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/325453.html pageno: 14