In ordet to modify PHP memory_limit in cPanel we recommend you to follow the steps below:
- Log in to cPanel
- Go to the Software section >> Select PHP Version
- Click on PHP Options
- Select from the drop down memory_limit menu the desired value then click on Apply
- Then click Save
