Hosting Providers

Increase the PHP memory limit in CyberPanel

0 0
Read Time:2 Minute, 8 Second

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

Cyberpanel Php Configurations
Cyberpanel Php Configurations

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.

Php 7.4 Cyberpanel Configuration
Php 7.4 Cyberpanel Configuration

After selecting PHP 7.4, you will see its configuration options. You can adjust the prices here.

Increase memory_limit

Delete the existing memory_limit value and enter 2048 cm. Alternatively 256M or 512M.

Increase upload_max_filesize

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.

Shorten Cyberpanel settings
Shorten Cyberpanel settings

Click on Condition, will open the server status page. Click on LiteSpeed ​​status.

Litespeed status
Litespeed status

On the next page, click Restart LiteSpeed button.

Restart Litespeed
Restart Litespeed

Alternatively, you can use the SSH terminal to restart LiteSpeed.

Log in to the terminal and activate the following command to restart LiteSpeed:

/usr/local/lsws/bin/lswsctrl reload

THE

/usr/local/lsws/bin/lswsctrl restart

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.

PHPMyadmin Cyberpanel
PHPMyadmin Cyberpanel

Click Import and check the upload size of the MySQL file. Must be (Maximum: 2.048MiB).

Enjoy!

Revelation

When you purchase through affiliate links on our site, we may gain affiliate commission at no cost to you.

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.