👨🔧Change PHP Configuration [Terminal]
easiest method i know
How to execute php memory limit change commands with different memory_limit
memory_limit
php -d memory_limit=-1 bin/console
use for changing the memory limit as the default memory limit exhausted
Change PHP Configuration [Terminal]
sudo service apache2 restart
you must restart the apache service for applying the change by using
you can change any .ini file if you replace ‘ ‘
field
sed -i 's,^memory_limit =.*$,memory_limit = 1G,' /etc/php/8.1/apache2/php.ini
for example, if you would like to change upload_max_filesize
grep '^memory_limit' /etc/php/8.1/apache2/php.ini
Check what version you are currently using:
php -v
Last updated