vagrant - PuPHPet - Vagrant 错误 : Evaluation Error and non-zero exit

标签 vagrant puphpet

我尝试在 Ubuntu 计算机中设置 VM 服务器。我在 PuPHPet 包的帮助下配置应用程序。当我运行“vagrant up”时,出现以下错误:

1) dpkg-preconfigure: unable to re-open stdin: No such file or directory

2) Error: Evaluation Error: Error while evaluating a Function Call, Could not find any files from Alias /css "/var/www/css" Alias /images "/var/www/images" at /tmp/vagrant-puppet/manifests-75f35e3bc7e32744860c4bb229c88812/Apache.pp:214:18 on node domainname.com

3) The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.

以下是 Alias 问题的 config.yaml 文件:

av_3mpni9stprhb:
        servername: domainname.com
        serveraliases:
            - '*.domainname.com'
        docroot: /var/www
        port: '80'
        setenv:
            - 'APP_ENV development'
        custom_fragment: "Alias /css \"/var/www/css\"\nAlias /images \"/var/www/images\""
        ssl: '0'
        ssl_cert: ''
        ssl_key: ''
        ssl_chain: ''
        ssl_certs_dir: ''
        ssl_protocol: ''
        ssl_cipher: ''

请帮助我,我在这里提出的问题是什么。

谢谢!

最佳答案

您错过了 custom_fragment 必须是包含代码的文件路径,而不是代码本身的部分:

Read this

关于vagrant - PuPHPet - Vagrant 错误 : Evaluation Error and non-zero exit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36761584/

相关文章:

mysql - 我如何使用 PuPHPet 制作 Sequel Pro?

vagrant - 如何使用 Vagrant、Puppet 和 Hiera 配置时区?

localhost - Vagrant 上的 reCaptcha(不是本地主机)

vagrant - 如何应用对 Puphpet 配置的更改(通过 Vagrant)

vagrant - 在 PUPHPET 生成的 Wheezy VM 上向 Apache 添加新的虚拟主机

mysql - vagrant sequel pro SSH 隧道远程主机无法连接,密码错误

mysql - Vagrant mysql 与 MySQLWB

ssh - 无法使用 Ansible Playbook 在 Vagrant 上通过 SSH 连接到主机

vagrant - 在 Vagrant 文件中添加故障安全箱 URL

linux - Linux 上的 Vagrant Up 错误