Apache httpd 2.4.1 Released

Is anybody using Apache 2.4 with CloudLinux? I'm not sure if it's compatible with mod_hostinglimits...
 
Is anybody using Apache 2.4 with CloudLinux? I'm not sure if it's compatible with mod_hostinglimits...

Hello,

It's not compatible yet. You should ask CL support about the time they're going to support it.
 
Hello I changed CB 1.2 and i installed apache 2.4.1 and i recompiled php and i am getting this error. Any way to fix it.


[Tue Apr 17 22:39:09.129609 2012] [core:warn] [pid 14240] AH00117: Ignoring deprecated use of DefaultType in line 60 of /etc/httpd/conf/httpd.conf.
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/ips.conf:6

My configuration is PHP 5.4 and apache 2.4.1 with CB 1.2. (I tested it with php 5.2 and got same error)
 
Last edited:
SeLLeRoNe Thanks;
Can i use SuPHP with this configuration like apache 2.4 and php 5.4 with CB 1.2. If so which guide sould i follow? And do you advise that i use php 5.4 or i go with default 5.2 i will install according to your advice.
 
Last edited:
Im not sure but i suppose yes, just use php as cgi and would use suphp, but, i would suggest you to use mod_ruid2 instead of suphp.

Guides can be easly found on this forum.

Regards
 
Anyone know whether if there are replacements available in 2.4 for these mods?

mod_limitipconn
mod_evasive
 
Here is a interesting discussion http://www.webhostingtalk.com/showthread.php?t=1128815 about this http://www.serverwatch.com/server-news/apache-2.4-delivers-more-performance.html (Apache 2.4 claims to be on par or faster than Nginx according to Jim Jagielski, ASF President.) Here is a quote from the article at Serverwatch.com: Also see Slashdot: Apache 2.4 Takes Direct Aim At Nginx http://apache.slashdot.org/story/12/02/21/1632230/apache-24-takes-direct-aim-at-nginx
I haven't read it, but that's no shock to me. When Nginx was promoted on a thread here, I was all excited because we have a servers that need all they can get. We tried 6 ways to Sunday to make that thing work for us. The only thing we didn't try with it is a 100% static site with no mod_rewrite. A small amount of dynamic or if you add anything to it, it's already behind. Many well-known people were still promoting 1.3, and it all made sense. But we tried 2.0 out of desperation. 2.0 already beat the stars out of 1.3. Apache has been real hard to beat with anything since 2.2. It wouldn't come as a surprise that 2.4 is better. Every release since 2.0 has been a leap. It may not be the slimmest server around, but it makes up for it with smarts, plus nobody has more modules. Considering that Nginx started out Apache 1.3... IME, Nginx doesn't deliver, and never has. The only thing I would concede is if you want to tweak Apache, you MUST read, and think through the implications of each parameter. Snips of other people's configs is the blind leading the blind and a massive time waster. Settings that make it lightning while it's not under load are precisely the settings that cause runaway server loads when you have high traffic. Apache has become so smart at managing itself lately, that the defaults often beat the tweaks. I'm going to try a roll out now after reading the upgrade info. (Tried just doing it with CustomBuild, and had to roll back the snapshot) :( Things didn't work right and the some of the DA configs are not updated to the new way. I know there is a new in beta, but I'm in no rush.
 
Last edited:
hi

i just upgraded to apache from 2.2 to 2.4.2 with php 5.3.13 and mod_ruid2 and i'm getting some errors in my httpd log and apache is going down randomly and fairly regularly. the most common problems seems to be:

[mpm_prefork:emerg] [pid 7985] (43)Identifier removed: AH00144: couldn't grab the accept mutex

any idea how to fix this? any advice appreciated.

