I had another fix. os: ubuntu 16.04 phpversion: 7.0
I created a phpinfo.php file containing:
<?php phpinfo() ?>
put the phpinfo.php file in the root of your site www.mywebsite.com/phpinfo.php
Go to it and find the line:
Uploaded configuration file: /etc/php/7.0/cgi/php.ini
Now you know that the php.ini file is loading.
ssh to the server and use your favorite editing tool (mine is nano) to configure php.ini
change the values according to your preference.
post_max_size = 128M
upload_max_filesize = 64M
Save and close the file.
Restart apache
sudo service apache2 restart
__
check phpinfo.ini if new values are set.
and if you have them, you must go.
source share