Apache 2.4.26

On three out of six Centos 6 servers with Custombuild 2 I ran into this error:
Code:
[root@vps2 custombuild]# /bin/sh /usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/libtool --silent --mode=link gcc  -pthread  -I/usr/local/include   -L/usr/local/lib -Lbuiltin/lib -release 1 -module -rpath /etc/httpd/lib/apr-util-1 -o dbd/apr_dbd_sqlite3.la dbd/apr_dbd_sqlite3.lo -lsqlite3
/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/libtool: line 7475: cd: builtin/lib: No such file or directory
libtool:   error: cannot determine absolute directory name of 'builtin/lib'
or, better readable:
[root@vps2 custombuild]# /bin/sh /usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/libtool --silent --mode=link gcc -pthread -I/usr/local/include -L/usr/local/lib -Lbuiltin/lib -release 1 -module -rpath /etc/httpd/lib/apr-util-1 -o dbd/apr_dbd_sqlite3.la dbd/apr_dbd_sqlite3.lo -lsqlite3
/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/libtool: line 7475: cd: builtin/lib: No such file or directory
libtool: error: cannot determine absolute directory name of 'builtin/lib'
Am I missing a dependency or something like that?

Edit: The same happens if I start in
Code:
[root@vps2 custombuild]# cd /usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr-util
 
Last edited:
On three out of six Centos 6 servers with Custombuild 2 I ran into this error:
Code:
[root@vps2 custombuild]# /bin/sh /usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/libtool --silent --mode=link gcc  -pthread  -I/usr/local/include   -L/usr/local/lib -Lbuiltin/lib -release 1 -module -rpath /etc/httpd/lib/apr-util-1 -o dbd/apr_dbd_sqlite3.la dbd/apr_dbd_sqlite3.lo -lsqlite3
/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/libtool: line 7475: cd: builtin/lib: No such file or directory
libtool:   error: cannot determine absolute directory name of 'builtin/lib'
or, better readable:

Am I missing a dependency or something like that?

Edit: The same happens if I start in
Code:
[root@vps2 custombuild]# cd /usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr-util

Please make sure you don't have --with-expat=builtin in custom/ap2/configure.apache.
 
echo 'ProxyFCGIBackendType GENERIC' >> /etc/httpd/conf/extra/httpd-phpmodules.conf
service httpd restart

this did the trick for me, too, after apache just updated to 2.4.26 and broke my WHMCS admin area.
I use php-fpm54 and php-fpm55
 
Please try:
Code:
echo 'ProxyFCGIBackendType GENERIC' >> /etc/httpd/conf/extra/httpd-phpmodules.conf
service httpd restart

Thank you so much.

I was getting 'too many redirects' issues with some forum software after upgrading to 2.4.26, this was the needed fix.
 
Please try:
Code:
echo 'ProxyFCGIBackendType GENERIC' >> /etc/httpd/conf/extra/httpd-phpmodules.conf
service httpd restart

Thank you! That fixed all issues for me.

Update: just a note that switching the web server (apache to nginx_apache etc) requires running the above fix again.
 
Last edited:
Mario,

Do you have any mod_rewrite rules in .htaccess to check a domain and redirect an user ?

Yes.. But i think this changing makes trouble.

mod_rewrite: When a substitution is a fully qualified URL, and the scheme/host/port matches the current virtual host, stop interpreting the path component as a local path just because the first component of the path exists in the filesystem. Adds RewriteOption "LegacyPrefixDocRoot" to revert to previous behavior. PR60009.

But i have no idea how i can fix this :(
 
Yes.. But i think this changing makes trouble.



But i have no idea how i can fix this :(

Is this helping you?
http://httpd.apache.org/docs/current/mod/mod_rewrite.html
LegacyPrefixDocRoot

Prior to 2.4.26, if a substitution was an absolute URL that matched the current virtual host, the URL might first be reduced to a URL-path and then later reduced to a local path. Since the URL can be reduced to a local path, the path should be prefixed with the document root. This prevents a file such as /tmp/myfile from being accessed when a request is made to http://host/file/myfile with the following RewriteRule.

RewriteRule /file/(.*) http://localhost/tmp/$1

This option allows the old behavior to be used where the document root is not prefixed to a local path that was reduced from a URL. Available in 2.4.26 and later.

https://github.com/apache/httpd/commit/trunk
 
Last edited:
I thought I had to identical boxes but it builds on 1, but not on the other :confused:
This is what I get on FreeBSD:

Code:
xml/apr_xml.c:35:19: error: expat.h: No such file or directory
xml/apr_xml.c:66: error: expected specifier-qualifier-list before 'XML_Parser'
xml/apr_xml.c: In function 'cleanup_parser':
xml/apr_xml.c:364: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:365: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: At top level:
xml/apr_xml.c:384: error: expected ';', ',' or ')' before '*' token
xml/apr_xml.c: In function 'apr_xml_parser_create':
xml/apr_xml.c:401: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:402: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:410: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:411: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:412: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'default_handler' undeclared (first use in this function)
xml/apr_xml.c:424: error: (Each undeclared identifier is reported only once
xml/apr_xml.c:424: error: for each function it appears in.)
xml/apr_xml.c: In function 'do_parse':
xml/apr_xml.c:434: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:438: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: In function 'apr_xml_parser_geterror':
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'
*** Error code 1
gcc -E -DHAVE_CONFIG_H     -I/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr-util/include -I/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr-util/include/private  -I/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/include  export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> aprutil.exp
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
 
Please could you post a howto for other forumusers? ;)


After one Day of testing the "bug" (or what ever it is) is back. :(
mod_rewrite or something else cut 5 letter from the URL again.

It is possible thats is an problem from "Typo3" and the extension realUrl
but in Apache 2.4.25 it works. Only with Apache 2.4.26 he cuts the letter in the Url!

we look forward to find a solution !

Mario
 
UH sorry but please read topic before posting see
http://forum.directadmin.com/showthread.php?t=54952&page=2&p=281619#post281619

I thought I had to identical boxes but it builds on 1, but not on the other :confused:
This is what I get on FreeBSD:

Code:
xml/apr_xml.c:35:19: error: expat.h: No such file or directory
xml/apr_xml.c:66: error: expected specifier-qualifier-list before 'XML_Parser'
xml/apr_xml.c: In function 'cleanup_parser':
xml/apr_xml.c:364: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:365: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: At top level:
xml/apr_xml.c:384: error: expected ';', ',' or ')' before '*' token
xml/apr_xml.c: In function 'apr_xml_parser_create':
xml/apr_xml.c:401: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:402: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:410: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:411: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:412: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'default_handler' undeclared (first use in this function)
xml/apr_xml.c:424: error: (Each undeclared identifier is reported only once
xml/apr_xml.c:424: error: for each function it appears in.)
xml/apr_xml.c: In function 'do_parse':
xml/apr_xml.c:434: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:438: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: In function 'apr_xml_parser_geterror':
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'
*** Error code 1
gcc -E -DHAVE_CONFIG_H     -I/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr-util/include -I/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr-util/include/private  -I/usr/local/directadmin/custombuild/httpd-2.4.26/srclib/apr/include  export_vars.c | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> aprutil.exp
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
 
Back
Top