Alert: Please view the latest updated tutorial here: Panel Tutorials

You can change the amount of memory PHP allots to each request by using a .user.ini file.


Using .user.ini does not change the WordPress memory limit. Check out our tutorial on using wp-config.php to increase your WordPress memory limit.

First, create a file named .user.ini in your app's web root directory using Cyberduck or Filezilla sftp clients.

apps/APPNAME/public/.user.ini

 

Change the Memory Limit

Then, enter the following line with the new value for your app's memory limit (512 megabytes, for example):

memory_limit = 512M

Disable the Memory Limit

You can also disable the PHP memory limit for your app by entering the following line:

memory_limit = -1

Verify the Changes

To confirm the customizations to your app's .user.ini file are correct, you can create a PHP script that contains only the following line:

<?php phpinfo(); ?>

and then request that file through your browser. You should see the "Local value" for your modified setting s

Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution