Find the php.ini file. In amazon ec2 linux instance, you can find in "/etc/php/7.0 (your version may vary)/apache2/" folder. Remember it varies from system to system.
On mac, it is at "/private/etc"
On mac, it is at "/private/etc"
post_max_size = 2M
upload_max_filesize = 2M
Change the above two values to your desired value in MB. And restart the apache post update.
sudo service apache2 restart
Or
sudo /usr/sbin/apachectl graceful
Or
sudo /usr/sbin/apachectl graceful