In order to check if the Redis connection establishes successfully on your website with PHP, create the file redischeck.php on the root folder ( /home/username/public_html ) of your website with the content below:
PHP:
<?php
// Connecting to Redis server on localhost
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
echo "Connection to server successfully";
// Check whether the server is running or not
echo "The server is running: ".$redis->ping();
?>
Start a new tab in your browser and type: yourdomain/redischeck.php ( Make sure to replace your domain name with yourdomain.tld )
If the result is:
Connection to server successfully
The server is running: PONG
Redis is working normally. If not, install Redis, please check our KB for the installation process/guide!