The problem is that the redis class cannot be captured in the message
However, I have installed redis and used it in PHP code, but when I execute PHP jifen.php in Linux system, I report that redis class cannot be found.
Solution:
First, determine if there are two PHP in your system.
find/-name php
Then find your current PHP Directory:
Use phpinfo () in the PHP file; Method, you can access it
My PHP files are at /www/server/PHP/73/
Modify the system environment file:/etc/profile
vi /etc/profile
Write the PHP environment address to the end of the configuration file
The PHP runtime files are inside the bin directory, so mine is: /www/server/php/73/bin/
export PATH=$PATH:your PHP address
Save, exit, and then run:
source /etc/profile
Restart the PHP file to use PHP jifen.php
Read More:
- Mac PHP Fatal error: Class ‘Memcache’ not found
- [Solved] Fatal error: Uncaught Error: Class ‘Imagick‘ not found
- PHP error in Windows: class’ mysqli ‘not found
- [Solved] Fatal error: Class ‘think\Container‘ not found & [InvalidArgumentException] Could not find package
- [Solved] PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes
- PHP Error Object of class mysqli could not be converted to string in
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- [Solved] Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60
- PHP php-config is not installed error in ubuntu 16 [How to Solve]
- [Solved] Laravel admin Error: Symfony\Component\Debug\Exception\FatalThrowableError : Class ‘Doctrine\DBAL\Driver\PDOMySql\Driver’ not found
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- How to Solve PHP Error: no package’oniguruma’ found
- How to Solve PHP Fatal error: Namespace declaration statement has to be the very first statement
- Error while injecting dependencies into App\Controller\IndexController: No entry or class found for
- [PHP] php8 jit does not support 32-bit systems WARNING: JIT not supported by host architecture
- [PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large
- [PHP] __autoload function will be called when class_exists does not exist
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution