For detailed installations instruction see relay.so.
curl -fsSL "https://repos.r2.relay.so/key.gpg" | sudo apt-key add -
sudo add-apt-repository "deb https://repos.r2.relay.so/deb $(lsb_release -cs) main"
sudo apt install php-relay # default php version
sudo apt install php8.1-relay # specific php version
sudo apt install lsphp81-relay # for litespeed setups
If apt-key
or add-apt-repository
are deprecated or not available, use:
curl -fsSL "https://repos.r2.relay.so/key.gpg" | sudo gpg --dearmor -o "/usr/share/keyrings/cachewerk.gpg"
echo "deb [signed-by=/usr/share/keyrings/cachewerk.gpg] https://repos.r2.relay.so/deb $(lsb_release -sc) main" \
| sudo tee "/etc/apt/sources.list.d/cachewerk.list" > /dev/null
sudo apt-get update
curl -s -o "/etc/yum.repos.d/cachewerk.repo" "https://repos.r2.relay.so/rpm/el.repo"
yum install relay-php # single php version
yum install php81-php-relay # multiple php versions
yum install lsphp81-relay # for litespeed setups
yum-config-manager --disable cachewerk-el
yum-config-manager --enable cachewerk-el7