For the source installation the Apache web server following are the steps:-
1. Download the Apache Web Server as
2. Extract the compressed file as
[root@localhost ~]# tar -zxvf httpd-2.2.24.tar.gz
3. Run the configuration file as
configure:- It is the configuration for httpd
--enable :- Used for installing the specific modules to be used by Apache. If not used the Apache will be installed with all the modules.
--prefix :- specifies the location for the installation of the Apache
4. Try the configuration and check for any reported errors here
5. Install the configuration
Note:- There might be errors occuring during your installation which are basically due to missing packages and related dependencies. You will need to check and install the required packages. It is good to check the following rpms should be installed prior you begin with the installation
make, make install, zlib , zlib-devel, openssl-devel
6. Finally you can start the Apache as follows
1. Download the Apache Web Server as
# wget http://archive.apache.org/dist/httpd/httpd-2.2.24.tar.gz
2. Extract the compressed file as
[root@localhost ~]# tar -zxvf httpd-2.2.24.tar.gz
3. Run the configuration file as
cd /tmp/httpd/httpd-2.2.24
./configure --enable-so --enable-expires --enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache --enable-headers --enable-ssl --enable-http --disable-userdir --enable-rewrite --enable-deflate --enable-proxy --enable-proxy-connect --enable-proxy-ftp --enable-proxy-http --enable-proxy-ajp --enable-proxy-balancer --enable-cgi --disable-dbd --enable-modules=most --with-mpm=worker --prefix=/usr/local/apache2
configure:- It is the configuration for httpd
--enable :- Used for installing the specific modules to be used by Apache. If not used the Apache will be installed with all the modules.
--prefix :- specifies the location for the installation of the Apache
4. Try the configuration and check for any reported errors here
make
5. Install the configuration
make install
Note:- There might be errors occuring during your installation which are basically due to missing packages and related dependencies. You will need to check and install the required packages. It is good to check the following rpms should be installed prior you begin with the installation
make, make install, zlib , zlib-devel, openssl-devel
6. Finally you can start the Apache as follows
[root@localhost httpd-2.2.24]# /usr/local/apache2/bin/apachectl -t
Syntax OK
[root@localhost httpd-2.2.24]# /usr/local/apache2/bin/apachectl start
[root@localhost httpd-2.2.24]# ps -ef | grep -c httpd
6
0 comments:
Post a Comment