Apache fails to start on Vagrant

后端 未结 3 813
走了就别回头了
走了就别回头了 2021-02-19 16:32

In my Vagrant environment I have a guest Ubuntu Virtualbox with a LAMP with default settings.

I have my source code on the host machine in the same folder as my Vagrantf

3条回答
  •  执笔经年
    2021-02-19 16:48

    If upstart is installed (as in Ubuntu), Vagrant emits "vagrant-mounted" event. See https://serverfault.com/a/568033/179583 to get the idea. In your script you can (re)start the Apache server.

    Btw, I have a feeling that newer Apache versions just warn, but still start even if the doc root doesn't exist. The same with nginx.

提交回复
热议问题