php.ini automatically overwritten upload_max_filesize & post_max_size php.ini file

Smaily

Well-Known Member
Sep 19, 2011
46
0
56
cPanel Access Level
Root Administrator
I have tried changing upload_max_filesize and post_max_size php.ini file multiple times higher to 250MB but somewhat over time it gets reset to 50MB. How to change it so it wont change back?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

Are you attempting to modify the value for your system PHP configuration, or for the internal cPanel PHP configuration? What method are you using to modify the value?

Thank you.
 

Smaily

Well-Known Member
Sep 19, 2011
46
0
56
cPanel Access Level
Root Administrator
Im aiming in higher upload limit in phpMyAdmin,
I changed following values which seemed to work but over time they get overwritten back to default.
/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
/usr/local/cpanel/3rdparty/etc/php.ini
/usr/local/lib/php.ini

I also have set these values in WHM php.ini (this one does not get overwritten but has no impact to phpMyAdmin.
 

quietFinn

Well-Known Member
Feb 4, 2006
2,109
580
493
Finland
cPanel Access Level
Root Administrator
After editing /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini or /usr/local/cpanel/3rdparty/etc/php.ini
did you run:

/usr/local/cpanel/bin/install_php_inis
As it states on top of both files:
;
; CPANEL NOTICE:
; If you edit this file you must run /usr/local/cpanel/bin/install_php_inis
;
;
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello :)

You can browse to the "PHP" tab in "WHM Home » Server Configuration » Tweak Settings" and modify the following options:

cPanel PHP max POST size
cPanel PHP max upload size

This will ensure the value is reflected and preserved in /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini.

Thank you.