🌐

cyberpanel

2 notes  •  Web Hosting

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

CyberPanel Log File Locations

Reference for log file locations in CyberPanel for troubleshooting web, PHP, email, and system issues.

Web Server (OpenLiteSpeed) Logs

# Error log
/usr/local/lsws/logs/error.log

# Access log (per domain)
/home/example.com/logs/example.com.access_log

# Domain error log
/home/example.com/logs/example.com.error_log

PHP Error Logs

# PHP error log (per domain, set in php.ini)
/home/example.com/logs/php_error.log

Email Logs

# Postfix mail log
/var/log/mail.log       # Ubuntu/Debian
/var/log/maillog        # CentOS

# Dovecot IMAP/POP3 log
/var/log/dovecot.log

CyberPanel Application Log

/usr/local/CyberCP/logs/

MySQL/MariaDB Logs

/var/log/mysql/error.log         # Ubuntu
/var/log/mariadb/mariadb.log     # CentOS

Useful Commands

# Tail web error log in real time
tail -f /usr/local/lsws/logs/error.log

# Tail domain error log
tail -f /home/example.com/logs/example.com.error_log

# Search for PHP errors
grep -i "error\|fatal\|warning" /home/example.com/logs/php_error.log | tail -50