Increasing max upload file size in cPanel phpMyAdmin

Status
Not open for further replies.

mealto

Well-Known Member
Oct 20, 2006
175
0
166
We are using phpmyadmin that was installed with Cpanel. How do we increase the size of the Max Upload Size in pypmhadmin? Tech support has modified the php.ini file but no increase yet. They think this is hard coded into phpmyadmin. Any thoughts?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
As far as I know, php.ini affects the Apache implementation of PHP (port 80) not the implementation of PHP that phpMyAdmin runs on when in cPanel and WHM (port 2082-3). Keep in mind pages served on ports 208x are served by cpsrvd, not Apache.

The PHP implementation you would need to modify should be located in /usr/local/cpanel/3rdparty/bin/php
 

mealto

Well-Known Member
Oct 20, 2006
175
0
166
Thanks, just forwarded the info the tech support. Let's see what happens.
 

mealto

Well-Known Member
Oct 20, 2006
175
0
166
Tech support has come back and let us know that they have updated the file from above to 200 MB but phpmyadmin still says (Max: 51,200KiB).

Any ideas?
 

mealto

Well-Known Member
Oct 20, 2006
175
0
166
Have you restarted cpanel services?
I am inside WHM but cannot find a link to do this. I can see these under restart services:

DNS Server (BIND)
E-Commerce Server (Interchange)
FTP Server (ProFTPd/PureFTPd)
HTTP Server (Apache)
IMAP Server (uwimap)
Mail Server (Exim)
POP3 Server (cppop)
SQL Server (MySQL)
SSH Server (OpenSSH)

Would any of these be it?
 

mealto

Well-Known Member
Oct 20, 2006
175
0
166
Via SSH execute service cpanel restart
Just ran it and got confirmation that everything restarted with am OK status. phpmyadmin stil showing 50 MB limit. Any ideas?

Noticed that Melange Chat & InterChance "failed". Is this normal?
 

flash7

Well-Known Member
Feb 16, 2004
201
0
166
Also change that parameter:
post_max_size = 55M

then restart cpanel
service cpanel restart

;)

Noticed that Melange Chat & InterChance "failed". Is this normal?
yes
 

mealto

Well-Known Member
Oct 20, 2006
175
0
166
Also change that parameter:
post_max_size = 55M

then restart cpanel
service cpanel restart

;)


yes
I just ran this

nano /usr/local/cpanel/3rdparty/etc/php.ini

and changed this line:

upload_max_filesize = 150M

Restarted Cpanel and Apache and phpmyadmin is still showing 51,200kIB in max upload file size?

What is going on?

Add:eek:n. Restarted A new browser sessions and max upload size in phpmyadmin is Max: 56,320KiB. Why the small increase?
 

mealto

Well-Known Member
Oct 20, 2006
175
0
166
I see, there are 2 lines. Here is what I have in the .ini file. Should:

post_max_size = 150M

be in this section too?

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads = On
;upload_tmp_dir =
upload_max_filesize = 50M

Where is it?
 

lvlind

Active Member
Jun 7, 2007
33
1
156
Vinnica, Ukraine
Solved

You should increase:
PHP Max Post Size for cPanel PHP in Megabytes (default 55M with a maximum value of 2047M)
and
PHP Max Upload Size for cPanel PHP in Megabytes (default 50M with a maximum value of 2047M)
values via
Main >> Server Configuration >> Tweak Settings
 
  • Like
Reactions: YER Hosting

hostnamecl

Member
PartnerNOC
Jun 18, 2010
6
0
51
you can create a single php.ini in the /user/pubic_html directory with the line:

upload_max_filesize = 150M


thats all, you dont have to restart anything.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
This will not work for the internal PHP, since PHPMyAdmin uses the cPanel internal php.ini file. You should change this in WHM's Tweak Settings as already noted by prior users.

Additionally, individual php.ini files only work if using suPHP. DSO does not support them on user level accounts, while CGI and FCGI do support them but only after making configuration changes.
 
Status
Not open for further replies.