What is the best and fastest scenario for cache?

execute nginx -t to get more information

OK thanks I can do that but back to my other question is do I even need fast CGI if I’m going to implement Redis?

FastCGI acts on serving files, Redis acts on serving data from DB, so they target different purposes

ok, thanks.

is there a clear path on implementing redis and the php on hestia?

Like I have said, I have lots of corporate websites running on my Hestia server and I am trying to make this seamless.

So far so good. the only websites I am having issues with are mine, so thats not a problem at this point. Well it’s a problem I would like to be able to implement fast CGI on them but it’s not affecting anything for anybody else at this point.

But it is so weird why fastCGI won’t implement on two of my sites, once I turn that on nginx won’t load. any ideas? I have checked the sites and all is up to date,

Its driving me nuts, cant turn on fastcgi for 2 of my sites , if I do nginx wont load.

yeah it kind of bypasses it but I still get the failed to load every time that’s really not a fix it doesn’t fix it it works but if I go into the website and save anything it says nginx failed to load


do I need to change any settings here?

Just need some help with this.

OK redis server plus PHP package what are the correct commands to install that into hestia, on debian 12.x, php 8.2

apt install redis-server php8.2-redis

If systemctl status nginx shows nothing about the error, check /var/log/nginx/error.log and /var/log/nginx/domains/YourSite.error.log

perfect, thank you, done and working…

Now still just need to figure out the FastCGI issues with 2 of my sites.

Thank you so much for that… it worked great…

John

Still looking for help on why I can enable FastCGI on 2 of my sites. when I enable Nginx will not start.

also I don’t see redis add to the repository for updates?

this is the error in the /var/log/nginx/error.log

2024/08/28 17:38:34 [emerg] 112516#112516: the shared memory zone “artisticimages.com” is already declared for a different use in /etc/nginx/conf.d/fastcgi_cache_pool.conf:6
2024/08/28 17:38:34 [emerg] 112532#112532: the shared memory zone “artisticimages.com” is already declared for a different use in /etc/nginx/conf.d/fastcgi_cache_pool.conf:6

I GOT IT!!! there was a file in etc/nginx/conf.d/ called 01_cashing_pool.conf that had the 2 sites that were having the issues. I deleted it and all is good.

Thank you, sahsanu you pointed me in the right direction.

1 Like

last thing, what is the correct repo for redis? I dont see it added.

You are installing redis from your distribution’s repos.

If you want to use the latest redis version, you can use the repo provided directly by redis.

sudo apt install lsb-release curl gpg
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt update

If you already installed redis:

apt full-upgrade

If you didn’t install redis yet:

apt install redis

I already installed it per your first instructions, and it worked fine. apt install redis-server php8.2-redis

That repository that you provided doesn’t seem to work.

deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main

Err:4 https://packages.redis.io/deb $(lsb_release InRelease
403 Forbidden [IP: 18.154.144.90 443]

You can’t copy/paste the repo, you must execute the command because it executes the command lsb_release -cs to know your distribution’s name:

echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

Yeah I added it into the sources list and it didn’t work but anyways I ran the entire command above:

sudo apt install lsb-release curl gpg
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
sudo chmod 644 /usr/share/keyrings/redis-archive-keyring.gpg
echo “deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main” | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt update

and it worked

root@webserver:~# apt update && apt upgrade -y
Hit:1 Index of /debian bookworm InRelease
Hit:2 Index of /php/ bookworm InRelease
Hit:3 Index of /debian-security bookworm-security InRelease
Hit:4 Index of /debian bookworm-updates InRelease
Hit:6 https://packages.redis.io/deb bookworm InRelease
Hit:5 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian bookworm InRelease
Hit:7 Index of /packages/mainline/debian/ bookworm InRelease
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
All packages are up to date.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

all is good, thank you again

1 Like