Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
virap Posted December 8, 2021 Posted December 8, 2021 (edited) Redis is installed and was working fine for some time. Recently I dibbled it for testing but now when I try to enable it again I get this error: "Caching is not working correctly. You may need to use another data storage method, or adjust the configuration of the data storage method you are using below." My constants.php looks like this \define( 'REDIS_ENABLED', false ); //I also get the same error with this set to true \define( 'STORE_METHOD', 'Redis' ); \define( 'STORE_CONFIG', '[]' ); \define( 'CACHE_METHOD', 'Redis' ); \define( 'REDIS_CONFIG', '{"server":"localhost","port":6379,"password":""}' ); \define( 'CACHE_PAGE_TIMEOUT', 600 ); \define( 'SUITE_UNIQUE_KEY', '3037643970' ); \define( 'OUTPUT_CACHE_METHOD', 'Redis' ); // Store guest pages in Redis When I run redis-cli ping the server responds with PONG The clients area has the updated access to the server. Will be great if someone can check. Thank you. Edited December 8, 2021 by virap
IveLeft... Posted December 8, 2021 Posted December 8, 2021 (edited) From the command line try restarting redis systemctl restart redis Then check the status systemctl status redis Edited December 8, 2021 by Muddy Boots
Marc Posted December 8, 2021 Posted December 8, 2021 The redis instance is not able to be connected to by our software in this instance, which is something you would really need to contact your hosting company about
Randy Calvert Posted December 8, 2021 Posted December 8, 2021 Have you checked to make sure the port is open in your firewall? Some firewalls will still block access from localhost if the port is not expressly open. Marc 1
virap Posted December 13, 2021 Author Posted December 13, 2021 Thank you. Restart did not change anything, the error is still there. And it appears the port is open. I have no idea what else might be causing ipb not to be able to communicate to redis.
IveLeft... Posted December 13, 2021 Posted December 13, 2021 On 12/8/2021 at 7:31 AM, Muddy Boots said: systemctl status redis What was the result of that ? What firewall is running ?
virap Posted December 13, 2021 Author Posted December 13, 2021 4 hours ago, Muddy Boots said: What was the result of that ? What firewall is running ? Thank you. for that command I get this message "Command not found". There is no hardware firewall, I use ConfigServer Security & Firewall on whm
virap Posted December 13, 2021 Author Posted December 13, 2021 I checked the redis-cli info server command and this is what it shows [root@server ~]# redis-cli info server # Server redis_version:3.2.12 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:b2d74fe5fff7657d redis_mode:standalone os:Linux 2.6.32-754.27.1.el6.x86_64 x86_64 arch_bits:64 multiplexing_api:epoll gcc_version:4.4.7 process_id:29904 run_id:652b802f45607d6a5f18bc2f07337f5ed7e8c233 tcp_port:6379 uptime_in_seconds:431917 uptime_in_days:4 hz:10 lru_clock:12008923 executable:/usr/bin/redis-server config_file:/etc/redis.conf
virap Posted December 13, 2021 Author Posted December 13, 2021 I think the problem might be that php.ini is not loading redis.so I added extension=redis.so to my php.info in /opt/cpanel/ea-php74/root/etc/php.ini rebooted apache php fpm, but still running phpinfo() does not list redis.so
IveLeft... Posted December 13, 2021 Posted December 13, 2021 Looks like your running cpanel/whm as you reference easy apache I'd suggest asking at cpanel forums as its probably a cpanel/whm issue
Recommended Posts