Page 1 of 1

PHP.ini not working!!!

Posted: Fri Dec 07, 2018 11:25 am
by tanquang
I changed php.ini with upload_max_filesize and post_max_filesize in /etc/php.ini and in /home/username/web/domain/public_html as follows:

Code: Select all

upload_max_filesize = 3G
post_max_size = 3G
And the .htaccess file is as follows:

Code: Select all

<IfModule mod_php5.c>
   php_value upload_max_filesize 3G
   php_value post_max_size 3G
</IfModule>
But when I check using phpinfo(), I get the following information:

Code: Select all

Local Value | Master Value
upload_max_filesize 10M | 3G
post_max_size 8M | 3G
How to change the value of Local Value?
I used ini_get() and got the result returned like phpinfo():

Code: Select all

echo 'post_max_size = ' . ini_get('post_max_size') . "\n"; -> 8 MB
echo 'upload_max_filesize= ' . ini_get('upload_max_filesize') . "\n"; -> 10 MB
What is this error? How to fix?