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!

2 REPLIES 2

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.

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

Hello, @shunn0911k3b65 

The issue you're encountering with the setup:install command in Magento is due to the use of non-standard quotation marks and magento does not understand this quotations and command is incorrect and way it was written is wrong.
Below is the correct command use it to solve the issue.

 

php bin/magento setup:install --base-url="http://example.com/magento2/" --db-host="localhost" --db-name="example_db_name" --db-user="example_db_user" --db-password="example_db_password" --admin-firstname="John" --admin-lastname="Doe" --admin-email="john.doe@example.com" --admin-user="admin" --admin-password="admin1234" --language="en_GB" --currency="GBP" --timezone="Europe/London" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host="elasticsearch-host" --elasticsearch-port=9200

change the value according to your actual values and that’s it.

 

If you've found my answer useful, please give "Kudos" and "Accept as Solution"