1

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

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

2 Answers 2

1

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

It's must help.

10
  • This file doesn't exist in app/etc/ directory. I am installing a fresh copy. Oct 14, 2017 at 4:52
  • please check the edit i posted wrong error. Thanks Oct 14, 2017 at 4:56
  • Your database databasemy is empty? Can you check it? Oct 14, 2017 at 5:10
  • yes it is empty i am installing magento via installer like site.com/setup 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? Oct 14, 2017 at 5:28
1

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


OR

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, privacy policy and cookie policy

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