Maxmurgian Posted August 9, 2016 Share Posted August 9, 2016 Hi, I recently updated from Ubuntu 14 to Ubuntu 16 and ran into trouble with my PHP installation. On U14 the installed version of PHP was php5. Updating to U16 kicked that out and installed php7.0 instead, which is fine as I wanted to move on to that anyway. However, now, when I run PHP, I get the following warning: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/curl.so' - libssl.so.1.0.2: cannot open shared object file: No such file or directory in Unknown on line 0 I have tried to remove and re-install php7.0 and everything that depends on it, but to no avail. Any help solving this would be very much appreciated, I really need to have this issue solved. Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted August 9, 2016 Share Posted August 9, 2016 Do you have the cURL extension installed? There should be a package called something like "php-curl". Is the path "/usr/lib/php/20151012/" correct? Is that where your PHP 7 extensions reside? Quote Link to comment Share on other sites More sharing options...
Maxmurgian Posted August 10, 2016 Author Share Posted August 10, 2016 (edited) Hi Jacques1, Thank you for answering. Yes, I have the cURL extension installed, see below. x@y:~$ php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/curl.so' - libssl.so.1.0.2: cannot open shared object file: No such file or directory in Unknown on line 0 ^C x@y:~$ la /usr/lib/php/20151012/ total 9.3M drwxr-xr-x 2 root root 4.0K Aug 6 09:24 build -rw-r--r-- 1 root root 36K Jul 27 21:32 calendar.so -rw-r--r-- 1 root root 15K Jul 27 21:32 ctype.so -rw-r--r-- 1 root root 87K Jul 27 21:32 curl.so -rw-r--r-- 1 root root 183K Jul 27 21:32 dom.so -rw-r--r-- 1 root root 63K Jul 27 21:32 exif.so -rw-r--r-- 1 root root 3.1M Jul 27 21:32 fileinfo.so -rw-r--r-- 1 root root 55K Jul 27 21:32 ftp.so -rw-r--r-- 1 root root 103K Jul 27 21:32 gd.so -rw-r--r-- 1 root root 15K Jul 27 21:32 gettext.so -rw-r--r-- 1 root root 43K Jul 27 21:32 iconv.so -rw-r--r-- 1 root root 91K Jul 27 21:32 imap.so -rw-r--r-- 1 root root 479K Jul 27 21:32 intl.so -rw-r--r-- 1 root root 39K Jul 27 21:32 json.so -rw-r--r-- 1 root root 1.4M Jul 27 21:32 mbstring.so -rw-r--r-- 1 root root 43K Jul 27 21:32 mcrypt.so -rw-r--r-- 1 root root 139K Jul 27 21:32 mysqli.so -rw-r--r-- 1 root root 266K Jul 27 21:32 mysqlnd.so -rw-r--r-- 1 root root 85K Apr 5 23:56 oauth.so -rw-r--r-- 1 root root 191K Jul 27 21:32 opcache.so -rw-r--r-- 1 root root 27K Jul 27 21:32 pdo_mysql.so -rw-r--r-- 1 root root 43K Jul 27 21:32 pdo_pgsql.so -rw-r--r-- 1 root root 107K Jul 27 21:32 pdo.so -rw-r--r-- 1 root root 27K Jul 27 21:32 pdo_sqlite.so -rw-r--r-- 1 root root 139K Jul 27 21:32 pgsql.so -rw-r--r-- 1 root root 265K Jul 27 21:32 phar.so -rw-r--r-- 1 root root 35K Jul 27 21:32 posix.so -rw-r--r-- 1 root root 35K Jul 27 21:32 readline.so -rwxr-xr-x 1 root root 1.8M Jul 31 08:23 redis.so -rw-r--r-- 1 root root 15K Jul 27 21:32 shmop.so -rw-r--r-- 1 root root 55K Jul 27 21:32 simplexml.so -rw-r--r-- 1 root root 87K Jul 27 21:32 sockets.so -rw-r--r-- 1 root root 52K Jul 27 21:32 sqlite3.so -rw-r--r-- 1 root root 19K Jul 27 21:32 sysvmsg.so -rw-r--r-- 1 root root 11K Jul 27 21:32 sysvsem.so -rw-r--r-- 1 root root 15K Jul 27 21:32 sysvshm.so -rw-r--r-- 1 root root 19K Jul 27 21:32 tokenizer.so -rw-r--r-- 1 root root 31K Jul 27 21:32 wddx.so -rw-r--r-- 1 root root 35K Jul 27 21:32 xmlreader.so -rw-r--r-- 1 root root 51K Jul 27 21:32 xml.so -rw-r--r-- 1 root root 47K Jul 27 21:32 xmlwriter.so -rw-r--r-- 1 root root 31K Jul 27 21:32 xsl.so -rw-r--r-- 1 root root 59K Jul 27 21:32 zip.so x@y:~$ Although 'libssl.so.1.0.2' is nowhere to be found. Should it also reside here? Edited August 10, 2016 by Maxmurgian Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted August 10, 2016 Share Posted August 10, 2016 libssl is a system library from OpenSSL. Do a system-wide search for “libssl.so*” to check if there's any version present. If it isn't, install the libssl package. Quote Link to comment Share on other sites More sharing options...
Maxmurgian Posted August 10, 2016 Author Share Posted August 10, 2016 libssl is a system library from OpenSSL. Do a system-wide search for “libssl.so*” to check if there's any version present. If it isn't, install the libssl package. It turned out that the version that came with the upgrade to Xenial was libssl1.0.0, but I managed to install libssl1.0.2:amd64 (1.0.2h-1+deb.sury.org~xenial+1) from PPA http://ppa.launchpad.net/ondrej/nginx/ubuntu xenial main That did the trick, thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.