Contao安装问题

时间:2018-06-10 15:55:06

标签: php symfony content-management-system contao

我正在尝试在我的托管帐户上安装Contao,但我收到错误消息但无法解决问题。

实时网址:https://contao.loudeffect.ml/

我读了日志文件,但无法弄清楚实际问题是什么。我尝试安装的版本是: Contao 4.4 LTS(长期支持)

这是我在浏览器中看到的错误:Host Error

这些是我的日志文件中的错误:

  

[2018-06-10 15:40:45] request.INFO:匹配路线" contao_catch_all"。 {"路线":" contao_catch_all"" route_parameters" {" _scope":"前端"&#34 ; _token_check":真," _controller":" Contao \ CoreBundle \控制器\ FrontendController ::的indexAction"" _url_fragment":"安装&# 34;," _route":" contao_catch_all"}" REQUEST_URI":" https://contao.loudeffect.ml/install""方法& #34;:" HEAD"} []   [2018-06-10 15:40:45] security.INFO:尝试SimplePreAuthentication。 {" key":" frontend"," authenticator":" Contao \ CoreBundle \ Security \ ContaoAuthenticator"} []   [2018-06-10 15:40:45] request.INFO:匹配路线" contao_catch_all"。 {"路线":" contao_catch_all"" route_parameters" {" _scope":"前端"&#34 ; _token_check":真," _controller":" Contao \ CoreBundle \控制器\ FrontendController ::的indexAction"" _url_fragment":"安装&# 34;," _route":" contao_catch_all"}" REQUEST_URI":" https://contao.loudeffect.ml/install""方法& #34;:" GET"} []   [2018-06-10 15:40:45] security.INFO:尝试SimplePreAuthentication。 {" key":" frontend"," authenticator":" Contao \ CoreBundle \ Security \ ContaoAuthenticator"} []   [2018-06-10 15:40:45] app.CRITICAL:发生异常。 {" exception":" [object](Doctrine \ DBAL \ Exception \ ConnectionException(code:0):驱动程序中发生异常:SQLSTATE [28000] [1045]拒绝用户访问&# 39; mlloudeffect' @' localhost'(使用密码:否)/home1/mlloudeffect/contao.loudeffect.ml/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php :103,Doctrine \ DBAL \ Driver \ PDOException(代码:1045):SQLSTATE [28000] [1045]访问被拒绝用户&m'oudedeffect' @' localhost'(使用密码:否) at /home1/mlloudeffect/contao.loudeffect.ml/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:47,PDOException(代码:1045):SQLSTATE [28000] [1045]用户拒绝访问在/home1/mlloudeffect/contao.loudeffect.ml/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection' mlloudeffect' @' localhost'(使用密码:否) .php:43)"} []

我是这个CMS的新手请指导我,以便我可以安装Contao。

2 个答案:

答案 0 :(得分:0)

通过ZIP存档,Contao Manager或composer create-project成功安装后,您需要通过/contao/install路径打开Contao Install Tool。

所以在你的情况下https://contao.loudeffect.ml/contao/install

但是,在您的情况下,符号链接似乎有些问题。使用Contao Check的最新主版本确保您的托管环境支持Contao 4:https://github.com/contao/check/zipball/master

答案 1 :(得分:0)

Contao无法连接到您的数据库,请参阅错误消息的最后一行:

[1045]在/home1/mlloudeffect/contao.loudeffect.ml/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection中拒绝用户'mlloudeffect'@'localhost'(使用密码:NO)的访问权限.php:47,PDOException(代码:1045):SQLSTATE [28000] [1045] /home1/mlloudeffect/contao.loudeffect.ml/vendor/拒绝用户'mlloudeffect'@'localhost'(使用密码:NO)的访问权限doctrine / dbal / lib / Doctrine / DBAL / Driver / PDOConnection.php:43)“} []