Server : LiteSpeed System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u615232177 ( 615232177) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cloudlinux/alt-php83/root/usr/bin/ |
#!/bin/bash
set -e
PHP=(/opt/alt/php83/usr/bin/php)
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
COMPOSER="${SCRIPT_DIR}/composer.phar"
if "${PHP[@]}" -r "if (extension_loaded('phar')) exit(1);"; then
PHP+=(-d 'extension=phar.so')
fi
if "${PHP[@]}" -r "if (extension_loaded('json')) exit(1);"; then
PHP+=(-d 'extension=json.so')
fi
"${PHP[@]}" ${COMPOSER} $*