When upgrading from PHP 5.6 to PHP 7.4, you can directly replace the compiled installation package. When you enter PHP – V, you will report an error while loading shared libraries: libonig. So. 5: cannot open share directory
#php -v
#php: error while loading shared libraries: libonig.so.5:cannot open share directory
Solution:
Step 1
Modify /ect/ld.so.conf
Add the following line
#vim /etc/ld.so.conf
include ls.so.conf.d/*.conf
/usr/local/lib
/usr/local/x264/lib
/usr/local/openssl/lib
/usr/local/python3.7.1/lib
After saving Execute ldconfig
#ldconfig
Step 2:
Install oniguruma library
Download Link:
oniguruma-6.8.2-1.el7.x86 64.rpm
oniguruma-devel-6.8.2-1.el7.x86 64.rpm
Use the follow commands to install:
#rpm -ivh oniguruma-devel-6.8.2-1.el7.x86_64
#rpm -ivh oniguruma-6.8.2-1.el7.x86_64
Then run the command PHP – V Perfect display
If installation error
Generating autotools files.
./autogen.sh: line 6: autoreconf: command not found
Solution:
[root@yjweb oniguruma-6.9.4]# yum install autoconf automake libtool
Read More:
- /www/server/php/56/sbin/php-fpm:error while loading shared libraries:libssl.so.1.0. 0:cannot open shared object file:No such file or directory
- [Solved] Centos7 xmapp Install Error: error while loading shared libraries: libc.so.6
- How to Solve PHP Error: no package’oniguruma’ found
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- [Solved] tp6.0 open_basedir Error: Warning: require(): open_basedir restriction in effect.
- Error during PHP installation and configuration error: off_t undefined; check your library configuration
- PHP php-config is not installed error in ubuntu 16 [How to Solve]
- composer Error: The requested PHP extension ext-bcmath * is missing from your system. Install or enable
- Mac PHP Fatal error: Class ‘Memcache’ not found
- PHP solves the problem that composer exceeds the memory size Allowed memory size
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- Configure: error: Cannot find libz error appears when brew installs php70
- PHP error in Windows: class’ mysqli ‘not found
- [Solved] PHP installation Phalcon expansion error
- [Solved] PHP Error: Warning: file_get_contents(): Failed to enable crypto
- PHP: How to parse MHT file into HTML
- PHP large file upload error 413: request entity too large [How to Solve]