Apache 2.4.26

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

Try:
Code:
pkg install expat
 
I read through the thread and based on the flow I can't tell if it's safe to update to 2.4.26 with custombuild or if I do, will I have to run

Code:
echo 'ProxyFCGIBackendType GENERIC' >> /etc/httpd/conf/extra/httpd-phpmodules.conf
service httpd restart

to fix the PHP-FPM issue? Can anyone speak to this?

Cheers
 
Last edited:
I read through the thread and based on the flow I can't tell if it's safe to update to 2.4.26 with custombuild or if I do, will I have to run

Code:
echo 'ProxyFCGIBackendType GENERIC' >> /etc/httpd/conf/extra/httpd-phpmodules.conf
service httpd restart

to fix the PHP-FPM issue? Can anyone speak to this?

Cheers

This is done automatically with the latest version of CustomBuild 2.0, so, no manual actions are needed after update.
 
Please add a check of Apache version before inserting the line:

Code:
[root@host custombuild]# apachectl -t
AH00526: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
Invalid command 'ProxyFCGIBackendType', perhaps misspelled or defined by a module not included in the server configuration




[root@host custombuild]# apachectl -v
Server version: Apache/2.4.25 (Unix)
Server built:   May  8 2017 05:12:52


There might be older Apache versions used and for some reasons.
 
Please add a check of Apache version before inserting the line:

Code:
[root@host custombuild]# apachectl -t
AH00526: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
Invalid command 'ProxyFCGIBackendType', perhaps misspelled or defined by a module not included in the server configuration




[root@host custombuild]# apachectl -v
Server version: Apache/2.4.25 (Unix)
Server built:   May  8 2017 05:12:52


There might be older Apache versions used and for some reasons.

Same issue here, I updated PHP while still running Apache 2.4.25 and Apache failed to start:

AH00526: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-phpmodules.conf
Invalid command 'ProxyFCGIBackendType', perhaps misspelled or defined by a module not included in the server configuration
 
Same issue here, I updated PHP while still running Apache 2.4.25 and Apache failed to start:

AH00526: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-phpmodules.conf
Invalid command 'ProxyFCGIBackendType', perhaps misspelled or defined by a module not included in the server configuration

Hello!

I had the same problem and after doing this it started working:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build apache

Apache updated to 2.4.26 because in the documentation I found this line:
Code:
Compatibility:	Available in version 2.4.26 and later

Signed up just to help you out! Hope it helps :)
 
Hi,

I read the complete forums but nothing helped. I started with this error:

make[3]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.27/modules/mappers'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.27/modules'
make[2]: Entering directory `/usr/local/directadmin/custombuild/httpd-2.4.27/support'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.27/support'

Code:
modules/ssl/.libs/libmod_ssl.a(ssl_engine_init.o): In function `ssl_init_ctx_tls_extensions':
ssl_engine_init.c:(.text+0x12f7): undefined reference to `SRP_VBASE_new'
ssl_engine_init.c:(.text+0x13d8): undefined reference to `SRP_VBASE_init'
ssl_engine_init.c:(.text+0x147e): undefined reference to `SSL_CTX_set_srp_username_callback'
ssl_engine_init.c:(.text+0x1495): undefined reference to `SSL_CTX_set_srp_cb_arg'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_init.o): In function `ssl_init_ctx_cleanup':
ssl_engine_init.c:(.text+0x5025): undefined reference to `SRP_VBASE_free'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o): In function `ssl_hook_Access':
ssl_engine_kernel.c:(.text+0x16ea): undefined reference to `SSL_get_srp_username'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_kernel.o): In function `ssl_callback_SRPServerParams':
ssl_engine_kernel.c:(.text+0x8713): undefined reference to `SSL_get_srp_username'
ssl_engine_kernel.c:(.text+0x8738): undefined reference to `SRP_VBASE_get_by_user'
ssl_engine_kernel.c:(.text+0x8791): undefined reference to `SSL_set_srp_server_param'
modules/ssl/.libs/libmod_ssl.a(ssl_engine_vars.o): In function `ssl_var_lookup_ssl':
ssl_engine_vars.c:(.text+0x15bd): undefined reference to `SSL_get_srp_username'
ssl_engine_vars.c:(.text+0x160f): undefined reference to `SSL_get_srp_userinfo'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.27'
make: *** [all-recursive] Error 1

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

I tried to install several packages suggested here:

1. liblve-devel
2. expat
3. expat-devel

Nothing works and i am keeping getting this error after updating.
Any suggestions where to look? We run: centos-release-6-9.el6.12.3.x86_64
 
It's been solved with the following commands:
yum -y reinstall openssl openssl-devel
cd /usr/local/directadmin/custombuild
./build update
./build apache
 
Back
Top