0

Currently when I do the following command in the command line for ubunutu:

php -i

I get the php cli memory_limit, but how do I output the apache2 memory_limit in the command line? I know I can make a file and put info() to see it like that, but I want to see it in the command line.

1 Answer 1

1

Use grep to find the line in the ini file -

grep memory_limit /etc/php/7.2/apache2/php.ini

Change the path appropriately. This assumes that any given script isn't changing it at run time, etc.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .