How To Increase The PHP Memory Limit?

  • Last Created On Dec 05, 2024
  • 57
0 0

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 browsers search function.

  • Enter the new memory limit for your php applications.

It is not recommend 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 recommend to increase this limit past 128 MB.

  • Save the file.
  • Upload the file using your FTP client.
Views: 57

Recent Articles

  • How to Install JAX with ROCm Acceleratio...
    847
  • Deploy a PyTorch Workspace on a Vultr Cl...
    506
  • Managing Backup Storage
    542
  • Automating FTP Backups in Windows Server
    515
  • Automating FTP Backups in Linux
    494

Popular Articles

  • Our General Terms & Conditions
    13613
  • Our Privacy Policy
    12989
  • Our Cookies Policy
    1487
  • How to Install JAX with ROCm Acceleratio...
    847
  • Our Terms of Use
    838