To modify the PHP memory limit, upload limit, execution time limit. go to:

Services > PHP-FPM configuration > Resource limit

 

PHP resrouce configuration Virtualmin

 

You can change the memory limit, maximum upload size, script execution time limit here.