Tue Jun 05 20:51:51.127546 2012] [mpm_prefork:emerg] [pid 8139] (13)Permission denied: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.311417 2012] [core:alert] [pid 7968] AH00050: Child 8139 returned a Fatal error... Apache is exiting!
[Tue Jun 05 20:51:51.322590 2012] [mpm_prefork:emerg] [pid 7984] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.322590 2012] [mpm_prefork:emerg] [pid 8138] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.322752 2012] [mpm_prefork:emerg] [pid 8317] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.323966 2012] [mpm_prefork:emerg] [pid 8136] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.327694 2012] [mpm_prefork:emerg] [pid 7985] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.328490 2012] [mpm_prefork:emerg] [pid 8311] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.331319 2012] [mpm_prefork:emerg] [pid 7972] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.331781 2012] [mpm_prefork:emerg] [pid 8322] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.331802 2012] [mpm_prefork:emerg] [pid 8325] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:51.332794 2012] [mpm_prefork:emerg] [pid 8319] (43)Identifier removed: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:52.056514 2012] [mpm_prefork:emerg] [pid 8324] (22)Invalid argument: AH00146: couldn't release the accept mutex
[Tue Jun 05 20:51:52.505489 2012] [mpm_prefork:emerg] [pid 7971] (22)Invalid argument: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:52.947926 2012] [mpm_prefork:emerg] [pid 8318] (22)Invalid argument: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:53.190045 2012] [mpm_prefork:emerg] [pid 8320] (22)Invalid argument: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:53.308409 2012] [mpm_prefork:emerg] [pid 8321] (22)Invalid argument: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:53.319815 2012] [mpm_prefork:emerg] [pid 7983] (22)Invalid argument: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:51:53.416647 2012] [mpm_prefork:emerg] [pid 7987] (22)Invalid argument: AH00144: couldn't grab the accept mutex
[Tue Jun 05 20:52:03.045351 2012] [ssl:warn] [pid 8410] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jun 05 20:52:03.045363 2012] [ssl:warn] [pid 8410] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Tue Jun 05 20:52:03.045409 2012] [ssl:warn] [pid 8410] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jun 05 20:52:03.045417 2012] [ssl:warn] [pid 8410] AH01909: RSA certificate configured for localhost:443 does NOT include an ID which matches the server name
[Tue Jun 05 20:52:03.045463 2012] [ssl:warn] [pid 8410] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jun 05 20:52:03.045473 2012] [ssl:warn] [pid 8410] AH01909: RSA certificate configured for shared.domain:443 does NOT include an ID which matches the server name
[Tue Jun 05 20:52:03.045505 2012] [suexec:notice] [pid 8410] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jun 05 20:52:03.096632 2012] [auth_digest:notice] [pid 8423] AH01757: generating secret for digest authentication ...
[Tue Jun 05 20:52:04.055379 2012] [ssl:warn] [pid 8423] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jun 05 20:52:04.055389 2012] [ssl:warn] [pid 8423] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Tue Jun 05 20:52:04.055434 2012] [ssl:warn] [pid 8423] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jun 05 20:52:04.055442 2012] [ssl:warn] [pid 8423] AH01909: RSA certificate configured for localhost:443 does NOT include an ID which matches the server name
[Tue Jun 05 20:52:04.055487 2012] [ssl:warn] [pid 8423] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jun 05 20:52:04.055495 2012] [ssl:warn] [pid 8423] AH01909: RSA certificate configured for shared.domain:443 does NOT include an ID which matches the server name
[Tue Jun 05 20:52:04.055533 2012] [lbmethod_heartbeat:notice] [pid 8423] AH02282: No slotmem from mod_heartmonitor
[Tue Jun 05 20:52:04.055576 2012] [:notice] [pid 8423] mod_ruid2/0.9.7 enabled
[Tue Jun 05 20:52:04.068030 2012] [core:warn] [pid 8423] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Jun 05 20:52:04.077426 2012] [mpm_prefork:notice] [pid 8423] AH00163: Apache/2.4.2 (Unix) OpenSSL/0.9.8e-fips-rhel5 configured -- resuming normal operations
[Tue Jun 05 20:52:04.077479 2012] [core:notice] [pid 8423] AH00094: Command line: '/usr/sbin/httpd -D SSL'

also getting a log of segmentation faults like this which i'm guessing are related:

