I am trying to install Magento 2 fresh copy on Live Server but it is throwing the below error

What i did:

  • Downloaded Magento 2 latest CE version
  • Uploaded to server root directory
  • Unzip then
  • Visit my website shop.site.com/setup
  • And it throws the below error

Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'databasemy.store_website' doesn't exist in /var/www/vhosts/shop.site.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228 Stack trace: #0 /var/www/vhosts/shop.site.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array) #1 /var/www/vhosts/shop.site.com/httpdocs/vendor/magento/framework/DB/Statement/Pdo/Mysql.php(93): Zend_Db_Statement_Pdo->_execute(Array) #2 /var/www/vhosts/shop.site.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Statement.php(303): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array) #3 /var/www/vhosts/shop.site.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #4 /var/www/vhosts/shop.site.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SE in /var/www/vhosts/shop.site.com/httpdocs/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 235

  • the code which is you used for installation is not proper, Or your server does not configure properly for Magento2
    – Amit Bera
    Commented Oct 14, 2017 at 5:13
  • Server is configured as per the requriements @AmitBera Commented Oct 14, 2017 at 5:14

2 Answers 2


Set write permissions for web server's user for file app/etc/env.php.

It's must help.

  • This file doesn't exist in app/etc/ directory. I am installing a fresh copy. Commented Oct 14, 2017 at 4:52
  • please check the edit i posted wrong error. Thanks Commented Oct 14, 2017 at 4:56
  • Your database databasemy is empty? Can you check it? Commented Oct 14, 2017 at 5:10
  • yes it is empty i am installing magento via installer like site.com/setup Commented Oct 14, 2017 at 5:12
  • 1
    At what stage of wizard setup error is occur? Do you said proper database username in wizard setup with permissions for creating tables in database? Commented Oct 14, 2017 at 5:28

please Try after change permission of your magento application.

find ./var -type d -exec chmod 777 {} ;
find ./pub/media -type d -exec chmod 777 {} ;
find ./pub/static -type d -exec chmod 777 {} ;
chmod 777 ./app/etc;
chmod u+x bin/magento


You can use following

sudo find . -type d -exec chmod 770 {} \; && sudo find . -type f -exec chmod 660 {} \; && sudo chmod u+x bin/magento; && && sudo chmod 755 app/etc;

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.