I know this is a repeated question, but I couldn't find a solution after trying all the answers discussed here.
When I run php bin/magento setup:upgrade command, it shows error like
PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 12288 bytes) in /var/www/html/mysite/vendor/paragonie/sodium_compat/lib/sodium_compat.php on line 214
Modified memory_limit value in php.ini file, but still issue exists. Any other solutions for this problem?
phpinfovia CLI, and check what it says which config file was actually used.