Before making ANY changes, remember to back up the php.ini file:
cp /etc/php.ini{,.back.$(date +"%Y-%m-%d")}Note: If the box is using php-fpm you will need to locate the php.ini file for this.
upload_max_filesize = 2MThis value also effects file upload. To upload files this value must be 15% larger than the upload_max_filesize.
post_max_size = 8M
Once you have made changes to the file you will need to reload apache for them to take effect:
Php.ini file can be found:
vim /etc/php.inimemory_limit is the maximum amount of memory in bytes that a script is allowed to allocate.
memory_limit = 128M