error upgrade apache

bahar

Verified User
Joined
Oct 23, 2019
Messages
9
we have updated apache to the newer version (2.4.46), after this task has been done the webserver stopped and we encountered an error as follows:
'/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_os_uuid_get'

how to install apache version 2.4.46 and solve the mentioned error?
 
Centos 7 - 64BIT - nginx_apache Can update without error
What is your OS ?

Looks like the versions are off on apr and httpd (httpd's been compiled against a different version of apr)
 
Centos 7 - 64BIT - nginx_apache Can update without error
What is your OS ?

Looks like the versions are off on apr and httpd (httpd's been compiled against a different version of apr)

how checked versions are off on apr ?
how upgrade or downgrade version apr?
What version of Apache 2.4.46 apr Installation must be ?
 
httpd -v


should have something like
Code:
Server loaded:  APR 1.6.5, APR-UTIL 1.6.1
Compiled using: APR 1.6.5, APR-UTIL 1.6.1

I told you should put information like " OS Version " to your post that every one can help you.
Because different OS have cause not the same at all
 
Updates are installed automatically. Ever since last Friday apache has refused to start.
When running ./build versions I get the following error

custombuild # ./build versions
Latest version of DirectAdmin: 1.61.3
Installed version of DirectAdmin: 1.61.3

Latest version of LetsEncrypt: 2.0.7
Installed version of LetsEncrypt: 2.0.7

Latest version of CustomBuild plugin: 1.0.34
Installed version of CustomBuild plugin: 1.0.34

/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_os_uuid_get
Latest version of Apache: 2.4.46
Installed version of Apache:

Apache to 2.4.46 update is available.


When I build apache I see the following "error":


MD5 Checksum on patches/mod_suexec_directory.patch passed.
Backing up certificate and key, and turning off httpd for DirectAdmins's check.
Found /usr/local/directadmin/custombuild/httpd-2.4.46.tar.gz
Extracting /usr/local/directadmin/custombuild/httpd-2.4.46.tar.gz...
Found /usr/local/directadmin/custombuild/apr-1.6.5.tar.gz
Extracting /usr/local/directadmin/custombuild/apr-1.6.5.tar.gz...
Found /usr/local/directadmin/custombuild/apr-util-1.6.1.tar.gz
Extracting /usr/local/directadmin/custombuild/apr-util-1.6.1.tar.gz...
Patching apache for hardened symlinks patch...
patching file include/http_core.h
patching file server/core.c
Hunk #1 succeeded at 140 (offset 1 line).
Hunk #2 succeeded at 1718 (offset 170 lines).
Hunk #3 succeeded at 1968 (offset 238 lines).
Enabling mod_systemd...
Enabling mod_http2...
Patching srclib/apr-util/dbm/sdbm/sdbm_private.h...
patching file dbm/sdbm/sdbm_private.h
Patching apache to suexec safedir path...
patching file configure.in
Hunk #1 succeeded at 784 with fuzz 2 (offset 44 lines).
patching file support/suexec.c
Hunk #1 succeeded at 339 (offset 25 lines).
Hunk #2 succeeded at 527 (offset 27 lines).
Hunk #3 succeeded at 571 (offset 27 lines).
Hunk #4 succeeded at 638 (offset 27 lines).
Hunk #5 succeeded at 652 (offset 27 lines).
Patching apache to allow SuexecUserGroup in Directory context...
patching file modules/generators/mod_suexec.c
patching file support/suexec.c
Hunk #1 succeeded at 333 (offset 25 lines).
Configuring httpd-2.4.46

aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'


But that is really all the error I see.

After compilation is complete I keep getting
Starting The Apache HTTP Server...
/usr/sbin/httpd: symbol lookup error: /usr/sbin/httpd: undefined symbol: apr_os_uuid_get
httpd.service: main process exited, code=exited, status=127/n/a
Failed to start The Apache HTTP Server.
Unit httpd.service entered failed state.
httpd.service failed.


httpd -v just throws the same error.

Running CentOS 7.
 
Last edited:
how you installed APR ?

if your license have support include, please create ticket to let them help you with remote control
 
apr is installed by custombuild, as the tar balls are downloaded by build and placed in /usr/local/directadmin/custombuild.
 
Try a cleanup of apr related files in /usr/lib/apache. Reinstall apache then.
 
Hi there. Not sure if mine is the same issue, but I just tried to update Apache as well. Was watching the screen, and it seemed like it was REPEATING same lines again and again, about 4-5 times, I also seen same warning at the end of all repeats:
"aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'"

and then when it finally stopped repeating itself it just shows:
"
  • make[2]: Entering directory '/usr/local/directadmin/custombuild/httpd-2.4.46/support'
  • make[2]: Leaving directory '/usr/local/directadmin/custombuild/httpd-2.4.46/support'
  • make[1]: Leaving directory '/usr/local/directadmin/custombuild/httpd-2.4.46'
  • Make complete
  • Removing all apache related rpms... "
And it stuck at this point. Nothing changes for like 10 mins. Close or X button did not work. I had to refresh the page...
Any ideas what is going on?
 
I have tried those commands that Invader Zim wrote - same thing again. I follow the code in update, it seems it finished already, it even wrote removing all apache ralated rpm's and then it starts again... Did that couple times, and then stuck again on:
"
  • Make complete
  • Removing all apache related rpms... "
Also those file I deleted did not reappear.
"
-rw-r--r-- 1 root root 444522 Jul 8 00:20 libapr-1.a
-rwxr-xr-x 1 root root 978 Jul 8 00:20 libapr-1.la
lrwxrwxrwx 1 root root 17 Jul 8 00:20 libapr-1.so -> libapr-1.so.0.6.5
lrwxrwxrwx 1 root root 17 Jul 8 00:20 libapr-1.so.0 -> libapr-1.so.0.6.5
-rwxr-xr-x 1 root root 311696 Jul 8 00:20 libapr-1.so.0.6.5
-rw-r--r-- 1 root root 340608 Jul 8 00:20 libaprutil-1.a
-rwxr-xr-x 1 root root 1042 Jul 8 00:20 libaprutil-1.la
lrwxrwxrwx 1 root root 21 Jul 8 00:20 libaprutil-1.so -> libaprutil-1.so.0.6.1
lrwxrwxrwx 1 root root 21 Jul 8 00:20 libaprutil-1.so.0 -> libaprutil-1.so.0.6.1
-rwxr-xr-x 1 root root 250080 Jul 8 00:20 libaprutil-1.so.0.6.1
"

Any suggestions?
 
I have close that window again. Had to refresh the page, but apparently it is still going: Build process in progress. PID: 1687783
No idea what is going on. Apache (httpd) DOESN'T START anymore. And Directadmin does not load anymore at all. PLEASE HELP.
 
Last edited:
DirectAdmin came back on. Tried to change the version (downgrade back to 2.4.43) and build - exactly same CRAP. It keeps posting same thing again and again and it doesn't seem to end at all ....
 
After trying to start httpd, do you see any errors mentioned in the service status, with the journalctl -x -e command, in /var/log/syslog or any other related logs? Please post them here.
 
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:a2:47:08:00 SRC=94.102.51.28 DST=54.37.195.56 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=56597 PROTO=TCP>
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:a2:47:08:00 SRC=45.129.33.141 DST=54.37.195.56 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=19917 PROTO=TC>
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:b3:c7:08:00 SRC=74.120.14.24 DST=54.37.195.55 LEN=44 TOS=0x00 PREC=0x00 TTL=36 ID=38440 PROTO=TCP >
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:a2:47:08:00 SRC=195.54.160.38 DST=54.37.195.55 LEN=40 TOS=0x00 PREC=0x00 TTL=245 ID=47150 PROTO=TC>
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:b3:c7:08:00 SRC=45.129.33.51 DST=54.37.195.56 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=12331 PROTO=TCP>
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:b3:c7:08:00 SRC=94.102.53.112 DST=54.37.195.56 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=9108 PROTO=TCP>
|| CROND[559464]: (root) CMD (/usr/local/directadmin/dataskq)
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:a2:47:08:00 SRC=94.102.53.112 DST=54.37.195.56 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=1888 PROTO=TCP>
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:b3:c7:08:00 SRC=185.153.199.187 DST=54.37.195.56 LEN=40 TOS=0x00 PREC=0x00 TTL=242 ID=36838 PROTO=>
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:b3:c7:08:00 SRC=195.54.160.38 DST=54.37.195.55 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=20628 PROTO=TC>
|| systemd[1]: Starting dnf makecache...
-- Subject: Unit dnf-makecache.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit dnf-makecache.service has begun starting up.
|| dnf[559473]: Metadata cache refreshed recently.
|| systemd[1]: Started dnf makecache.
-- Subject: Unit dnf-makecache.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit dnf-makecache.service has finished starting up.
--
-- The start-up result is done.
|| kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=02:00:00:7b:6d:dc:6c:31:0e:21:b3:c7:08:00 SRC=45.129.33.142 DST=54.37.195.56 LEN=40 TOS=0x00 PREC=0x00 TTL=243 ID=49114 PROTO=TC>
|| sudo[559476]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart httpd
|| sudo[559476]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
|| sudo[559476]: pam_unix(sudo:session): session opened for user root by root(uid=0)
|| systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit httpd.service has begun starting up.
|| httpd[559479]: /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
|| systemd[1]: httpd.service: Main process exited, code=exited, status=127/n/a
|| systemd[1]: httpd.service: Failed with result 'exit-code'.
|| systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit httpd.service has failed.
--
-- The result is failed.
|| sudo[559476]: pam_unix(sudo:session): session closed for user root
 
Last 3 lines from Apache Error log:
Failed loading /usr/local/lib/ioncube/ioncube_loader_lin_74.so: /usr/local/lib/ioncube/ioncube_loader_lin_74.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/lib/ioncube/ioncube_loader_lin_74.so: /usr/local/lib/ioncube/ioncube_loader_lin_74.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/lib/ioncube/ioncube_loader_lin_74.so: /usr/local/lib/ioncube/ioncube_loader_lin_74.so: cannot open shared object file: No such file or directory
 
Lines from systemctl status httpd.service:

systemd[1]: Starting The Apache HTTP Server...
httpd[609710]: /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
systemd[1]: httpd.service: Main process exited, code=exited, status=127/n/a
systemd[1]: httpd.service: Failed with result 'exit-code'.
systemd[1]: Failed to start The Apache HTTP Server.
 
Back
Top