4 - Change Upload Limit for phpMyAdmin

To change phpMyAdmin upload limits to a higher value:

  • Go to PHP → Edit PHP Configs → Advanced , and select php 7.3

  • Search “post_max_size” , and change value from default 8M to size you wish , for example 100M

  • Search “upload_max_filesize” , and change value from default 2M to size you wish , for example 100M

  • Save changes

  • Restart LSCPD by following command:

systemctl restart lscpd

  • Now go to phpMyAdmin, upload size is raised with your setting.

3 Likes

Thanks Bro Its Worked For me

Hi,
Where to Restart LSCPD that fourth step. someone pls help me.

From the ssh access your ssh terminal and run systemctl restart lscpd

I have follow all the steps, but not working for me.

  1. I was trying to change from BASIC > upload_max_filesize and post_max_size set to 512M

then i trying to do by using ADVANCED > set values 512, save changes and restart php. But not working.


Screen2
Screen3

I am new to cyber panel, can you please help me to fix it.
Thanks

1 Like

You need to change the values for PHP version 7.3 and not 7.4 because cyberpanel database is using Php 7.3

3 Likes

Thanks, pro, your info very impotant for me, worked… 7.3

1 Like

hi every one
PHP Max Input Vars1000
⤏ We recommend to increase this value to 2000 or more. [Read more]

(Newspaper Documentation: Requirements for Newspaper theme)

hi ever one
PHP Max Input Vars1000
⤏ We recommend to increase this value to 2000 or more. [Read more]

(Newspaper Documentation: Requirements for Newspaper theme)

Centos PHP7

#sudo yum install php7.0-gd
#sudo yum install php7.0-mbstring

As of NOW - January 2023… PHP version for phpmyadmin is 7.4
I have tried 7.3 / 8.0 but, once i increased values in 7.4 - it worked for me ! :innocent:

1 Like

man, how to solved this? i tried the same thing, but not working, phpmyadmin with php 7.4.

After increasing values in 7.4, SAVE changes & also after that, do click the “Restart PHP” button… It’ll work.

1 Like

Also do this via ssh…

  • Restart LSCPD by following command:

systemctl restart lscpd

1 Like

not working for me.

Hi, I achieved. After increasing the PHP limits, I simply ignored the import field label. I kept waiting for the error to happen, but it didn’t. My database is over 200MB and has been successfully imported. I also read on a DEV blog that phpMyAdmin version 5.1 is not as compatible with Php 7.4. So I assumed a bug in the import field label would be the least I should expect.

Me needer … php 8.1 on phpmyadmin shows 2048M. Does not change

I found a way to upload large files. Just gzip the file
Locate the file on your local console:

gzip file.sql

don’t work !!!

https://community.cyberpanel.net/uploads/default/original/2X/a/a8cff0c600f1ca7538659c14085660d954ef2127.png

done