Hello guys, I created an instance with apache, php and mysql where I installed wordpress.
I created a redis instance but cannot get wordpress connected.
Status: Not Connected
Redis Version: Unknown
Client: Predis
Drop-in: Valid
Connection Exception: Connection timed out [tls://private-db-redis-ams3-***:***] (Predis\Connection\ConnectionException)
Redis Extension: Not Found
Predis Client: 1.1.1
PHP Version: 7.4.2
Multisite: No
Global Prefix: "wp_"
Blog Prefix: "wp_"
WP_REDIS_SCHEME: "tls"
WP_REDIS_HOST: "private-db-redis-ams3-###"
WP_REDIS_PORT: "####"
WP_REDIS_PASSWORD: "****************"
i tied to connect with tcp and tls
with command:
redis-cli -h db-redis-ams3-**** -p **** -a ***
connects correctly
but with wordpress doesn’t work
thanks for support
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I think that you need to install the PHP Redis Module in order for PHP to be able to communicate with Redis.
You could do that by running the following commands:
sudo apt update
php-redis package:apt install php-redis
.ini file for the php-redis module available at:/etc/php/7.x/mods-available/redis.ini
You might have to restart Apache in order for the new module to be picked up.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.