Ao tentar instalar o Apache versão 2.4.4 usando o seguinte método:
Fonte: link
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.
Tudo parecia bem, mas quando tentei iniciar o serviço do apache, ocorreu um erro:
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]
Eu tentei instalar o apr novamente mas nada parece funcionar. Por favor ajude.
O log do Apache mostra algo assim:
[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