aantigual

Member
Jul 23, 2014
8
0
1
cPanel Access Level
Root Administrator
HI, sorry mi english!.

I have the same problem different value of "upload_max_filesize"

I put y WHM upload_max_filesize = 10M
but, i have by phpinfo 2M
if i run
/usr/local/cpanel/bin/rebuild_phpconf --current

i have this.
####
[email protected] [~]# /usr/local/cpanel/bin/rebuild_phpconf --current

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

LANGUAGE = (unset),

LC_ALL = (unset),

LC_CTYPE = "UTF-8",

LANG = "es_ES.UTF-8"

are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

Available handlers: suphp dso cgi none

DEFAULT PHP: 5

PHP4 SAPI: none

PHP5 SAPI: suphp

SUEXEC: enabled

RUID2: enabled

###

i found by
grep -lir "upload_max_filesize = 2M" /usr
a line in
/usr/local/cpanel/scripts/php.ini

I understand this is only a base configuration not a actually configuration.

Where i change the global configuration for this parameter?
Please helpme!
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

You can check php.ini file path using the command.

php -i | grep php.in


The above command will show the exact php.ini file path then you can change the value.
 
Last edited:

aantigual

Member
Jul 23, 2014
8
0
1
cPanel Access Level
Root Administrator
Hello,

You can check php.ini file path using the command.

php -i | grep php.in


The above command will show the exact php.ini file path then you can change the value.
Thank for your response:

Configuration File (php.ini) Path => /usr/local/lib

Loaded Configuration File => /usr/local/lib/php.ini
 

aantigual

Member
Jul 23, 2014
8
0
1
cPanel Access Level
Root Administrator
Thank to both, but my php.ini have that.


[email protected] [~]# cat /usr/local/lib/php.ini | grep upload


; Maximum allowed size for uploaded files.

upload_max_filesize = 10M


@cPanelMichael i use EasyApache 3, and modify settings php by the edit that you refer to me

In the domain no have a .htaccess or php.ini file configuration.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Are you sure this domain name resolves to the server you are making the changes on? Did you restart Apache after manually editing the /usr/local/lib/php.ini file?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.