Git Product home page Git Product logo

Comments (5)

tjdraper avatar tjdraper commented on July 29, 2024 1

This is definitely still an issue, I am not sure why this issue is closed. What I can’t understand is why it’s not working. Everything seems to be in place in the box for apache to start. When I run sudo update-rc.d apache2 defaults, it says: System start/stop links for /etc/init.d/apache2 already exist. I’m completely baffled.

The way I have gotten around it is adding this to my vagrant file:

# Run a script at every boot
config.vm.provision :shell, path: "vagrant-start.sh", run: "always", privileged: true

And vagrant-start.sh has this:

#!/usr/bin/env bash

service apache2 restart

But this is definitely some issue with the box that I can’t figure out.

from scotch-box.

sboerrigter avatar sboerrigter commented on July 29, 2024

Why is this issue closed?

I am having the same problem. I alway have to SSH into to start up apache manually. How can I start up apache automatically when I use vagrant up?

from scotch-box.

joepurdy avatar joepurdy commented on July 29, 2024

I use this box on a regular basis and have never had this issue. I wonder if it's something specific to your environment or version of Vagrant?

Try running this on a terminal, vagrant -v && vagrant box list | grep scotch/box && VBoxManage -v
My output looks like this:

Vagrant 1.8.1
scotch/box                (virtualbox, 2.5)
5.0.14r105127

It's possible the version of scotch/box isn't up-to-date at version 2.5. If this is the case you can try upgrading the box by running vagrant box update from the directory that contains your Vagrantfile for scotch/box.

Alternatively you could just nuke it from orbit by running vagrant box remove scotch/box && vagrant box add scotch/box

I'm curious to see why this issue is cropping up for multiple people. Let me know what you find.

from scotch-box.

tjdraper avatar tjdraper commented on July 29, 2024
Vagrant 1.7.4
scotch/box              (virtualbox, 2.5)
5.0.14r105127

I can try updating Vagrant later today when I have some time — everything else is up to date — but it doesn’t seem like a Vagrant problem. It seems like a problem with Ubuntu not starting Apache on boot.

from scotch-box.

joepurdy avatar joepurdy commented on July 29, 2024

Yeah I doubt it's Vagrant TBH. I've used scotch/box back on Vagrant 1.7.2 without issue. I was hoping with how long ago the issue was reported it was just some oddity with an earlier version of the box.

Best of luck with using it and if you do find anything out do tell. I think your workaround script is probably the only surefire solution for the time being.

from scotch-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.