Note: If gcc, libtool, automake, autoconf and other related tools are missing then install those with yum like:
yum install toolname
For Example:
yum install libtool
1. Visit the following url for downloading:
http://httpd.apache.org/download.cgi
(currently, the latest is 2.2.14)
2. Copy the downloaded file to /usr/local (or to into a directory or your choice)
cp httpd-2.2.14.tar.gz /usr/local/
3. Change the current directory
cd /usr/local/
4. Unzip/untar the file
tar -zxvf httpd-2.2.14.tar.gz
5. Configure and build
cd httpd-2.2.14
./configure --with-layout=Apache --prefix=/usr/local/apache2 --enable-rule=SHARED_CORE --enable-module=so
make
make install
6. Edit the /etc/profile file
Open /etc/profile file by the following command
vim /etc/profile
Add the following entries at the end of /etc/profile file
APACHE_HOME=/usr/local/apache2
export APACHE_HOME
Save /etc/profile file by the following commands
Esc
Shift+ Collon
:qw
Enter
Monday, February 15, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment