Introduction
A PHP application running under your domain throws an error similar to the following.
PHP Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/cptest/public_html/wp-content/plugins/forminator/library/model/class-form-entry-model.php on line 1815
When this occurs, the PHP memory limit for the site must be increased. This article provides the steps needed to correct the error from WHM.
Please note that changing the memory limit from WHM affects all sites using the specified PHP version.
Procedure
- Log into WHM as the ‘root’ user.
- Navigate to "Home / Software / MultiPHP INI Editor."
- Click the "Basic Mode" tab.
- Select the version of PHP from the dropdown menu.
- Locate the "memory_limit" option.
- Increase the value in the "memory_limit" textbox to the desired value.
- Click the "Apply" button.
Comments
0 comments
Article is closed for comments.