How To Increase The PHP Memory Limit?

Summary

This article will explain how to modify the total amount of RAM that can be used by your PHP applications.

Generating a new php.ini file

  1. Login to your AKLWEB HOST Plesk Or cPanel Account
  2. Under Programming click on the PHP Config icon.
  3. Click the Save Changes button

Using the File Manager

  • Locate the Files section
  • Click the File Manager icon.
  • If prompted choose Web Root, otherwise navigate to the public_html folder.
  • Right-click the php.ini file
  • Choose either Edit or Code Edit
  • Click the Edit button.
  • Search for memory_limit, without the quotes.

You can press Control + F on your Windows PC or Command + F on your Mac to use your browser's search function.

  • Enter the new memory limit for your PHP applications.

It is not recommended to increase this limit past 128 MB.

  • Click Save Changes

Using an FTP Client

  • Connect to the server with your FTP client.
  • FTP – Uploading the website
  • Navigate to the public_html folder.
  • Download the php.ini file.
  • Open the file with any text editor.
  • Search for memory_limit, without the quotes.
  • Enter the new memory limit for your PHP applications.

It is not recommended to increase this limit past 128 MB.

  • Save the file.
  • Upload the file using your FTP client.

We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies

More