How to find the PHP Memory Limit via SSH?

0
151
PHP Memory Limit
PHP Memory Limit Graphical Illustration

What is PHP Memory Limit?

The default PHP memory limit before the version 5.2 was 8MB. Then it was increased to a default of 16MB for the version 5.2.0. Now, currently, it is increased to a default of 128MB. PHP is a widely used open source scripting language. It is used for web development and can be embedded into HTML.

How to find the PHP Memory Limit via SSH?

Secure Socket Shell(SSH) is a network protocol that provides network administrators to access a remote computer in a secured way. It also refers to the suite of utilities that implements the protocol. It provides strong authentication and secure communications over an insecure channel.

To check the PHP memory limit via SSH, run the command php-i|grep memory

This shows the memory limit of the individual PHP script that can run in.

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here