How To Increase The PHP Memory Limit?

  • Last Created On Dec 05, 2024
  • 10
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: 10

Recent Articles

  • How to Install JAX with ROCm Acceleratio...
    96
  • Deploy a PyTorch Workspace on a Vultr Cl...
    71
  • Managing Backup Storage
    83
  • Automating FTP Backups in Windows Server
    71
  • Automating FTP Backups in Linux
    75

Popular Articles

  • Our General Terms & Conditions
    2634
  • Our Privacy Policy
    2479
  • Our Cookies Policy
    275
  • Our Terms of Use
    153
  • How to Install JAX with ROCm Acceleratio...
    96