Open file /etc/php/7.4/fpm/php.ini, make changes to the parameters.
memory_limit = 1024M max_execution_time = 120
Then run the command: systemctl restart php7.4-fpm