I am trying to install Magento 2.4.5 on Centos server through Terminal,
But I stuck with setup and installation – https://prnt.sc/_usdY93pCVUW.
I am getting below message when I run php bin/magento setup:install
Starting Magento installation:
File permissions check...
[Progress: 1 / 1323]
Required extensions check...
This is the command
php bin/magento setup:install
--base-url=http://xxxxx.com
--db-host=localhost
--db-name=xxxx
--db-user=xxx
--db-password=hc?]SsNreqvi
--admin-firstname=admin
--admin-lastname=admin
[email protected]
--admin-user=admin
--admin-password=admin123
--language=en_US
--currency=USD
--timezone=America/Chicago
--use-rewrites=1
--search-engine=elasticsearch
--elasticsearch-host=localhost
--elasticsearch-port=9200
--elasticsearch-index-prefix=magento2
--elasticsearch-timeout=15
2
Answers
The issue is related to memory limit. I added
ini_set("memory_limit","-1");
in thebin/magento
file after <?php tag.I got the same error and resolved by Configure php settings . You can follow these steps :
php -i | grep "Configuration File"
sudo nano <path_of_php.ini_file>
Update these values
restart apache2