PHP & MySQL Settings in Webuzo
How to configure PHP versions, customize php.ini settings, and manage MySQL databases in Webuzo.
Switch PHP version
From the Webuzo Admin Panel (https://YOUR_IP:2004):
- Go to PHP → PHP Configuration
- Select the PHP version to activate
- Click Save
To install additional PHP versions:
- Admin Panel → PHP → PHP Versions
- Click Install next to the version you want
- Installation takes a few minutes
Customize php.ini
- Admin Panel → PHP → PHP Configuration → php.ini Editor
- Modify values directly
- Save and restart the web server for changes to take effect
Key settings to review:
| Setting | Recommended | Reason |
|---|---|---|
memory_limit | 512M | WordPress/WooCommerce |
upload_max_filesize | 64M | Media uploads |
post_max_size | 64M | Must be ≥ upload_max_filesize |
max_execution_time | 300 | Long-running imports |
display_errors | Off | Hide errors from visitors |
error_log | /path/to/php-errors.log | Log errors to file |
Per-directory PHP settings
Override specific php.ini values via .htaccess:
php_value memory_limit 512M
php_value upload_max_filesize 64M
php_flag display_errors off
Create a MySQL database
https://YOUR_IP:2002).Create a MySQL user
Assign user to database
Access phpMyAdmin
- Webuzo Enduser Panel → Databases → phpMyAdmin
- Log in with your MySQL username and password
- Manage tables, run queries, import/export databases
MySQL remote access
By default MySQL only accepts local connections. To allow remote access:
# Edit MySQL configuration
nano /etc/my.cnf
# Find and change:
bind-address = 0.0.0.0
# Restart MySQL
systemctl restart mysql
Then grant the user remote access in MySQL:
GRANT ALL ON database.* TO 'user'@'REMOTE_IP' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;