Problem to install Apache 2.4.2 in Ubuntu 12.04
15,441
found this as a bug with httpd and it has not been fixed for long now. The fix was as mentioned in error i.e. you need to uncomment the following line in httpd.conf:
#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
to
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
Related videos on Youtube
Author by
Michael
A Windows 10 user, trying to switch to Ubuntu, have installed Ubuntu 14.04 and trying to install and learn Ubuntu/Linux and Drupal.
Updated on September 18, 2022Comments
-
Michael over 1 year
I followed these steps to install Apache 2.4.2 in Ubuntu 12.04, but it seems Apache is not installed, here's what I did (I followed the steps on this site http://www.discusswire.com/apache-2-4-installation-ubuntu/):
sudo apt-get install build-essential sudo apt-get build-dep apache2 wget http://apache.mirrors.pair.com/httpd/httpd-2.4.2.tar.gz tar -xzvf httpd-2.4.2.tar.gz && cd httpd-2.4.2 sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --with-mpm=prefork sudo make sudo make install
when I tried to start by issuing
sudo /usr/local/apache2/bin/apachectl start
at terminal, I got the following warning:AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message" and when I typed **top** at terminal, the apache is not there. I also tried to go to <CODE>http://localhost/</CODE> or 127.0.0.1 or even 127.0.1.1 it showed "Can't establish connection to server ..." message.
P.S.: I checked the error log and it showed
[Fri Jul 27 15:49:00.703901 2012] [proxy_balancer:emerg] [pid 20781] AH01177: Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm loaded?? [Fri Jul 27 15:49:00.704083 2012] [:emerg] [pid 20781] AH00020: Configuration Failed, exiting
What am I missing?
-
Admin almost 12 yearsI'm not sure if this works in 2.4 (it does in 2.2). but the command "httpd -M" will show all of the modules that are loaded in apache. Is mod_slotmem_shm loaded?
-
Admin almost 11 yearsSee the question below to install the latest version [askubuntu.com/questions/308461/… [1]: askubuntu.com/questions/308461/…
-