Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Getting Started with Laravel Installing Laravel

Mike Zhu
Mike Zhu
1,840 Points

Error when vagrant up

I just installed Laravel and everything works fine for me. But the next day, after I restart my computer, I cannot get access to the laravel.dev:8000. It is said that I have to turn on my server again, and after I typed "vagrant up", it reveals the error like this: "Couldn't open file /Users/.../base". After checking online, they said that I should use "vagrant init laravel/homestead" before "vagrant up", but the error says "Vagrantfile already exists in this directory. Remove it before running vagrant init." I am not sure how to turn on my homestead server. I am new to this field and hope someone can help! Thanks!

I still had a fair amount of questions to this installation process, but the command "vagrant init" is probably to create a vagrant configuration file or Vagrantfile. However, if there is an existing Vagrantfile it doesn't get overwritten. Make a copy of the Vagrantfile in your directory and move it somewhere else. Then try vagrant init again. Hope that helps.