After installing CyberPanel, many configurations come with their default values. For example, memory_limit, upload_max_filesize, and post_max_size come with their default values. Sometimes we need different configurations or prices depending on the needs of our site. We can easily change or customize these configurations and values directly from the CyberPanel control panel with some modifications.
Check below to adjust these presets correctly:
Edit PHP settings in CyberPanel
To edit PHP configurations, log in to the CyberPanel control panel using port 8090. On the right side of your screen, scroll down the page and find PHP
: 8090 > PHP > PHP Config Editing > Basic
Click on PHP and select Edit PHP settings from the drop-down menu. On the next page, in Basic select the PHP version you want to edit. We recommend using PHP 7.4 which is fast and stable at the moment.
After selecting PHP 7.4, you will see its configuration options. You can adjust the prices here.
Delete the existing memory_limit value and enter 2048 cm. Alternatively 256M or 512M.
Delete the existing upload_max_filesize value and enter 2048 cm. Alternatively 256M or 512M.
Increase post_max_ size
Delete the existing value of post_max_size and enter 2048 cm. Alternatively 256M or 512M.
Set max_execution_time to 300 and max_input_time to 60.
Click on Save the changes and after Start PHP button.
Wait … he’s not here.
The changes will not be reflected until you restart LiteSpeed.
To restart LiteSpeed, click the settings icon near the login button in the upper right-hand corner of the CyberPanel control panel.
Click on Condition, will open the server status page. Click on LiteSpeed status.
On the next page, click Restart LiteSpeed button.
Alternatively, you can use the SSH terminal to restart LiteSpeed.
Log in to the terminal and activate the following command to restart LiteSpeed:
All your settings are now saved.
Identify these changes
Do you still have doubts about these changes that work or not? You can easily identify them directly in the CyberPanel control panel. To do this, click on Databases on the right side of your dashboard. From the drop-down menu, select PHPMyAdmin.
Click Import and check the upload size of the MySQL file. Must be (Maximum: 2.048MiB).