Magento 2.4.5-p1 installation error

Preconditions (*)

  1. Magento version: 2.4.5-p1
  2. tag: open source
  3. PHP: 8.1.2
  4. MySQL version: 8.1
  5. Nginx: 1.18
  6. OpenSearch: 2.4
  7. Ubuntu 22
  8. Composer 2

Steps to reproduce (*)

  1. Install all Magento prequisites according to the documentation.
  2. Configure php settings according to the prerequisites

Expected result (*)

  1. Magento should install smoothly without any error messages using composer

Actual result (*)

  1. bin/magento setup:install
    –base-url=http://123.123.123.123/
    –db-host=localhost
    –db-name=magento
    –db-user=magento
    –db-password=“U274eeGzNCqKJ2LpvtS@329”
    –admin-firstname=bob
    –admin-lastname=smith
    –admin-email=[email protected]
    –admin-user=bob
    –admin-password=example@123
    –language=en_US
    –currency=GBP
    –timezone=Europe/London
    –use-rewrites=1

here is the error:
array_merge(): Argument #2 must be of type array, string given#0 /var/www/html/setup/src/Magento/Setup/Model/ConfigModel.php(157): array_merge()
#1 /var/www/html/setup/src/Magento/Setup/Console/Command/InstallCommand.php(273): Magento\Setup\Model\ConfigModel->validate()
#2 /var/www/html/vendor/symfony/console/Command/Command.php(221): Magento\Setup\Console\Command\InstallCommand->initialize()
#3 /var/www/html/vendor/symfony/console/Application.php(1021): Symfony\Component\Console\Command\Command->run()
#4 /var/www/html/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand()
#5 /var/www/html/vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun()
#6 /var/www/html/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun()
#7 /var/www/html/bin/magento(23): Symfony\Component\Console\Application->run()

please help

is admin password ok - is it complex enough ?

Turns out the issues were passwords:
no hypen allowed. It must contain numbers, upper and lower case letters.
slashes not allowed: the command must be executed without the slashes
and proper language and currency codes. E.g en_GB
In addition, rewrite and session save also prompt the error as well.

thanks for posting solution !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.