Strange httpd.conf error when installing HTTP2
Good day everyone,
I'm installing the latest (and fresh) http2 module via ea4, but upon installing I see this on the log
Am I missing something? Currently using: cPanel & WHM 64.0 (build 32) Production server is like 4 years old so I expect some older conf making some trouble. Regards,
httpd: Syntax error on line 27 of /etc/apache2/conf/httpd.conf: Syntax error on line 2 of /etc/apache2/conf.modules.d/485_mod_http2.conf: Cannot load modules/mod_http2.so into server: /etc/apache2/modules/mod_http2.so: undefined symbol: nghttp2_session_callbacks_set_on_invalid_header_callbackAm I missing something? Currently using: cPanel & WHM 64.0 (build 32) Production server is like 4 years old so I expect some older conf making some trouble. Regards,
-
Hi, Do you have ea-nghttp2 installed? This is a requirement of the HTTP2 RPM, so it should have been installed automatically. 0 -
undefined symbol: nghttp2_session_callbacks_set_on_invalid_header_callback
Hello, This can also happen if your system is linking to a previously installed nghttp2 library. You can verify if that's the case by running a command like this:ldconfig -p | grep libnghttp2
If you see a reference to a path such as "/opt/nghttp2/lib" in the output, then your system is linking to the wrong library. To correct this, run the following command to verify the correct RPM is installed:rpm -qf /usr/lib64/libnghttp2.so.14
The output should look like this:# rpm -qf /usr/lib64/libnghttp2.so.14 ea-libnghttp2-1.20.0-2.2.1.cpanel.x86_64
If so, proceed to edit the /etc/ld.so.conf.d/nghttp2.conf file so that it uses the following line:/usr/lib64
Then, run the following commands to complete the installation:ldconfig yum install ea-apache24-mod_http2
Thank you.0 -
If you see a reference to a path such as "/opt/nghttp2/lib" in the output, then your system is linking to the wrong library. To correct this, run the following command to verify the correct RPM is installed:
Thanks, that was the problem. After following your instructions the new H2 can be installed perfectly0
Please sign in to leave a comment.
Comments
3 comments