0

ubuntu 22.04 and Magento2.4.3, php7.4 when i try setup:install Command i get following errors, any idea why is this happening? below is my commands

sudo composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento


sudo php bin/magento setup:install --base-url=http://localhost/magento2/pub/ --db-host=localhost --db-name=magento2 --db-user=magento2 --db-password=Admin@123 --admin-firstname=Admin --admin-lastname=Admin [email protected] --admin-user=admin --admin-password=Admin@123 --language=en_US --currency=USD --timezone=America/Chicago --backend-frontname=admin --use-rewrites=1 --search-engine=elasticsearch7 --elasticsearch-host=localhost --elasticsearch-port=9200

below are errors

rtrim() expects parameter 1 to be string, bool given#0 /var/www/html/magento2/vendor/magento/framework/Encryption/Adapter/Mcrypt.php(171): rtrim()
#1 /var/www/html/magento2/vendor/magento/framework/Encryption/Encryptor.php(452): Magento\Framework\Encryption\Adapter\Mcrypt->decrypt()
#2 /var/www/html/magento2/vendor/magento/module-config/Model/Config/Backend/Encrypted.php(111): Magento\Framework\Encryption\Encryptor->decrypt()
#3 /var/www/html/magento2/generated/code/Magento/Config/Model/Config/Backend/Encrypted/Interceptor.php(32): Magento\Config\Model\Config\Backend\Encrypted->processValue()
#4 /var/www/html/magento2/vendor/magento/framework/App/Config/MetadataConfigTypeProcessor.php(133): Magento\Config\Model\Config\Backend\Encrypted\Interceptor->processValue()
#5 /var/www/html/magento2/vendor/magento/framework/App/Config/MetadataConfigTypeProcessor.php(152): Magento\Framework\App\Config\MetadataConfigTypeProcessor->processScopeData()
#6 /var/www/html/magento2/vendor/magento/framework/App/Config/PostProcessorComposite.php(36): Magento\Framework\App\Config\MetadataConfigTypeProcessor->process()
#7 /var/www/html/magento2/generated/code/Magento/Framework/App/Config/PostProcessorComposite/Proxy.php(95): Magento\Framework\App\Config\PostProcessorComposite->process()
#8 /var/www/html/magento2/vendor/magento/module-config/App/Config/Type/System.php(397): Magento\Framework\App\Config\PostProcessorComposite\Proxy->process()
#9 /var/www/html/magento2/vendor/magento/framework/Cache/LockGuardedCacheLoader.php(136): Magento\Config\App\Config\Type\System->readData()
#10 /var/www/html/magento2/vendor/magento/module-config/App/Config/Type/System.php(281): Magento\Framework\Cache\LockGuardedCacheLoader->lockedLoadData()
#11 /var/www/html/magento2/vendor/magento/module-config/App/Config/Type/System.php(207): Magento\Config\App\Config\Type\System->loadDefaultScopeData()
#12 /var/www/html/magento2/vendor/magento/module-config/App/Config/Type/System.php(181): Magento\Config\App\Config\Type\System->getWithParts()
#13 /var/www/html/magento2/vendor/magento/framework/App/Config.php(132): Magento\Config\App\Config\Type\System->get()
#14 /var/www/html/magento2/vendor/magento/framework/App/Config.php(80): Magento\Framework\App\Config->get()
#15 /var/www/html/magento2/vendor/magento/framework/App/Config.php(93): Magento\Framework\App\Config->getValue()
#16 /var/www/html/magento2/vendor/dotmailer/dotmailer-magento2-extension/Setup/UpgradeData.php(400): Magento\Framework\App\Config->isSetFlag()
#17 /var/www/html/magento2/vendor/dotmailer/dotmailer-magento2-extension/Setup/UpgradeData.php(170): Dotdigitalgroup\Email\Setup\UpgradeData->upgradeFourFiveTwo()
#18 /var/www/html/magento2/setup/src/Magento/Setup/Model/Installer.php(1076): Dotdigitalgroup\Email\Setup\UpgradeData->upgrade()
#19 /var/www/html/magento2/setup/src/Magento/Setup/Model/Installer.php(960): Magento\Setup\Model\Installer->handleDBSchemaData()
#20 [internal function]: Magento\Setup\Model\Installer->installDataFixtures()
#21 /var/www/html/magento2/setup/src/Magento/Setup/Model/Installer.php(389): call_user_func_array()
#22 /var/www/html/magento2/setup/src/Magento/Setup/Console/Command/InstallCommand.php(231): Magento\Setup\Model\Installer->install()
#23 /var/www/html/magento2/vendor/symfony/console/Command/Command.php(255): Magento\Setup\Console\Command\InstallCommand->execute()
#24 /var/www/html/magento2/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#25 /var/www/html/magento2/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#26 /var/www/html/magento2/vendor/magento/framework/Console/Cli.php(115): Symfony\Component\Console\Application->doRun()
#27 /var/www/html/magento2/vendor/symfony/console/Application.php(149): Magento\Framework\Console\Cli->doRun()
#28 /var/www/html/magento2/bin/magento(23): Symfony\Component\Console\Application->run()
#29 {main}

and other mid command error

<warning>Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html</warning>
    Authentication required (repo.magento.com):
Downloading https://repo.magento.com/packages.json
<warning>Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html</warning>
    Authentication required (repo.magento.com):
Downloading https://repo.magento.com/packages.json
<warning>Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html</warning>
    Authentication required (repo.magento.com):
Web Setup Wizard installation of "magento/composer-root-update-plugin: 1.1.2" failed.
The helper "question" is not defined.

1 Answer 1

2

Its a missing php library error which is mcrypt, you can install it with this command.

pecl install mcrypt

and also run this command in case there are other libraries missing

sudo apt update && 
sudo apt install php7.4 && 
sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.