VestaCP default memory limits

Vesta Control Panel is a great web host control panel that makes it easy to host multiple websites from a Linux server.

The default memory limits in VestaCP can be a bit restrictive for WordPress sites, though. It is worth increasing the default PHP memory limits in VestaCP if the WordPress will be used with heavy themes or a number of plugins.

After a default installation, change the PHP memory limits for new sites by editing the HTTP and HTTPS config templates for Apache in

/usr/local/vesta/data/templates/web/apache2/hosting.stpl

and

/usr/local/vesta/data/templates/web/apache2/hosting.stpl

Find the appropriate php_admin_value lines and update these as required. Suggested values are:

        php_admin_value upload_max_filesize 32M
php_admin_value max_execution_time 60
php_admin_value post_max_size 32M
php_admin_value memory_limit 128M

If you have already created some websites change the same lines in the Apache .conf files in

/home/[user]/conf/web/[site].apache2.ssl.conf

and

/home/[user]/conf/web/[site].apache2.conf 

If existing sites have been modified, restart the Apache process through the VestaCP interface (found under the Server menu option for the admin user).