Forums › Forums › OroCommerce › can not use web install
This topic contains 6 replies, has 4 voices, and was last updated by langziyang1982 6 years, 4 months ago.
Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
- CreatorTopic
- November 13, 2017 at 1:17 am #32277
i download zip file,unzip on my web server,use http://mydomain.com/oro_path/web/install.php,it is work,but when i click install botton.i get 500 error
- CreatorTopic
- AuthorReplies
- November 13, 2017 at 3:23 am #32278
Hello,
To find out what is wrong with installation please provide next information:
- Web-server log
- Information about server configuration
- Install log ( You can find it by next path: app_directory/app/logs/oro_install.log )
- Information about OroCommerce version that you tried to install
Best Regards,
Alexandr ParkhomenkoNovember 13, 2017 at 4:43 pm #32279Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO) in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 Stack trace: #0 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #1 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(44): Doctrine\DBAL\Driver\PDOConnection->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #2 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, ‘root’, NULL, Array) #3 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection->connect() #4 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\ in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 103
November 14, 2017 at 2:29 am #32280Hi,
From that log entry, it seems that the application does not have rights to use that database.
Make sure to set in app/config/parameters.yml the database_user and database_password parameters to a user which has privileges for the DB. Now it seems you use root, without specifying a password.
Adrian
November 16, 2017 at 5:46 pm #32281i already edit the file,and the error is not changed:
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user ‘root’@’localhost’ (using password: NO) in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 Stack trace: #0 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #1 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(44): Doctrine\DBAL\Driver\PDOConnection->__construct(‘mysql:host=127….’, ‘root’, NULL, Array) #2 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, ‘root’, NULL, Array) #3 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection->connect() #4 /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\ in /var/www/banshanhome/public_html/oro/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 103
November 17, 2017 at 8:38 am #32282Hello, langziyang1982!
Do you use root user without a password, it’s correct information? If yes and you’re using MySQL on Linux OS as the environment, please, read and follow recommendations from the article Cant login as MySQL user root from normal user account to fix this issue.
If these recommendations won’t help you, please, provide additional information about your environment (for example, as described in topic Please read this before starting a topic with technical question.
Thank you.
November 17, 2017 at 8:35 pm #32283no,this is my parameters.yml file content:
database_driver: pdo_mysql
database_host: localhost
database_port: 3306
database_name: oro
database_user: root
database_password: thisismysqlpassword - AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.