Vesta Control Panel 0.9x, WordPress and Allowed memory size of 33554432 bytes exhausted
PHP has a memory limit of 128MB in a default install of Vesta Control Panel.
However should you run wordpress in HTTPS, you will find yourself at the mercy of the allowed memory size error and all the fixes in the world does not fix this.
These solutions include
- Create a php.ini in the public_html folder and add memory_limit = 128M
- Edit wp-settings.php and add define("WP_MEMORY_LIMIT", “128M”);
- Create a .htaccess file in the public_html folder and add php_value memory_limit 128M
This is because for HTTPS, vesta uses another file which overrides all of these settings.
You can find this file inside /home/[user]/conf/web/shttpd.conf
Inside this file, search for php_admin_value memory_limit 32M and either remove it or put it a value that is acceptable to you.