SEARCH
Blog, Cyber Panel

If you need to change the PHP Upload limit for Cyber Panel, follow the steps below.

Let’s first check the easy way to achieve the requirement or change the upload limit.

Step 1: Open the Edit Config page. From the side menu, click on the “PHP” and then “Edit PHP Config” option.

Step 2: Select the PHP version for which you need to change the PHP Version. Based on the selected version, you will be able to check the current configuration values. Edit the required property and Save the Changes. For example, we need to change or increase the value for 7 and 8, as shown in the following image for the current requirement.

Step 3: Restart LSCPD: To restart the LSCPD, we need to use the following command.

systemctl restart lscpd

In case you need to control the other advanced PHP configuration, you need to follow the steps below.
Step 1: Open the Edit Config page. From the side menu, click on the “PHP” and then “Edit PHP Config” option.
Step 2: Click on the Advanced Tab.
Step 3: Select the PHP version for which you need to change the PHP Version. Based on the selected version, you will be able to saw the PHP INI file. Edit the file and Save the Changes. For example, we need to change or increase the value for “post_max_size” and “upload_max_filesize”.

Note: It is a best practice to create a backup while making changes in system files.

Step 4: Restart LSCPD: To restart the LSCPD, we need to use the following command.

systemctl restart lscpd

Finally, you can upload files based on your new configuration values.

0