The standard memory_limit is 2048 MB, but you can adjust it via .htaccess or ini_set, while CMSes often have their own settings.
memory_limit is set to 2048 MB by default for all webhosting plans, but ultimately you can never use more memory than what is included with your chosen webhosting plan.
You can set memory_limit yourself. If you need more memory, you should first investigate whether the cause of the memory issue is a bug in your code, database, etc., rather than simply because memory_limit is “too low” – as this is often not the case.
memory_limit can be freely adjusted via .htaccess or directly in PHP code with ini_set().
Some CMS (e.g. WordPress) set their own memory_limit, and it must be set in a special way. See the documentation for the CMS you are using.
Article from the support category: PHP