cancel
Showing results for 
Search instead for 
Did you mean: 

No arguments expected for "setup:install" command, got " ".

No arguments expected for "setup:install" command, got " ".

Hi, 
I want you to solve my problem of installation of magento2.4.6.

 

I am installing magento on EC2 and using RDS as a database.

And I run the command below.

 

[ec2-user@ip-***-**-**-*** magento]$ php bin/magento setup:install  --cleanup-database  \

--base-url=“http://**.***.**.*/var/www/html/magento/“  \

--db-host=“database-*.*************.************.rds.amazonaws.com”  \

--db-name=“magento2”  \

--db-user=“admin”  \

--db-password=“***********”  \

--admin-firstname=“****”  \

--admin-lastname=“********”  \

--admin-email=“***********@gmail.com”  \

--admin-user=“admin”  \

--admin-password=“******”  \

--language=“ja_JP”  \

--currency=“JPY”  \

--timezone=“Asia/Tokyo”  \

--use-rewrites=“1”

 

then I got the erorr 「No arguments expected for "setup:install" command, got " ". 」

 

I hope I will get some clue from you!

1 REPLY 1

Re: No arguments expected for "setup:install" command, got " ".

@shunn0911k3b65 

 

Hey,

 

Please use the below command to install magento, change base URL and other information based on your localhost

 

php bin/magento setup:install --base-url="http://localhost/magento2/" --db-host="localhost" --db-name="magento2" --db-user="root" --admin-firstname="admin" --admin-lastname="admin" --admin-email="admin@admin.com" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200

Thank You!

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.