在宅基流浪者箱下,SULU CMS安装失败

时间:2017-03-12 09:56:10

标签: symfony vagrant homestead sulu

我尝试按照本手册安装 SULU CMS http://docs.sulu.io/en/latest/book/getting-started.html但是当转到http://sulu.app/website.php(我的本地开发网址)时,我收到了以下错误:

  

致命错误:未捕获PDOException:SQLSTATE [42S02]:未找到基表或视图:1146表' homestead.ro_routes'在第18行的/home/vagrant/Code/sulu/app/Resources/views/master.html.twig中不存在    Twig_Error_Runtime:在呈现模板期间抛出了异常("您需要登录此操作")。在/home/vagrant/Code/sulu/app/Resources/views/master.html.twig第18行

在此之前,所有安装步骤都进展顺利,我没有看到任何错误。

此命令后,我在mysql数据库中也有空表:

  

bin / adminconsole sulu:build prod

这是我的 parameters.yml 文件:

# This file is auto-generated during the composer install

parameters:
    database_driver: pdo_mysql
    database_host: 127.0.0.1
    database_port: 33060 
    database_name: homestead
    database_user: homestead
    database_password: secret
    database_version: 5.5
    mailer_transport: smtp
    mailer_host: 127.0.0.1
    mailer_user: null
    mailer_password: null
    secret: ThisTokenIsNotSoSecretChangeIt
    sulu_admin.name: Sulu
    sulu_admin.email: null
    websocket_port: 9876
    websocket_url: sulu.lo
    phpcr_backend:
    type: doctrinedbal
    phpcr_workspace: default
    phpcr_user: admin
    phpcr_pass: admin
    phpcr_cache: file_system

我使用hometead vagrant box v.5。, 主机Ubuntu 16.04, Virtualbox v.5

这是我的Homestead.yaml内容(所有标准选项):

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/Code

sites:

    - map: sulu.app
      to: /home/vagrant/Code/sulu/web


 databases:
    - homestead

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

任何想法为什么以及如何解决? 提前谢谢!

1 个答案:

答案 0 :(得分:0)

您在parameters.yml中使用了错误的数据库端口。它应该是3306而不是33060