PHP Management
PHP Version Management
Section titled “PHP Version Management”LLStack installs PHP via the REMI repository using the php-litespeed SAPI (not php-fpm), leveraging LiteHttpd’s LSAPI protocol advantages:
- ~30% fewer context switches than FastCGI (php-fpm)
- Shared memory model, more efficient than php-fpm prefork
.htaccessphp_value/php_flagpassed directly via LSAPI
Supported Versions
Section titled “Supported Versions”| Version | Status | Package Prefix |
|---|---|---|
| PHP 7.4 | EOL (legacy) | php74 |
| PHP 8.1 | Security updates | php81 |
| PHP 8.2 | Active | php82 |
| PHP 8.3 | Active (recommended) | php83 |
| PHP 8.4 | Latest | php84 |
Installing PHP
Section titled “Installing PHP”Via the panel: Settings → PHP Versions, or via CLI:
sudo /opt/llstack/scripts/php/php-install.sh --version 83Each version installs: litespeed SAPI + CLI + 14 common extensions.
Default Extensions
Section titled “Default Extensions”mysqlnd, pgsql, gd, mbstring, xml, curl, zip, intl, bcmath, opcache, soap, sodium
php.ini Defaults
Section titled “php.ini Defaults”| Parameter | Default |
|---|---|
memory_limit | 256M |
upload_max_filesize | 64M |
post_max_size | 64M |
max_execution_time | 300 |
max_input_time | 300 |
Global php.ini
Section titled “Global php.ini”Located at: /etc/opt/remi/php{VERSION}/php.ini
Binary Paths
Section titled “Binary Paths”| Type | Path |
|---|---|
| lsphp (SAPI) | /opt/remi/php{VER}/root/usr/bin/lsphp |
| php (CLI) | /opt/remi/php{VER}/root/usr/bin/php |
| php.ini | /etc/opt/remi/php{VER}/php.ini |