Magento 2: Installation issue












0















I am trying to install magento on my localhost and getting issue file installing set up.



Starting Magento installation:
File permissions check...



            Required extensions check...

Enabling Maintenance Mode...

Installing deployment configuration...

Installing database schema:
[ERROR] PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:dbname=in...', '', '', Array)
#1 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#2 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#4 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#7 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#8 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#10 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#11 [internal function]: MagentoSetupModelInstaller->installSchema()
#12 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#13 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#14 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#15 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#17 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#19 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#20 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#22 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#24 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#25 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}









share|improve this question
















bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Have you verified that the files have 644 and folders 755?

    – Max
    Feb 22 '18 at 9:29











  • Yes file permission is 755

    – Aman Deep
    Feb 22 '18 at 9:30











  • check for any missing file , or db connectivity...

    – Afreen
    Feb 22 '18 at 9:53
















0















I am trying to install magento on my localhost and getting issue file installing set up.



Starting Magento installation:
File permissions check...



            Required extensions check...

Enabling Maintenance Mode...

Installing deployment configuration...

Installing database schema:
[ERROR] PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:dbname=in...', '', '', Array)
#1 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#2 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#4 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#7 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#8 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#10 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#11 [internal function]: MagentoSetupModelInstaller->installSchema()
#12 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#13 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#14 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#15 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#17 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#19 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#20 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#22 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#24 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#25 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}









share|improve this question
















bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Have you verified that the files have 644 and folders 755?

    – Max
    Feb 22 '18 at 9:29











  • Yes file permission is 755

    – Aman Deep
    Feb 22 '18 at 9:30











  • check for any missing file , or db connectivity...

    – Afreen
    Feb 22 '18 at 9:53














0












0








0








I am trying to install magento on my localhost and getting issue file installing set up.



Starting Magento installation:
File permissions check...



            Required extensions check...

Enabling Maintenance Mode...

Installing deployment configuration...

Installing database schema:
[ERROR] PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:dbname=in...', '', '', Array)
#1 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#2 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#4 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#7 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#8 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#10 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#11 [internal function]: MagentoSetupModelInstaller->installSchema()
#12 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#13 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#14 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#15 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#17 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#19 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#20 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#22 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#24 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#25 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}









share|improve this question
















I am trying to install magento on my localhost and getting issue file installing set up.



Starting Magento installation:
File permissions check...



            Required extensions check...

Enabling Maintenance Mode...

Installing deployment configuration...

Installing database schema:
[ERROR] PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:dbname=in...', '', '', Array)
#1 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#2 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#4 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#7 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#8 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#10 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#11 [internal function]: MagentoSetupModelInstaller->installSchema()
#12 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#13 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#14 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#15 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#17 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#19 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#20 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#22 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#24 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#25 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}

Next Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144
Stack trace:
#0 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(353): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): MagentoFrameworkDBAdapterPdoMysql->_connect()
#3 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT version(...', Array)
#4 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(465): Zend_Db_Adapter_Pdo_Abstract->query('SELECT version(...', Array)
#5 /var/www/html/m2111/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(520): MagentoFrameworkDBAdapterPdoMysql->_query('SELECT version(...', Array)
#6 /var/www/html/m2111/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(828): MagentoFrameworkDBAdapterPdoMysql->query('SELECT version(...', Array)
#7 /var/www/html/m2111/setup/src/Magento/Setup/Validator/DbValidator.php(93): Zend_Db_Adapter_Abstract->fetchOne('SELECT version(...')
#8 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(1193): MagentoSetupValidatorDbValidator->checkDatabaseConnection('', '', '', '')
#9 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(774): MagentoSetupModelInstaller->assertDbAccessible()
#10 [internal function]: MagentoSetupModelInstaller->installSchema()
#11 /var/www/html/m2111/setup/src/Magento/Setup/Model/Installer.php(344): call_user_func_array(Array, Array)
#12 /var/www/html/m2111/setup/src/Magento/Setup/Controller/Install.php(109): MagentoSetupModelInstaller->install(Array)
#13 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): MagentoSetupControllerInstall->startAction()
#14 [internal function]: ZendMvcControllerAbstractActionController->onDispatch(Object(ZendMvcMvcEvent))
#15 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#16 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#17 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#18 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): ZendMvcControllerAbstractController->dispatch(Object(ZendHttpPhpEnvironmentRequest), Object(ZendHttpPhpEnvironmentResponse))
#19 [internal function]: ZendMvcDispatchListener->onDispatch(Object(ZendMvcMvcEvent))
#20 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(ZendMvcMvcEvent))
#21 /var/www/html/m2111/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): ZendEventManagerEventManager->triggerListeners('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#22 /var/www/html/m2111/vendor/zendframework/zend-mvc/src/Application.php(314): ZendEventManagerEventManager->trigger('dispatch', Object(ZendMvcMvcEvent), Object(Closure))
#23 /var/www/html/m2111/setup/index.php(31): ZendMvcApplication->run()
#24 {main}






