While trying to install apache version 2.4.4 using the following method:
Source: http://zhuojun.info/?p=1121
Before installing Apache 2.4.4, you should install PCRE, otherwise it will not succeed. The process of installing PCRE is simple. After you downloaded it, run in terminal next commands:
sudo ./configure sudo make sudo make install
Download APR and APR-Util from http://apr.apache.org, unpack them to Apache directory,
/srclib/apr
and/srclib/apr-util
(no version numbers in the directory names) and type following commands to install Apache:sudo ./configure --with-included-apr sudo make sudo make install
Type following command to start Apache:
sudo /usr/local/apache2/bin/apachectl start
There may be something wrongs like:
/usr/local/apache2/bin/httpd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
Type following command to see httpd’s shared library dependencies:
ldd httpd
Found "libpcre.so.1 => not found", then type the following command to update links:
sudo ldconfig
Restart Apache and should work.
Everything seemed fine but when I tried to start the apache service it gives error:
root@server1:/usr/local/apache2/bin# /etc/init.d/apache2 start
* Starting web server apache2 /usr/sbin/apache2: symbol lookup error: /usr/sbin/apache2: undefined symbol: apr_ldap_url_parse
Action 'start' failed.
The Apache error log may have more information.
[fail]
I tried to install the apr again but nothing seems to work. Please help.
The Apache log shows something like this:
[Mon Jun 17 10:31:08 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 17 11:48:20 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Mon Jun 17 15:44:36 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
Based on your comments, it appears that Apache is failing to start because it did not find APR when it was compiled. This is because the source files were not in the correct place when
configure
was run. You need to:srclib
directory within thehttpd-2.4.4
directory.cd
to thehttpd-2.4.4
directory and run:sudo ./configure --with-included-apr
sudo make
sudo make install