Install APCu PHP extension on RunCloud

# Install the required developement tools apt install autoconf libpcre3-dev # Set module name MODULE_NAME=”apcu” # Set download version MODULE_VERSION=”5.1.18″ # Download & Extract wget$MODULE_NAME-$MODULE_VERSION.tgz tar -zxvf $MODULE_NAME-$MODULE_VERSION.tgz cd $MODULE_NAME-$MODULE_VERSION # Set PHP version PHPRC_VERSION=”php74rc” # Installing for PHP

Change default PHP CLI configuration on RunCloud

Runcloud allows you to change the PHP Settings for each application from their Web Panel. But if you’re like me who heavily uses the PHP-CLI then changing config from Web Panel won’t help you. The PHP configs from their Web

Use Rocket-Nginx under RunCloud

Login as root then enter following commands. cd /etc/nginx-rc git clone cd rocket-nginx cp rocket-nginx.ini.disabled rocket-nginx.ini php rocket-parser.php As of version 2.1.1 there is a typo in the rocket-nginx.ini , change media_header to medias_header My template: Create file {app-name}.location.main-before.rocket.conf

Things to do after installing RunCloud

Some few things I do after connecting a server to runcloud. MySQL Create /etc/mysql/conf.d/z_additional.cnf with the below contents. (Note: The files are read alphabetically, so need to make to sure it is read by MySQL at the end, thus the

Add headers to certain directories in Nginx under RunCloud

Sometimes we wants to add custom http headers to certain directories and their files. For example: I wanted to add X-Robots-Tag header to some some private directories so it does not get indexed. I’ve tried many methods in the internet

Useful RunCloud Hacks

In this page I shared all the RunCloud hacks that I have been using. 1) WordPress under subdirectory in Nginx If you want to install WordPress under subdirectory in RunCloud Native Nginx stack, then this will help you configure it.