Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
zenzoidman Posted March 21, 2022 Posted March 21, 2022 I recently updated my community's PHP version from 7.4 to 8.0, and ever since, I've been unable to get the software to recognize Redis. This is what I see when I go to the settings page (with my directory blacked out for privacy reasons): I've confirmed that I have Redis version 6.2.6 installed on my server, as well as the Redis PHP extension. I've also cleared my community's system cache just in case. Is there anything else that needs to be done to make the software recognize Redis?
Jim M Posted March 21, 2022 Posted March 21, 2022 I would suggest reviewing that the Redis PHP extension is indeed installed and being used in the directory which your Invision Community installation is in. From this screenshot, the PHP extension is not present in what PHP is passing the software so the option is not available to use it.
zenzoidman Posted March 21, 2022 Author Posted March 21, 2022 (edited) Best I can tell, it is installed. Here are the results of the php -m command in the directory where my community is installed. [user@myserver public_html]$ php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif filter ftp gd gettext gmp hash iconv json libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline redis Reflection session SimpleXML soap sockets SPL sqlite3 standard tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache And for thoroughness, if I do redis-cli info from the same place, I get: [user@myserver public_html]$ redis-cli info # Server redis_version:6.2.6 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:4ab9a06393930489 redis_mode:standalone os:Linux 3.10.0-1160.59.1.el7.x86_64 x86_64 arch_bits:64 multiplexing_api:epoll atomicvar_api:c11-builtin gcc_version:8.3.1 process_id:23848 process_supervised:systemd run_id:e1e7146820ea5500bc80109fbb6006fc8c43c723 tcp_port:6379 server_time_usec:1647900922324730 uptime_in_seconds:37326 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:3733754 executable:/usr/bin/redis-server config_file:/etc/redis/redis.conf io_threads_active:0 Am I missing anything? Edited March 21, 2022 by zenzoidman
Randy Calvert Posted March 21, 2022 Posted March 21, 2022 Do you run multiple versions of PHP on the same machine? Last time I saw this happen, the CLI was returning the older version whereas the domain was on the newer version. In your ACP support section is a link to a phpinfo output. Does it show the redis module loaded? It should look like:
zenzoidman Posted March 22, 2022 Author Posted March 22, 2022 Thanks for that tip, Randy. That looks like it might be what's happening here. I'll let you know if that's the solution. Randy Calvert 1
Solution zenzoidman Posted March 23, 2022 Author Solution Posted March 23, 2022 Turns out the solution was as simple as restarting our PHP server. Once we did that, Redis showed up in phpinfo and was recognized by IPS.
Randy Calvert Posted March 23, 2022 Posted March 23, 2022 That would do it. Once you installed it, a reboot will cause the new version to take effect. I’m glad you were able to get to the bottom of the situation!
Recommended Posts