Can we increase the memory limit of PHP directly from the command line?
I am having more than one PHP installation on my ubuntu system and I am using a simple php-switch-scripts script to setup and switch between the PHP versions.
But I often run into a situation where I face some issues with the php.ini config values.
for example, I would have updated my memory_limit value to some higher value on my php.ini that is for PHP 7.2 but might not increased it on the php.ini of PHP 7.4.
Yes, I do understand that I could have updated the values in all of my php.ini files in less time than I took to write to this question but if there is a way I can automate this using a shell script I want to do it. so that both I and my colleagues make use of it in the future.
Thanks in advance...