Search Our Database

How to Fix Shared Libraries Error When Installing DirectAdmin

Last updated on |
by

Problem:

After running the DirectAdmin installer, if you still see the following error message:

*************************************
* *
* All parts have been installed *
* *
*************************************

Type: /sbin/service httpd restart
./directadmin: error while loading shared libraries: libssl.so.5: 
cannot open shared object file: No such file or directory
./directadmin: error while loading shared libraries: libssl.so.5: 
cannot open shared object file: No such file or directory

Solution:

Step 1: Go to the DirectAdmin directory and use the ldd command lists the pathnames of all dependencies.

cd /usr/local/directadmin
ldd directadmin

 

Step 2: Check what is the missing library, here is an example:

./directadmin: error while loading shared libraries: libssl.so.6: 
cannot open shared object file: No such file or directory

 

Step 3: Search your system for any “libssl.so.*” files by running:

locate libssl.so

 

Step 4: If you find a libsso.so file for a different version, eg, /lib64/libssl.so.10, then type:

cd /lib64
ln -s /usr/lib64/libssl.so.10 libssl.so.6

 

Step 5: Finish the install by running:

cd /usr/local/directadmin
./directadmin i
./directadmin p