cancel
Showing results for 
Search instead for 
Did you mean: 

Error while installing magento2

Error while installing magento2

Hello Team,

 

Could you someone help me, I am unable to proceed further.

 

 magento2 % php bin/magento setup:install --base-url=http://127.0.0.1/magento2/ \

--db-host=localhost --db-name=magento2 --db-user=User --db-password=User####### \

--admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com \

--admin-user=admin --admin-password=admin123 --language=en_US \

--currency=USD --timezone=America/Chicago --use-rewrites=1 \

--search-engine=elasticsearch7 --elasticsearch-host=localhost \

--elasticsearch-port=9200

 

 

PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20190902/intl (dlopen(/usr/local/lib/php/pecl/20190902/intl, 9): image not found), /usr/local/lib/php/pecl/20190902/intl.so (dlopen(/usr/local/lib/php/pecl/20190902/intl.so, 9): image not found)) in Unknown on line 0

 

Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20190902/intl (dlopen(/usr/local/lib/php/pecl/20190902/intl, 9): image not found), /usr/local/lib/php/pecl/20190902/intl.so (dlopen(/usr/local/lib/php/pecl/20190902/intl.so, 9): image not found)) in Unknown on line 0

SQLSTATE[HY000] [1045] Access denied for user 'User'@'localhost' (using password: YES)

 

In InstallCommand.php line 274:

                               

  Parameter validation failed.

 

Thank You in advance.

 

 

 

 

 

1 REPLY 1

Re: Error while installing magento2

@lavanyapej6709 

Pass the below command:

sudo apt-get install php7.0-intl
Where add your PHP version at php7.0
or
Remove the comment by removing ';' sign from php.ini file from
;extension=intl
or
Use below command with appropriate details:
php bin/magento setup:install --base-url="http://127.0.0.1/magento2/" --db-host="localhost" --db-name="magento2" --db-user="User" --db-password='User#######' --admin-firstname="Magento" --admin-lastname="User" --admin-email="user@example.com" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="INR" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host=127.0.0.1 --elasticsearch-port=9200
In order to solve  SQLSTATE[HY000] [1045] Access denied for user 'User'@'localhost' (using password: YES) error:
Please check the user permission once.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.