Install Brotli PHP extension on RunCloud

# Set module name MODULE_NAME=”brotli” # Set PHP version PHPRC_VERSION=”php74rc” # Download extension git clone –recursive –depth=1 https://github.com/kjdev/php-ext-brotli.git cd php-ext-brotli

Install PHP 7.4 ZTS with ext-parallel in Ubuntu

sudo apt install bison re2c libxml2-dev libssl-dev libsqlite3-dev \ libbz2-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libonig-dev \ libfreetype6-dev libxslt1-dev libzip-dev libwebp-dev libtidy-dev

Install APCu PHP extension on RunCloud

# Install required dev tools apt install autoconf libpcre3-dev # Set module name MODULE_NAME=”apcu” # Set module version MODULE_VERSION=”5.1.18″ #

Install tmux latest version on Ubuntu

sudo apt install automake build-essential pkg-config libevent-dev libncurses5-dev -y VERSION=3.1b wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz tar xf tmux-${VERSION}.tar.gz rm tmux-${VERSION}.tar.gz cd tmux-${VERSION} ./configure

Install RAR latest version in Linux

VERSION=5.9.0 wget https://www.rarlab.com/rar/rarlinux-x64-${VERSION}.tar.gz tar -xf rarlinux-x64-${VERSION}.tar.gz rm rarlinux-x64-${VERSION}.tar.gz cd rar chmod +x rar unrar sudo mv rar unrar /usr/bin sudo

Install Ookla Speedtest on Linux

# For 32/64 bit wget -O speedtest.tgz https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-x86_64-linux.tgz # For Raspberry Pi wget -O speedtest.tgz https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-aarch64-linux.tgz tar -xf speedtest.tgz speedtest

PHP real time flushing on Nginx

Works perfectly on RunCloud Native Nginx stack. @ini_set(‘zlib.output_compression’, ‘Off’); @ini_set(‘output_buffering’, ‘Off’); @ob_implicit_flush(1); @ob_end_clean(); header(‘Content-Encoding: none’); header(‘X-Accel-Buffering: no’);

Remove image sizes in WordPress

/** * Function to Remove image size. * @param [string] $size */ function remove_image_size_by_size($size) { $dimension = explode(‘x’, $size); global