The newest php version installed on server does not allow global settings (such as execution time, max upload filesize, max post file size, etc.) to be changed.
Folow these steps to resolve the issue:
- Eval
phpinfo();
- Search for ‘Scan this dir for additional .ini files‘ text in
phpinfo()
output - It will be something like this
/etc/php5/apache2/conf.d
- Create your user.ini file inside the dir. (
/etc/php5/apache2/conf.d/user.ini
) - Use this ini file for custom settings.
- Restart the server
File /etc/php5/apache2/conf.d/user.ini
post_max_size =90M upload_max_filesize =50M