Saturday, August 3, 2013

Install Apache2.4.6 on Ubuntu LTS 12

Install Apache2 on ubuntu LTS 12

(1)Download the source codes from www.apache.org:
httpd-2.4.6-deps.tar.gz
httpd-2.4.6.tar.gz

(2)Extract the source packages and install them (APR; APR-util; Apache2).

(3)Install the PCRE (Perl Compatible Regular Expression) library.
By default, this library will be installed in the directory /usr/local/lib, but somehow Apache2 will not be able to know this. So you need to do the following:

---------------------
Ubuntu
Create a new file in /etc/ld.so.conf.d/ called .conf

Edit the file and add a line per directory of shared libraries (*.so files), it will look something like:
/usr/local/lib
Reload the list of system-wide library paths:
sudo ldconfig
---------------------
 
(3)Now you are ready to start Apache2:
#/usr/local/apache2/bin/apachectl start

You can verify that Apache2 is running:
#pgrep httpd

Or point your web browser to 127.0.0.1
It works!


No comments:

Post a Comment