Apache httpd 2.4.1 Released

Did someone uploaded it already?

Not at the moment, look in all mirrors filesX... and show 1.1.35 in Build Version:
http://files2.directadmin.com/services/custombuild/1.1/custombuild/build
http://files6.directadmin.com/services/custombuild/1.1/custombuild/build
http://files.directadmin.com/services/custombuild/1.1/custombuild/build
etc...

Anyway, yesterday using the procedure proposed by Daveyw, downloading the file manually and edit the versions.txt, I got upgraded to 2.4.1, then compiled PHP, but Apache could not start for several other problems, for example, mod_unixd is need for start Apache now.

Invalid command 'User', perhaps misspelled or defined by a module not included in the server configuration - load module mod_unixd
 
Last edited:
With the build of Apache 2.4.x you need to rebuild ALL modules you have installed with Apache, like PHP, mod_ruid2 (but doesn't work yet with 2.4.x) an may other modules in HTTPd.
 
Anyway, yesterday using the procedure proposed by Daveyw, downloading the file manually and edit the versions.txt, I got upgraded to 2.4.1, then compiled PHP, but Apache could not start for several other problems, for example, mod_unixd is need for start Apache now.

Just add modules in httpd.conf:

LoadModule unixd_module /usr/lib/apache/mod_unixd.so

btw, in 2.4. not need to use mod_rpaf.
New apache has internal module remoteip_module
 
Last edited:
Not at the moment, look in all mirrors filesX... and show 1.1.35 in Build Version:
http://files2.directadmin.com/services/custombuild/1.1/custombuild/build
http://files6.directadmin.com/services/custombuild/1.1/custombuild/build
http://files.directadmin.com/services/custombuild/1.1/custombuild/build
etc...

Anyway, yesterday using the procedure proposed by Daveyw, downloading the file manually and edit the versions.txt, I got upgraded to 2.4.1, then compiled PHP, but Apache could not start for several other problems, for example, mod_unixd is need for start Apache now.


http://files6.directadmin.com/services/custombuild/

apr-1.4.6.tar.gz 24-Feb-2012 04:59 959K
apr-util-1.4.1.tar.gz 24-Feb-2012 04:59 757K

That are the correct files! Hmm...

Edit:
Can't we use the http://files6.directadmin.com/services/custombuild/httpd-2.4.0-deps.tar.gz for 2.4.1?
 
Last edited:
Just add modules in httpd.conf:

LoadModule unixd_module /usr/lib/apache/mod_unixd.so

btw, in 2.4. not need to use mod_rpaf.
New apache has internal module remoteip_module

No additional modules are needed, probably you have wrong configure.apache file (with an old version of CB 1.1/1.2). configure.apache should look like:
Code:
#!/bin/sh 
"./configure" \
         "--prefix=/etc/httpd" \
         "--exec-prefix=/etc/httpd" \
         "--bindir=/usr/bin" \
         "--sbindir=/usr/sbin" \
         "--sysconfdir=/etc/httpd/conf" \
         "--enable-so" \
         "--enable-dav" \
         "--enable-dav-fs" \
         "--enable-dav-lock" \
         "--enable-suexec" \
         "--enable-deflate" \
         "--enable-unique-id" \
         "--enable-mods-static=most" \
         "--with-mpm=prefork" \
         "--with-suexec-caller=apache" \
         "--with-suexec-docroot=/" \
         "--with-suexec-gidmin=100" \
         "--with-suexec-logfile=/var/log/httpd/suexec_log" \
         "--with-suexec-uidmin=100" \
         "--with-suexec-userdir=public_html" \
         "--with-suexec-bin=/usr/sbin/suexec" \
         "--with-included-apr" \
         "--with-pcre=/usr/local" \
         "--includedir=/usr/include/apache" \
         "--libexecdir=/usr/lib/apache" \
         "--datadir=/var/www" \
         "--localstatedir=/var" \
         "--enable-logio" \
         "--enable-ssl" \
         "--enable-rewrite" \
         "--enable-proxy" \
         "--enable-expires" \
         "--with-ssl=/usr" \
         "--enable-headers"
build file should look like http://www.custombuild.eu/build-1.1 or http://www.custombuild.eu/build-1.2.
 
in files2 mirror, CB is update to 1.1.36, after compiling apache and php when try start apache show this error:

Code:
Starting httpd: AH00526: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-directories.conf:
Either all Options must start with + or -, or no Option may.

./build rewrite_confs does not solve the problem, I think we have to modify some settings

if use "/configure/ap2/conf/extra/httpd-directories-new.conf" soved problem, then:

Code:
[core:warn] [pid 27813] AH00117: Ignoring deprecated use of DefaultType in line 59 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

...but Apache start, now problem is php cant load modules (APC, Geoip, etc...).
 
Last edited:
Code:
Starting httpd: AH00526: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-directories.conf:
Either all Options must start with + or -, or no Option may.

Same problem here. Also, with suPHP, I got error below :

Code:
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_suphp.so into server: /usr/lib/apache/mod_suphp.so: undefined symbol: ap_log_rerror

Try to ./build suphp and got error below

Code:
Making all in src
make[1]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make  all-recursive
make[2]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
Making all in apache
make[3]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src/apache'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src    -I/usr/include/apache -DSUPHP_PATH_TO_SUPHP=\"/usr/local/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c -o mod_suphp.lo mod_suphp.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../../src -I/usr/include/apache -DSUPHP_PATH_TO_SUPHP=\"/usr/local/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c mod_suphp.c  -fPIC -DPIC -o .libs/mod_suphp.o
mod_suphp.c:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_module'
mod_suphp.c:59: error: expected specifier-qualifier-list before 'table'
mod_suphp.c:66: error: expected ')' before '*' token
mod_suphp.c:84: error: expected ')' before '*' token
mod_suphp.c:125: error: expected ')' before '*' token
mod_suphp.c:145: error: expected ')' before '*' token
mod_suphp.c: In function 'suphp_handle_cmd_engine':
mod_suphp.c:191: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:191: error: (Each undeclared identifier is reported only once
mod_suphp.c:191: error: for each function it appears in.)
mod_suphp.c: In function 'suphp_handle_cmd_config':
mod_suphp.c:207: warning: assignment makes pointer from integer without a cast
mod_suphp.c: In function 'suphp_handle_cmd_user_group':
mod_suphp.c:222: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:224: warning: assignment makes pointer from integer without a cast
mod_suphp.c:225: warning: assignment makes pointer from integer without a cast
mod_suphp.c: In function 'suphp_handle_cmd_add_handler':
mod_suphp.c:238: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:241: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c: In function 'suphp_handle_cmd_remove_handler':
mod_suphp.c:253: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:256: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c: In function 'suphp_handle_cmd_phppath':
mod_suphp.c:266: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:268: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c: At top level:
mod_suphp.c:277: warning: initialization from incompatible pointer type
mod_suphp.c:279: warning: initialization from incompatible pointer type
mod_suphp.c:282: warning: initialization from incompatible pointer type
mod_suphp.c:285: warning: initialization from incompatible pointer type
mod_suphp.c:287: warning: initialization from incompatible pointer type
mod_suphp.c:289: warning: initialization from incompatible pointer type
mod_suphp.c:296: error: expected declaration specifiers or '...' before 'child_info'
mod_suphp.c: In function 'suphp_source_child':
mod_suphp.c:299: error: 'pool' undeclared (first use in this function)
mod_suphp.c:299: error: 'p' undeclared (first use in this function)
mod_suphp.c:302: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:309: warning: assignment makes pointer from integer without a cast
mod_suphp.c:310: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:310: warning: assignment makes pointer from integer without a cast
mod_suphp.c:312: warning: assignment makes pointer from integer without a cast
mod_suphp.c:325: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:329: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:329: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:329: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c: At top level:
mod_suphp.c:336: error: expected declaration specifiers or '...' before 'child_info'
mod_suphp.c: In function 'suphp_child':
mod_suphp.c:339: error: 'pool' undeclared (first use in this function)
mod_suphp.c:339: error: 'p' undeclared (first use in this function)
mod_suphp.c:351: warning: assignment makes pointer from integer without a cast
mod_suphp.c:368: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:368: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:368: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:376: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:376: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:376: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:384: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:384: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:384: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:392: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:392: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:392: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:412: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:412: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c: In function 'suphp_source_handler':
mod_suphp.c:424: error: 'pool' undeclared (first use in this function)
mod_suphp.c:424: error: 'p' undeclared (first use in this function)
mod_suphp.c:426: error: 'BUFF' undeclared (first use in this function)
mod_suphp.c:426: error: 'script_in' undeclared (first use in this function)
mod_suphp.c:426: error: 'script_out' undeclared (first use in this function)
mod_suphp.c:426: error: 'script_err' undeclared (first use in this function)
mod_suphp.c:433: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:434: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:445: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:445: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:449: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:449: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:453: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:453: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:459: error: 'kill_after_timeout' undeclared (first use in this function)
mod_suphp.c:462: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:462: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c: In function 'suphp_handler':
mod_suphp.c:514: error: storage size of 'finfo' isn't known
mod_suphp.c:521: error: 'pool' undeclared (first use in this function)
mod_suphp.c:521: error: 'p' undeclared (first use in this function)
mod_suphp.c:523: error: 'BUFF' undeclared (first use in this function)
mod_suphp.c:523: error: 'script_in' undeclared (first use in this function)
mod_suphp.c:523: error: 'script_out' undeclared (first use in this function)
mod_suphp.c:523: error: 'script_err' undeclared (first use in this function)
mod_suphp.c:527: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:539: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:539: warning: comparison between pointer and integer
mod_suphp.c:540: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:540: warning: comparison between pointer and integer
mod_suphp.c:541: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:541: error: invalid type argument of 'unary *'
mod_suphp.c:544: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:544: error: invalid type argument of 'unary *'
mod_suphp.c:563: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:563: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:567: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:567: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:571: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:571: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:587: warning: initialization makes pointer from integer without a cast
mod_suphp.c:596: warning: assignment makes pointer from integer without a cast
mod_suphp.c:597: error: dereferencing pointer to incomplete type
mod_suphp.c:599: warning: assignment makes pointer from integer without a cast
mod_suphp.c:600: error: dereferencing pointer to incomplete type
mod_suphp.c:602: warning: assignment makes pointer from integer without a cast
mod_suphp.c:620: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:620: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:620: error: too few arguments to function 'ap_log_rerror_'
mod_suphp.c:649: warning: assignment makes pointer from integer without a cast
mod_suphp.c:658: warning: assignment makes pointer from integer without a cast
mod_suphp.c:659: warning: assignment makes pointer from integer without a cast
mod_suphp.c:690: error: 'kill_after_timeout' undeclared (first use in this function)
mod_suphp.c:693: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:693: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:742: warning: assignment makes pointer from integer without a cast
mod_suphp.c:755: warning: assignment makes pointer from integer without a cast
mod_suphp.c:768: error: 'REDIRECT' undeclared (first use in this function)
mod_suphp.c: At top level:
mod_suphp.c:789: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_handlers'
mod_suphp.c:798: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_module'
make[3]: *** [mod_suphp.lo] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make: *** [all-recursive] Error 1

*** The make has failed, would you like to try to make again? (y,n):

My Custombuild version is 1.2.31.
 
All directives in Options should start with "-" or "+":
Options +IncludesNoExec +Includes +SymLinksIfOwnerMatch +ExecCGI -Indexes

NameVirtualHost now is deprecated and not used anymore

Order deny,allow
Deny from all


should be changed to:
Require all denied

and etc, etc.

Please read how to upgrade from 2.2. to 2.4
 
Same problem here. Also, with suPHP, I got error below :

Code:
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_suphp.so into server: /usr/lib/apache/mod_suphp.so: undefined symbol: ap_log_rerror

Try to ./build suphp and got error below

Code:
Making all in src
make[1]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make  all-recursive
make[2]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
Making all in apache
make[3]: Entering directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src/apache'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src    -I/usr/include/apache -DSUPHP_PATH_TO_SUPHP=\"/usr/local/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c -o mod_suphp.lo mod_suphp.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../../src -I/usr/include/apache -DSUPHP_PATH_TO_SUPHP=\"/usr/local/suphp/sbin/suphp\" -DSUPHP_USE_USERGROUP -g -O2 -MT mod_suphp.lo -MD -MP -MF .deps/mod_suphp.Tpo -c mod_suphp.c  -fPIC -DPIC -o .libs/mod_suphp.o
mod_suphp.c:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_module'
mod_suphp.c:59: error: expected specifier-qualifier-list before 'table'
mod_suphp.c:66: error: expected ')' before '*' token
mod_suphp.c:84: error: expected ')' before '*' token
mod_suphp.c:125: error: expected ')' before '*' token
mod_suphp.c:145: error: expected ')' before '*' token
mod_suphp.c: In function 'suphp_handle_cmd_engine':
mod_suphp.c:191: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:191: error: (Each undeclared identifier is reported only once
mod_suphp.c:191: error: for each function it appears in.)
mod_suphp.c: In function 'suphp_handle_cmd_config':
mod_suphp.c:207: warning: assignment makes pointer from integer without a cast
mod_suphp.c: In function 'suphp_handle_cmd_user_group':
mod_suphp.c:222: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:224: warning: assignment makes pointer from integer without a cast
mod_suphp.c:225: warning: assignment makes pointer from integer without a cast
mod_suphp.c: In function 'suphp_handle_cmd_add_handler':
mod_suphp.c:238: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:241: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c: In function 'suphp_handle_cmd_remove_handler':
mod_suphp.c:253: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:256: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c: In function 'suphp_handle_cmd_phppath':
mod_suphp.c:266: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:268: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c: At top level:
mod_suphp.c:277: warning: initialization from incompatible pointer type
mod_suphp.c:279: warning: initialization from incompatible pointer type
mod_suphp.c:282: warning: initialization from incompatible pointer type
mod_suphp.c:285: warning: initialization from incompatible pointer type
mod_suphp.c:287: warning: initialization from incompatible pointer type
mod_suphp.c:289: warning: initialization from incompatible pointer type
mod_suphp.c:296: error: expected declaration specifiers or '...' before 'child_info'
mod_suphp.c: In function 'suphp_source_child':
mod_suphp.c:299: error: 'pool' undeclared (first use in this function)
mod_suphp.c:299: error: 'p' undeclared (first use in this function)
mod_suphp.c:302: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:309: warning: assignment makes pointer from integer without a cast
mod_suphp.c:310: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:310: warning: assignment makes pointer from integer without a cast
mod_suphp.c:312: warning: assignment makes pointer from integer without a cast
mod_suphp.c:325: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:329: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:329: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:329: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c: At top level:
mod_suphp.c:336: error: expected declaration specifiers or '...' before 'child_info'
mod_suphp.c: In function 'suphp_child':
mod_suphp.c:339: error: 'pool' undeclared (first use in this function)
mod_suphp.c:339: error: 'p' undeclared (first use in this function)
mod_suphp.c:351: warning: assignment makes pointer from integer without a cast
mod_suphp.c:368: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:368: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:368: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:376: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:376: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:376: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:384: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:384: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:384: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:392: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:392: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c:392: error: too few arguments to function 'ap_log_error_'
mod_suphp.c:412: warning: passing argument 5 of 'ap_log_error_' makes integer from pointer without a cast
mod_suphp.c:412: warning: passing argument 6 of 'ap_log_error_' from incompatible pointer type
mod_suphp.c: In function 'suphp_source_handler':
mod_suphp.c:424: error: 'pool' undeclared (first use in this function)
mod_suphp.c:424: error: 'p' undeclared (first use in this function)
mod_suphp.c:426: error: 'BUFF' undeclared (first use in this function)
mod_suphp.c:426: error: 'script_in' undeclared (first use in this function)
mod_suphp.c:426: error: 'script_out' undeclared (first use in this function)
mod_suphp.c:426: error: 'script_err' undeclared (first use in this function)
mod_suphp.c:433: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:434: error: 'suphp_conf' has no member named 'php_path'
mod_suphp.c:445: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:445: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:449: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:449: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:453: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:453: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:459: error: 'kill_after_timeout' undeclared (first use in this function)
mod_suphp.c:462: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:462: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c: In function 'suphp_handler':
mod_suphp.c:514: error: storage size of 'finfo' isn't known
mod_suphp.c:521: error: 'pool' undeclared (first use in this function)
mod_suphp.c:521: error: 'p' undeclared (first use in this function)
mod_suphp.c:523: error: 'BUFF' undeclared (first use in this function)
mod_suphp.c:523: error: 'script_in' undeclared (first use in this function)
mod_suphp.c:523: error: 'script_out' undeclared (first use in this function)
mod_suphp.c:523: error: 'script_err' undeclared (first use in this function)
mod_suphp.c:527: error: 'suphp_module' undeclared (first use in this function)
mod_suphp.c:539: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:539: warning: comparison between pointer and integer
mod_suphp.c:540: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:540: warning: comparison between pointer and integer
mod_suphp.c:541: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:541: error: invalid type argument of 'unary *'
mod_suphp.c:544: error: 'suphp_conf' has no member named 'handlers'
mod_suphp.c:544: error: invalid type argument of 'unary *'
mod_suphp.c:563: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:563: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:567: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:567: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:571: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:571: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:587: warning: initialization makes pointer from integer without a cast
mod_suphp.c:596: warning: assignment makes pointer from integer without a cast
mod_suphp.c:597: error: dereferencing pointer to incomplete type
mod_suphp.c:599: warning: assignment makes pointer from integer without a cast
mod_suphp.c:600: error: dereferencing pointer to incomplete type
mod_suphp.c:602: warning: assignment makes pointer from integer without a cast
mod_suphp.c:620: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:620: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:620: error: too few arguments to function 'ap_log_rerror_'
mod_suphp.c:649: warning: assignment makes pointer from integer without a cast
mod_suphp.c:658: warning: assignment makes pointer from integer without a cast
mod_suphp.c:659: warning: assignment makes pointer from integer without a cast
mod_suphp.c:690: error: 'kill_after_timeout' undeclared (first use in this function)
mod_suphp.c:693: warning: passing argument 5 of 'ap_log_rerror_' makes integer from pointer without a cast
mod_suphp.c:693: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type
mod_suphp.c:742: warning: assignment makes pointer from integer without a cast
mod_suphp.c:755: warning: assignment makes pointer from integer without a cast
mod_suphp.c:768: error: 'REDIRECT' undeclared (first use in this function)
mod_suphp.c: At top level:
mod_suphp.c:789: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_handlers'
mod_suphp.c:798: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suphp_module'
make[3]: *** [mod_suphp.lo] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src/apache'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/directadmin/custombuild/suphp-0.7.1/src'
make: *** [all-recursive] Error 1

*** The make has failed, would you like to try to make again? (y,n):

My Custombuild version is 1.2.31.

mod_suphp 0.7.1 is not compatible with apache 2.4, but I made it compatible in CB 1.1.37 and 1.2.32. You may give it a try:
CB 1.1:
Code:
cd /usr/local/directadmin/custombuild
wget -O build http://www.custombuild.eu/build-1.1
./build suphp

CB 1.2:
Code:
cd /usr/local/directadmin/custombuild
wget -O build http://www.custombuild.eu/build-1.2
./build suphp

Good luck!
 
in files2 mirror, CB is update to 1.1.36, after compiling apache and php when try start apache show this error:

Code:
Starting httpd: AH00526: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-directories.conf:
Either all Options must start with + or -, or no Option may.

./build rewrite_confs does not solve the problem, I think we have to modify some settings

if use "/configure/ap2/conf/extra/httpd-directories-new.conf" soved problem, then:

Code:
[core:warn] [pid 27813] AH00117: Ignoring deprecated use of DefaultType in line 59 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

...but Apache start, now problem is php cant load modules (APC, Geoip, etc...).

You should recompile PHP and all of its modules.
 
So far I can see, is mod_ruid(2) not yet compatible with Apache 2.4.
Any can confirm this?

I got it to work. How to:
Code:
wget -O mod_ruid2-0.9.4.tar.bz2"http://downloads.sourceforge.net/project/mod-ruid/mod_ruid2/mod_ruid2-0.9.4.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmod-ruid%2Ffiles%2Fmod_ruid2%2F&ts=1330166943&use_mirror=kent"
tar xjf mod_ruid2-0.9.4.tar.bz2
cd mod_ruid2-0.9.4
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

That's it!
 
Upgraded to Apache 2.4 on FreeBSD 7.4 like a charm using CustomBuild 1.1.

First upgrade Apache, then RECOMPILE PHP. Without recompiling PHP it won't work.

Finally few lines in the conf files must be commented - for example the "NameVirtualHost" lines in /etc/httpd/conf/ips.conf
 
Actually it was not flawless. My Apache error log contained many lines regarding ioncube. So I did "./build set ioncube no" and then check this out:

/usr/local/directadmin/custombuild: ./build update_versions
Failed loading /usr/local/lib/ioncube_loader_fre_5.3.so: /usr/local/lib/ioncube_loader_fre_5.3.so: Undefined symbol "executor_globals"
Failed loading /usr/local/lib/ioncube_loader_fre_5.3.so: /usr/local/lib/ioncube_loader_fre_5.3.so: Undefined symbol "executor_globals"
Failed loading /usr/local/lib/ioncube_loader_fre_5.3.so: /usr/local/lib/ioncube_loader_fre_5.3.so: Undefined symbol "executor_globals"

The apache error log is full with the same. I will recompile apache now to see if it will fix it.

P.S. No, not fixed...

P.S.2. Removed the extension from PHP.ini and all worked fine. Now I have two more errors "to go":

[Sat Feb 25 18:24:49.008689 2012] [core:error] [pid 80626] (2)No such file or directory: AH00095: failed to remove PID file /var/run/httpd.pid
[Sat Feb 25 18:24:49.008736 2012] [mpm_prefork:notice] [pid 80626] AH00169: caught SIGTERM, shutting down

What are these for?
 
Last edited:
[Sat Feb 25 18:24:49.008689 2012] [core:error] [pid 80626] (2)No such file or directory: AH00095: failed to remove PID file /var/run/httpd.pid
[Sat Feb 25 18:24:49.008736 2012] [mpm_prefork:notice] [pid 80626] AH00169: caught SIGTERM, shutting down

What are these for?

Those are just telling you that you shutdown apache. As long as its running now, you can ignore those messages.
I assume they only happened once or twice, are they constantly repeating?
 
Unable to get this to work with APC and Ioncube.
I can live without APC but need Ioncube.
Reverted back to 2.2.22.
 
use ioncube_loader_lin_5.3_ts.so instead of ioncube_loader_lin_5.3.so
i unpacked it manually to /usr/local/lib,
edited /usr/local/lib/php.ini line where it says

zend_extension=/usr/local/lib/ioncube_loader_lin_5.3.so
to
zend_extension=/usr/local/lib/ioncube_loader_lin_5.3_ts.so

then restart apache:
service httpd restart

edit:
i ran into some issues later on caused by /usr/local/installatron/etc/php.ini changed
zend_extension_ts = "/usr/local/installatron/etc/ioncube_loader_lin_5.3_ts.so"
to
zend_extension=/usr/local/lib/ioncube_loader_lin_5.3_ts.so
 
Last edited:
Back
Top