CyberPanel PHP Binary and Config Paths
Reference for PHP binary locations and configuration file paths in CyberPanel.
PHP Binary Paths
# PHP 7.4
/usr/local/lsws/lsphp74/bin/php
# PHP 8.0
/usr/local/lsws/lsphp80/bin/php
# PHP 8.1
/usr/local/lsws/lsphp81/bin/php
# Check active PHP version
/usr/local/lsws/lsphp81/bin/php -v
PHP Configuration Files
# php.ini location for each version
/usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini
/usr/local/lsws/lsphp80/etc/php/8.0/litespeed/php.ini
/usr/local/lsws/lsphp81/etc/php/8.1/litespeed/php.ini
Common php.ini Tweaks
# Edit the appropriate php.ini:
upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 512M
max_execution_time = 300
Restart OpenLiteSpeed After Changes
systemctl restart lsws
# Or via CyberPanel UI: Server → Restart OpenLiteSpeed