cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to install 2.4.0 on php version 7.3.33 on centos 7

Unable to install 2.4.0 on php version 7.3.33 on centos 7

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

3 REPLIES 3

Re: Unable to install 2.4.0 on php version 7.3.33 on centos 7

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
Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Unable to install 2.4.0 on php version 7.3.33 on centos 7

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. 

Found the above suggestion helpful, hit the "Kudos" & Accept as Solution!

Thank you,
Rohan D.
Free & Premium Magento 2 Extensions

Re: Unable to install 2.4.0 on php version 7.3.33 on centos 7

  1. Upgrade PHP to version 7.4.x on CentOS 7.
  2. Restart the web server (e.g., Apache).
  3. Use a simple alphanumeric password for the admin user in the Magento installation command.
  4. Run the Magento installation command.