PHP Configuration
Changing PHP version
Section titled “Changing PHP version”LarVPS supports PHP 8.1, 8.2, 8.3, 8.4, and 8.5. Change versions from Site Settings → Runtime tab.
The agent will automatically:
- Install the new PHP version (if not already present)
- Migrate the FPM pool configuration
- Restart Nginx and PHP-FPM
Memory & upload limits
Section titled “Memory & upload limits”| Setting | Default | Options |
|---|---|---|
| Memory Limit | 512 MB | 128M, 256M, 512M, 1024M, 2048M |
| Upload Max | 128 MB | 32M, 64M, 128M, 256M, 512M |
| Max Execution Time | 30s | 30, 60, 120, 300, 600 |
| Max Input Vars | 1000 | 1000, 3000, 5000, 10000 |
Security: Dangerous functions
Section titled “Security: Dangerous functions”By default, LarVPS runs PHP in Hardened Mode with dangerous functions disabled:
exec(),system(),passthru(),shell_exec()proc_open(),popen(),curl_multi_exec()parse_ini_file(),show_source(),proc_nice()
You can enable individual functions from the Runtime tab if your application requires them (e.g., Laravel needs proc_open for Artisan commands).
ionCube Loader
Section titled “ionCube Loader”Enable ionCube Loader from the Runtime tab for applications that require encoded PHP files (e.g., WHMCS, commercial plugins).