I reinstalled php due to some errors. After installing it I got this error php: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory
while just running php -v
. The php7.0
and php7.1
command is working. I've tried reinstalling php again, reinstalling libssl
, but nothing seems to work. Does somebody know what to do in this situation?
From the comments...
libssl.so.1.0.2
doesn't exist, andphp7.1
isn't supported, on Ubuntu 16.04.3 LTS. You gotphp7.1
installed by enabling theUnsupported Updates
repository. Disable this repository, and uninstall php7.1.Go to
/usr/bin
and check what php files are there:You will see the php file along with the new php files like
php7.0
orphp7.2
Move php to php1 just to free the php name with the following command:
So, in php now you have version 7.0.
With this your Apache2 will keep its php version and only the cli commands will use the newer version.