magento-2.1 magento2.1.11






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 22 '18 at 9:37









MGento

1,257319




1,257319










asked Feb 22 '18 at 9:27









Aman DeepAman Deep

13




13





bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Have you verified that the files have 644 and folders 755?

    – Max
    Feb 22 '18 at 9:29











  • Yes file permission is 755

    – Aman Deep
    Feb 22 '18 at 9:30











  • check for any missing file , or db connectivity...

    – Afreen
    Feb 22 '18 at 9:53



















  • Have you verified that the files have 644 and folders 755?

    – Max
    Feb 22 '18 at 9:29











  • Yes file permission is 755

    – Aman Deep
    Feb 22 '18 at 9:30











  • check for any missing file , or db connectivity...

    – Afreen
    Feb 22 '18 at 9:53

















Have you verified that the files have 644 and folders 755?

– Max
Feb 22 '18 at 9:29





Have you verified that the files have 644 and folders 755?

– Max
Feb 22 '18 at 9:29













Yes file permission is 755

– Aman Deep
Feb 22 '18 at 9:30





Yes file permission is 755

– Aman Deep
Feb 22 '18 at 9:30













check for any missing file , or db connectivity...

– Afreen
Feb 22 '18 at 9:53





check for any missing file , or db connectivity...

– Afreen
Feb 22 '18 at 9:53










1 Answer
1






active

oldest

votes


















0














Looking that error code I think this is just a connection error to MySQL server, or maybe a php version difference between web requests and CLI



More info http://devdocs.magento.com/guides/v2.1/install-gde/trouble/php/tshoot_phpini.html




This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might be misconfigured if this is the case.







share|improve this answer
























  • I am using Above 7 and an set up already installed

    – Aman Deep
    Feb 22 '18 at 10:43













  • Above 7, but... same version as CLI?

    – Raul Sanchez
    Feb 22 '18 at 10:45











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f214573%2fmagento-2-installation-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Looking that error code I think this is just a connection error to MySQL server, or maybe a php version difference between web requests and CLI



More info http://devdocs.magento.com/guides/v2.1/install-gde/trouble/php/tshoot_phpini.html




This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might be misconfigured if this is the case.







share|improve this answer
























  • I am using Above 7 and an set up already installed

    – Aman Deep
    Feb 22 '18 at 10:43













  • Above 7, but... same version as CLI?

    – Raul Sanchez
    Feb 22 '18 at 10:45
















0














Looking that error code I think this is just a connection error to MySQL server, or maybe a php version difference between web requests and CLI



More info http://devdocs.magento.com/guides/v2.1/install-gde/trouble/php/tshoot_phpini.html




This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might be misconfigured if this is the case.







share|improve this answer
























  • I am using Above 7 and an set up already installed

    – Aman Deep
    Feb 22 '18 at 10:43













  • Above 7, but... same version as CLI?

    – Raul Sanchez
    Feb 22 '18 at 10:45














0












0








0







Looking that error code I think this is just a connection error to MySQL server, or maybe a php version difference between web requests and CLI



More info http://devdocs.magento.com/guides/v2.1/install-gde/trouble/php/tshoot_phpini.html




This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might be misconfigured if this is the case.







share|improve this answer













Looking that error code I think this is just a connection error to MySQL server, or maybe a php version difference between web requests and CLI



More info http://devdocs.magento.com/guides/v2.1/install-gde/trouble/php/tshoot_phpini.html




This is commonly caused by a different instance of PHP being used by the PHP command line compared to the web server. In particular, mysql.sock might be misconfigured if this is the case.








share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 22 '18 at 9:51









Raul SanchezRaul Sanchez

2,01631235




2,01631235













  • I am using Above 7 and an set up already installed

    – Aman Deep
    Feb 22 '18 at 10:43













  • Above 7, but... same version as CLI?

    – Raul Sanchez
    Feb 22 '18 at 10:45



















  • I am using Above 7 and an set up already installed

    – Aman Deep
    Feb 22 '18 at 10:43













  • Above 7, but... same version as CLI?

    – Raul Sanchez
    Feb 22 '18 at 10:45

















I am using Above 7 and an set up already installed

– Aman Deep
Feb 22 '18 at 10:43







I am using Above 7 and an set up already installed

– Aman Deep
Feb 22 '18 at 10:43















Above 7, but... same version as CLI?

– Raul Sanchez
Feb 22 '18 at 10:45





Above 7, but... same version as CLI?

– Raul Sanchez
Feb 22 '18 at 10:45


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f214573%2fmagento-2-installation-issue%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Polycentropodidae

Magento 2 Error message: Invalid state change requested

Paulmy