Search our database

How to fix shared libraries error when installing DirectAdmin

Problem:

After running the directamdin 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 directadmin directory and use the ldd command lists the path names 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