Comments (5)
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.
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.
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.
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.
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)
- PHP Version with Pro
- Guest additions version outdated/incompatible HOT 3
- Can we get scotch.io to a LTS dist?
- SB 3.5 shows default home page for every project HOT 2
- Vagrant Up - Unable To Fetch HOT 2
- There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. HOT 1
- Laravel mix not working by default HOT 1
- Ubuntu 17.10 is EOL, and provisioning new box now fails as a result HOT 7
- Error with Craft CMS on Installation
- 38456 HOT 1
- Vagrant up not working HOT 1
- Vagrant up not working (MacOS) HOT 1
- Scotch Box 3.5 not running on macOS Catalina HOT 2
- Uncaught Error: Class 'PDO' not found HOT 1
- 403 Forbidden error when using NFS on MacOS Catalina HOT 1
- Invalid link HOT 1
- For NodeJS apps: nodemon doesn't work HOT 1
- PHP 5.6 is installed by default on the free version HOT 2
- the php version need be update to 7.4 HOT 1
- vagrant up error: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scotch-box.