xxxxxxxxxx
# vi /etc/php.ini [On Cent/RHEL/Fedora]
find php.ini under php folder
change these variables with the size limit you want
upload_max_filesize = 10M
post_max_size = 10M
======================
For MAc uses
# brew info php
you will find the path then edit the changes
Location : => # cd /opt/homebrew/etc/php/8.1
Donot forgot to restart the server