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"

# Download and Extract
wget https://pecl.php.net/get/$MODULE_NAME-$MODULE_VERSION.tgz
tar -zxf $MODULE_NAME-$MODULE_VERSION.tgz
cd $MODULE_NAME-$MODULE_VERSION

# Set PHP version
PHPRC_VERSION="php74rc"

/RunCloud/Packages/$PHPRC_VERSION/bin/phpize
./configure --with-php-config=/RunCloud/Packages/$PHPRC_VERSION/bin/php-config
make install

# Add to php.ini
echo "extension=$MODULE_NAME.so" > /etc/$PHPRC_VERSION/conf.d/$MODULE_NAME.ini

# Restart PHP-FPM to take affect
systemctl reload $PHPRC_VERSION-fpm