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 setupsIf 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 updatecurl -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 setupsyum-config-manager --disable cachewerk-el
yum-config-manager --enable cachewerk-el7If the operating system cannot fill the dependencies (especially hiredis or ck) check out the how the Docker examples are installing the packages, or alternatively install them from source:
# Install hiredis
curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.2.0.tar.gz | tar -xzC /tmp \
&& USE_SSL=1 make -C /tmp/hiredis-1.2.0 install
# Install Concurrency Kit
curl -L https://github.com/concurrencykit/ck/archive/refs/tags/0.7.2.tar.gz | tar -xzC /tmp \
&& cd /tmp/ck-0.7.2 && ./configure && make -j$(nproc) && make install