Pages

Sunday 8 September 2013

Install Apache 2.4.4 in RHEL 6.3

[root@localhost tmp]# mv apr-1.4.6 /tmp/httpd-2.4.4/srclib/apr
[root@localhost tmp]# apr-util-1.4.1 /tmp/httpd-2.4.4/srclib/apr-util

[root@localhost httpd-2.4.4]# ./configure --with-included-apr --disable-auth-basic --disable-cgi --disable-cgid --enable-cache --enable-deflate --enable-disk-cache --enable-expires --enable-headers --enable-file-cache --enable-mem-cache --enable-mime-magic --enable-proxy --enable-proxy-http --enable-rewrite --enable-so --enable-ssl --enable-unique-id --enable-vhost-alias --enable-usertrack

[root@localhost httpd-2.4.4]# make
[root@localhost httpd-2.4.4]# make install

[root@localhost httpd-2.4.4]# vi /etc/fstab

/usr/local/apache2      /etc/httpd              none    bind            0 0


[root@localhost httpd-2.4.4]# mount -a

[root@localhost httpd-2.4.4]# ln -s /usr/local/apache2/bin/apachectl /etc/init.d/httpd

Install PHP

[root@localhost php-5.4.15]# ./configure --enable-magic-quotes --enable-mbstring --enable-pdo --enable-sockets --enable-zip --enable-calendar --prefix=/usr/local/apache2/php --with-apxs2=/usr/local/apache2/bin/apxs --with-curl --with-curlwrappers --with-gd --with-mcrypt  --with-mime-magic --with-mysql --with-mssql=/usr/local/freetds --with-openssl --with-sqlite=shared --with-ttf --with-xmlrpc --with-zlib --with-pdflib --with-pdo-mysql --enable-bcmath