Build and Install latest PHP cURL extenstion on RunCloud
There is bug in libcurl 7.68 so using 7.73 or higher is recommended. We are gonna build latest cURL on
Hypertext Preprocessor
There is bug in libcurl 7.68 so using 7.73 or higher is recommended. We are gonna build latest cURL on
# 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
sudo apt install build-essential pkg-config autoconf bison re2c libxml2-dev \ libssl-dev libsqlite3-dev libcurl4-openssl-dev libpng-dev libjpeg-dev \ libonig-dev libfreetype6-dev libzip-dev libtidy-dev
# Install required dev tools sudo apt install autoconf libpcre3-dev # Set module name MODULE_NAME="apcu" # Set module version MODULE_VERSION="5.1.18"
/** * Run command, get output and exit code. */ function run_command($command) { $output = []; exec($command, $output, $exitcode); //
<?php // The command to run. $command = 'ping 127.0.0.1'; $descriptors = [ 0 => ['pipe', 'r'], // STDIN 1
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');
/** * Function to Remove image size. * @param [string] $size */ function remove_image_size_by_size($size) { $dimension = explode('x', $size); global
/** * Fix weird output encoding. */ function run_command($command) { $string = shell_exec($command); $string = mb_convert_encoding($string, 'UTF-8', 'UTF-16LE'); return $string;
/** * Get system ipv4 addresses. * Works on Linux only. * @return [array] */ function getSystemIPs() { $ips =
If you look at the CURLOPT_INTERFACE manual you will find that setting it to NULL to will tell cURL to