CyberPanel Community

PHP Upload Size Doesn't Increase

hu
huuthi95 #1

Similar title, why my PHP upload size doesn’t increase althought i have edit in PHP config step by step:

I’m using PHP version 7.0

Error Image:


16 replies
hu
huuthi95 #2

Please help me, thanks so much

na
nador #3

I am also facing same problem limit doesn’t increase.
I did all on here

and its still 2mb

na
nador #4

I did it for php 7.3 few minutes ago as attached screenshots below.

Imgur
Imgur
Imgur
Imgur
Imgur

Whats wrong?

in
inspiredearth #5

If using the PHP Config edit tool in CP, why does it not do the necessary restarting of the PHP process? Wouldn’t that be the logical way to do it? Rather than the user having to hit the command line and do it themselves?

na
nador #6

i restored lsws using command /etc/init.d/lsws restart
I killed php using command killall php

Still no luck php upload limit doesn’t increase

na
nador #7

Can you give me command for killing php process on openlitespeed

da
daohai #8

right now, i have same problems & can not fix it . i try to restart service & change setting for all php version but can not

da
daohai #9

i try to edit php.ini at root folder & kill all php . it’s working now

db
dbGoran #10

I had the same problem as well. Only after rebooting the hardware it started to work.

Wy
Wyzzy #11

At the end which are the commands to solve this issue? :smiley:

Da
Davincent #12

Hi anyone managed to increase the upload size?

us
usmannasir #13

try

killall lsphp

ia
ianw5555 #14

I had the same issue, no amount of changes to php.ini and rebooting would increase the upload size and I could not import my database. I suggest a more sensible default value of say 64mb would be better.

Fortunately it is quite simple to import a database by ssh. Just upload mysql file to home folder via filemanager or ftp (/home/yourdomain.com) then log into ssh and change directory with cd /home/yourdomain.com then run this command.

mysql -p -u user_name database_name < file.sql changing the values to that of your mysql database, press enter and you will be prompted for your mysql user passwd press enter again job done.

ia
ianw5555 #15

I take your point but 2mb may as well be 0mb as no one is going to import a database smaller than 2mbs. As for imports larger than 64 Mbs, they are better done by ssh anyway as you would probably hit the php timeout with average broadband upload speeds.

Er
Eric #17

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. Good luck.

Sign in to reply