[Tue Jun 05 21:02:20.787489 2012] [core:notice] [pid 8423] AH00052: child pid 9438 exit signal Segmentation fault (11)
[Tue Jun 05 21:04:58.969368 2012] [core:notice] [pid 8423] AH00052: child pid 9178 exit signal Segmentation fault (11)
[Tue Jun 05 21:05:02.974171 2012] [core:notice] [pid 8423] AH00052: child pid 9117 exit signal Segmentation fault (11)
[Tue Jun 05 21:05:18.992403 2012] [core:notice] [pid 8423] AH00052: child pid 9788 exit signal Segmentation fault (11)
[Tue Jun 05 21:05:23.998776 2012] [core:notice] [pid 8423] AH00052: child pid 9777 exit signal Segmentation fault (11)
[Tue Jun 05 21:05:40.019411 2012] [core:notice] [pid 8423] AH00052: child pid 10249 exit signal Segmentation fault (11)
 
Last edited:
many thanks :)

just a FYI for anyone that has the same problem AcceptMutex is no longer recognised, its just Mutex now. e.g.

Mutex posixsem

hopefully that's fixed it.

thanks again
 
Get here also weird error sometimes with apache 2.4.1 and the webserver is down few minuts.
[Wed Jun 06 01:37:03.027887 2012] [lbmethod_heartbeat:notice] [pid 14726] AH02282: No slotmem from mod_heartmonitor
[Wed Jun 06 01:37:03.027954 2012] [:notice] [pid 14726] mod_ruid2/0.9.4 enabled
[Wed Jun 06 01:37:03.033801 2012] [core:warn] [pid 14726] AH00098: pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jun 06 01:37:03.040235 2012] [mpm_prefork:notice] [pid 14726] AH00163: Apache/2.4.2 (Unix) OpenSSL/0.9.8e-fips-rhel5 PHP/5.3.13 configured -- resuming normal operations
[Wed Jun 06 01:37:03.040272 2012] [core:notice] [pid 14726] AH00094: Command line: '/usr/sbin/httpd -D SSL'
zend_mm_heap corrupted
zend_mm_heap corrupted
 
I can't compile PHP 5.3 for Apache 2.4 for some strange reason.

Getting this error in the ./configure:
Code:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `BINDIR'
apxs:Error: Invalid query string `APU_BINDIR'
apxs:Error: Invalid query string `APR_BINDIR'
./configure: line 6389: /apr-config: No such file or directory
./configure: line 6390: /apu-config: No such file or directory
yes
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no

PHP will compile fine, but after "make" it will abort with an error:
Code:
Installing php...
Installing PHP SAPI module:       apache2handler
apxs:Error: file libphp5.la is not a DSO
make: *** [install-sapi] Error 1

Does someone have an solution for this? When I use Apache 2.2 it compiles fine though.
 
Get here also weird error sometimes with apache 2.4.1
I ran it for a couple days. Almost everything worked fine, but I had some issues giving 404s on full URLs to some local pages. At first I thought it was something new with 2.4.1 or a rights issue. That didn't turn out to be the case. I noticed afterward that it is not available in FreeBSD ports after all this time. I assume from that, that 2.4 still has some issues that need to be resolved. I'll wait at least until it is in ports before trying it again, and until the next major version of Custombuild. 2.4, like PHP 5.3, requires configs quite different from previous versions in order to work correctly. The current version of Custombuild is not equipped to provide those, because it needs the configs from the next version of DA to install properly.
 
Last edited:
I can't compile PHP 5.3 for Apache 2.4 for some strange reason.

Getting this error in the ./configure:
Code:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... apxs:Error: Invalid query string `BINDIR'
apxs:Error: Invalid query string `APU_BINDIR'
apxs:Error: Invalid query string `APR_BINDIR'
./configure: line 6389: /apr-config: No such file or directory
./configure: line 6390: /apu-config: No such file or directory
yes
checking for Apache 1.x (hooks) module support via DSO through APXS... no
checking for Apache 1.x (hooks) module support... no
checking whether to enable Apache charset compatibility option... no

PHP will compile fine, but after "make" it will abort with an error:
Code:
Installing php...
Installing PHP SAPI module:       apache2handler
apxs:Error: file libphp5.la is not a DSO
make: *** [install-sapi] Error 1

Does someone have an solution for this? When I use Apache 2.2 it compiles fine though.

Well, updated to CustomBuild 1.2 and this fixed the problem for me.
 
so thinking of giving 2.4.1 a try

overall does anyone here have opinions?
good or bad?
if there are issues I should be able to roll back to 2.2 correct?
thanks.
 
is it just me or does 2.4.2 seem "slower" than 2.2.22?
this is just browsing experience, no real testing done just user experience reports.
 
