Skip to content
English
  • There are no suggestions because the search field is empty.

How to increase PHP memory limit for SimpleRisk

With the release of SimpleRisk version 20200305-001, we have surpassed the application size limit of 128MB. As a result, the default PHP memory_limit in most installations, which is set to 128MB, may pose a challenge. In this brief FAQ, we will guide you through updating your php.ini file to ensure that the application can successfully back up its files.

How To Fix

To begin, we need to locate your php.ini file. The location of this file can vary depending on your Linux distribution, so we've provided steps to help you find it. 

For Linux Users:
1. Open your terminal and run the command: `php -i | grep php.ini`.
2. Once you have identified the location, open the php.ini file in your preferred text editor (for example, `vi /etc/php.ini`).

After you open the file, look for the `memory_limit` setting by searching for `/memory_limit` in vi. It's important not to set this value near the maximum RAM allocated for your server. If you're uncertain, a safe value to start with is 512MB, but if you feel more confident, you can set it up to 1GB. Keep in mind that the configuration requires a specific format. Here are some acceptable examples:

memory_limit = 256M
memory_limit = 256000K
memory_limit = 268435456


After making your edits, remember to save the file. To apply these changes, you'll need to restart Apache. The command to do so may vary based on your Linux distribution, so please use one of the following commands that suits your system:

For Linux Users:

systemctl restart apache2
systemctl restart httpd
service apache2 restart
service httpd restart


At this point, you have successfully completed the necessary changes.

 

Summary

You have now updated your PHP memory_limit to allow your SimpleRisk backup to go through. If you are still having problems with the backup phase of the update please review your apache error log “/var/log/apache2/error.log” in most cases and send the contents to support@simplerisk.com and we will be happy to assist you.