How to Increase maximum post size in PHP

In PHP the default POST maximum size is 2MB,
If you need to be able to upload larger files to the server you have to change the following configurations in your php.ini

//the total size that can be posted
post_max_size = 20M

//the maximum size of a single file
upload_max_filesize = 10M