Question
I want to change the memory_limit of a virtual host in virtualmin. How can I do that?
Solution
First, login to Virtualmin on port 10000, now, select the virtual host from the dropdown under Virtualmin tab. Now under the services, there are PHP 5 Configuration and PHP 7 Configuration
![](https://mellowhost.com/blog/wp-content/uploads/sites/3/2021/03/virtualmin_php_configuration.png)
Click on the version you want to change configuration for. It will show you a list of options to change php variables.
Now there is ‘Resource Limit’, that contains the options like maximum execution time, or memory limit for PHP.
![](https://mellowhost.com/blog/wp-content/uploads/sites/3/2021/03/virtualmin_php_configuration_2-1024x134.png)
Now, change the ‘Maximum Memory Allocation’ option to something that you want to change memory_limit of php in virtualmin
![](https://mellowhost.com/blog/wp-content/uploads/sites/3/2021/03/virtualmin_php_configuration_3-1024x154.png)