Troubleshooting - Increasing PHP Memory Limit

To be able to use any software with no problem there are minimum requirements that are required for the software to work properly. Our themes and builders are no exception regarding this matter.

One of the prerequisites of our themes and builders is the PHP Memory Limit settings in the hosting service provider. Our recommended value for the PHP Memory limit is 512MB or higher. Depending on the other plugins that you use and they need that memory as the resource too you may need to have a value more than 512MB.

How to Increase the PHP Memory Limit

There are two methods to increase the PHP memory limit which depending on your hosting service provider you may need to choose accordingly.

1. Increasing the PHP memory limit using WordPress

2. Increasing the PHP memory limit using the hosting server settings

Increasing the PHP memory limit using WordPress

To increase the PHP memory limit in your WordPress installation, you need to access the installation files via FTP and find the wp-config.php file in the root folder of the installation.

Edit that file and add the code below after /* That's all, stop editing! Happy blogging. */ section:

define('WP_MEMORY_LIMIT', '512M');

WordPress memory limit can be different from the server version that is why you need to set this option anyway.

For further reading regarding the WordPress options click here.

Increasing the PHP memory limit using the hosting server settings

To increase the PHP memory limit on the server you may need to access the php.ini file and edit/add the line below:

memory_limit = 512M;

If you don’t have access to the php.ini file you can increase the limit using the .htaccess file in the root folder of your WordPress installation:

php_value memory_limit 512M

If the methods above for increasing the PHP memory limit on the server does not work for you, it shows that your hosting service provider restricts that access and you need to contact them to do that for you.

1 Like