IMPORTANT

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.
Hint: rpm -qc packagename - locates the configuration files for a package


upload_max_filesize is the maximum size of an uploaded file
upload_max_filesize = 2M
This value also effects file upload. To upload files this value must be 15% larger than the upload_max_filesize.
post_max_size = 8M

Reload Configuration

Once you have made changes to the file you will need to reload apache for them to take effect:



php.ini

Php.ini file can be found:

vim /etc/php.ini
memory_limit is the maximum amount of memory in bytes that a script is allowed to allocate.
memory_limit = 128M


reference: https://www.devside.net/wamp-server/apache-and-php-limits-and-timeouts