This is super easy, despite how difficult it seems to find a straight answer online.
All you need to do is change three parameters in your
php.ini file. For Apache, the location of this file is
/etc/php/7.4/apache2/php.ini. It may be slightly different for Nginx, but the process is the same....