If you are using Gallery2 and you get a error stating the upload size limit being too large. This is not a Gallery2 limitation but a php limitation.
To modify the limitation limit of two megabyte to e.g. ten megabyte limit is as simple as just changing the php.ini file.
The administrator just needs to change the two variables in the php.ini file.
Under debian the php.ini file is located in the following area
The following variables need to be changed post_max_size and upload_max_filesize.
Change the values to the following
Also remember to restart apache2 for the changes to take effect.
The following command is needed to restart apache.