I have read many solutions on internet , but still cannot change upload_max_filesize
value (upload_max_filesize
always = 2M )
here is my loaded php.ini
in phpinfo()
:
Configuration File (php.ini) Path /etc/php/7.0/apache2
Loaded Configuration File /etc/php/7.0/apache2/php.ini
Scan this dir for additional .ini files /etc/php/7.0/apache2/conf.d
upload_max_filesize 2M 2M
post_max_size 8M 8M
here is my edited php.ini
in /etc/php/7.0/apache2/php.ini
; http://php.net/post-max-size
post_max_size = 86M
; http://php.net/upload-max-filesize
upload_max_filesize = 40M
im using ubuntu 14.04,apache2,php7.0 (I have reset apache2 many time after each change in php.ini )
php -i | grep -i "upload\_max\_filesize\|post\_max\_size\|max\_file\_uploads"
is a helpful command that can help you catch that maybe whatever "ini" file you updated either hasn't been reloaded or might not be the correct file in use at all. – Supermundane