PHP.ini not working!!!
Posted: Fri Dec 07, 2018 11:25 am
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:
And the .htaccess file is as follows:
But when I check using phpinfo(), I get the following information:
How to change the value of Local Value?
I used ini_get() and got the result returned like phpinfo():
What is this error? How to fix?
Code: Select all
upload_max_filesize = 3G
post_max_size = 3G
Code: Select all
<IfModule mod_php5.c>
php_value upload_max_filesize 3G
php_value post_max_size 3G
</IfModule>
Code: Select all
Local Value | Master Value
upload_max_filesize 10M | 3G
post_max_size 8M | 3G
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