upload file error

i have a code upload image with php
upload image < 3Mb=>ok
upload image >4 Mb =>error

The maximum upload file size for PHP scripts can be configured in the php.ini file.

There’s multiple of those, the correct one for you to modify depends on whether you’re using Apache with FCGId (which is Virtualmin’s default - are you using that?).