0
votes

I'm trying to get Vagrant set up for Laravel development and am trying to use Jeffrey Way's bootstrap.sh (https://raw.githubusercontent.com/JeffreyWay/Vagrant-Setup/master/install.sh) to get my environment set up.

The problem is that after running vagrant up, I go to localhost:8080/ and it tries to redirect to localhost:8080/html and throws an error 500 Internal Server error. Any idea why that would be?

Here is my VagrantFile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

   config.vm.box = "precise32"
   config.vm.box_url = "http://files.vagrantup.com/precise32.box"
   config.vm.network :forwarded_port, guest: 80, host:8080
   config.vm.provision :shell, :path => "bootstrap.sh"

end
1
Is there anything in your laravel.log? Are you able to access static assets?ornous
No, there isn't even a laravel log generated. In my apache error.log, I do have [core:error] [pid 11004] [client 10.0.2.2:55858] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.Chris Farrugia

1 Answers

3
votes

Recenlty I had the same issue and the problem was, in my case, that Virtual Host was pointing to /vagrant folder and this folder is owned by vagrant.vagrant. I changed Document Root to /var/www/ (default) and this change fix the issue. Review the rights of the folder of the Document Root of your apache. Hope this helps.