Reputation: 99
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
Upvotes: 0
Views: 691
Reputation: 1
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
max_execution_time=18000
max_input_time=1800
memory_limit=4G
restart apache2
Upvotes: 0
Reputation: 99
The issue is related to memory limit.
I added ini_set("memory_limit","-1");
in the bin/magento
file after <?php tag.
Upvotes: 1