I have the following errors after build apache (update to 2.4).

./build: line 7175: /usr/local/directadmin/data/users/admin/httpd.conf: No such file or directory
chown: invalid group: `diradmin:admin'
chmod: cannot access `/usr/local/directadmin/data/users/admin/httpd.conf': No such file or directory
ln: accessing `/usr/lib/libidn.so': Too many levels of symbolic links
./build: line 5071: echo: write error: Operation not permitted
rm: cannot remove `conftest*': No such file or directory
rm: cannot remove `conftest*': No such file or directory
grep: /usr/local/directadmin/custombuild/httpd-2.4.2/srclib/apr/libtool: No suchfile or directory
rm: cannot remove `libtoolT': No such file or directory
configure: WARNING: apr/apr-util is compiled without ldap support
configure: WARNING: apr/apr-util is compiled without ldap support
configure: WARNING: Your APR does not include SSL/EVP support.
libtool: install: warning: relinking `libaprutil-1.la'
insserv: warning: script 'K02mysqld' missing LSB tags and overrides
insserv: warning: script 'K02da-popb4smtp' missing LSB tags and overrides
insserv: warning: script 'K02dovecot' missing LSB tags and overrides
insserv: warning: script 'K02httpd' missing LSB tags and overrides
insserv: warning: script 'K02startips' missing LSB tags and overrides
insserv: warning: script 'K02directadmin' missing LSB tags and overrides
insserv: warning: script 'httpd' missing LSB tags and overrides
insserv: warning: script 'directadmin' missing LSB tags and overrides
insserv: warning: script 'named' missing LSB tags and overrides
insserv: warning: script 'dovecot' missing LSB tags and overrides
insserv: warning: script 'startips' missing LSB tags and overrides
insserv: warning: script 'mysqld' missing LSB tags and overrides
insserv: warning: script 'iptables' missing LSB tags and overrides
insserv: warning: script 'da-popb4smtp' missing LSB tags and overrides
insserv: Stopping iptables depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: Stopping iptables depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: Stopping iptables depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service munin-node and named if stopped
insserv: loop involving service named at depth 2
insserv: loop involving service munin-node at depth 1
insserv: Stopping named depends on munin-node and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/mod_ruid2.so into server: /usr/lib/apache/mod_ruid2.so: undefined symbol: unixd_config

What should i do to run apache 2.4.1 with mod_ruid2?
 
Before update i did:
perl -pi -e 's/unixd_config/ap_unixd_config/' mod_ruid2.c
perl -pi -e 's/#include "mpm_common.h"/#include "mpm_common.h"\n#include "unixd.h"/' mod_ruid2.c
apxs -a -i -l cap -c mod_ruid2.c

effect:
root@server:/usr/src/mod_ruid2-0.9.4#
root@server:/usr/src/mod_ruid2-0.9.4# perl -pi -e 's/un
root@server:/usr/src/mod_ruid2-0.9.4# perl -pi -e 's/#i
root@server:/usr/src/mod_ruid2-0.9.4# apxs -a -i -l cap
/var/www/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_REE /include/apache -I/usr/include/apache -c -o mod_ruid2.lo mod_ruid2.c && touch
/var/www/build/libtool --silent --mode=link gcc -o mod_ruid2.la -lcap -rpath /us
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' mod_ruid2.la /usr/l
/var/www/build/libtool --mode=install cp mod_ruid2.la /usr/lib/apache/
cp .libs/mod_ruid2.so /usr/lib/apache/mod_ruid2.so
cp .libs/mod_ruid2.lai /usr/lib/apache/mod_ruid2.la
cp .libs/mod_ruid2.a /usr/lib/apache/mod_ruid2.a
chmod 644 /usr/lib/apache/mod_ruid2.a
ranlib /usr/lib/apache/mod_ruid2.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/apache

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/apache/mod_ruid2.so
[activating module `ruid2' in /etc/httpd/conf/httpd.conf]
root@server:/usr/src/mod_ruid2-0.9.4# /etc/init.d/httpd

Should i do something more?
 
After the update, you need to install mod_ruid2 again. And in the latest version you don't need to do those perl replace things, apache 2.4 is supported.
 
Back
Top