I tried to install magento 2.4.0 on centos 7. My php version is php 7.3.33, and when ever I run the install command it says "Too many arguments, expected arguments "command".". Here is the setup command
php bin/magento setup:install --base-url=https://example.com --db-host=localhost --db-name=rsthalwca_sthalDb --db-user=rsthalwca_stahl --db-password=Structured123* --admin-firstname=admin --admin-lastname=admin --admin-email=stc@structuredresource.com --admin-user=admin --admin-password=cd public_htmltructur3d@123 --use-rewrites=1
Hello @tunde_tunde
Try this
php bin/magento setup:install --base-url=https://example.com --db-host=localhost --db-name=rsthalwca_sthalDb --db-user=rsthalwca_stahl --db-password=Structured123* --admin-firstname=admin --admin-lastname=admin --admin-email=stc@structuredresource.com --admin-user=admin --admin-password='cd public_html' --use-rewrites=1
Hi @tunde_tunde
It seems you have applied incorrect credentials while installing.
Try this:
php bin/magento setup:install --base-url=https://example.com --db-host=localhost --db-name=rsthalwca_sthalDb --db-user=rsthalwca_stahl --db-password="Structured123*" --admin-firstname=admin --admin-lastname=admin --admin-email=stc@structuredresource.com --admin-user=admin --admin-password="cd public_htmltructur3d@123" --use-rewrites=1
In the above code, the --DB-password and admin-password are enclosed in double quotes to ensure that special characters within the passwords are treated correctly. Also, make sure that there are no unnecessary spaces between them.
After correcting the command, try running it again, and the installation process should proceed as expected. Hope it works for you.