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

Cannot open the laravel.dev:8000 when I restart the computer

Basically, I followed the tutorial and all works fine for me. But after I restart the computer and type in larval.dev:8000, it says the connection errors. Is it because that I didn't turn on the local host, just like MAMP does? Should I turn on the vagrant every time I want to see it in my browser?

1 Answer

Maja B.
Maja B.
12,984 Points

Yes, do turn the server on every time you turn on/restart your computer in order to use Laravel. That's the usual practice also with XAMPP server and http://localhost:48080/ (two servers that I'm using).

:)

Mike Zhu
Mike Zhu
1,840 Points

Thank you so much for your help! But after I turn on the server, it still doesn't work. It says that the browser cannot connect to the server

Mike Zhu
Mike Zhu
1,840 Points

By the way, I try to type "vagrant up" in the terminal, it says "An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again.

Couldn't open file /Users/.../base"

Maja B.
Maja B.
12,984 Points

I'm afraid I wont be able to help you. You are a MAMP user on MAC (I guess), I'm an XAMPP user on Windows. You use Laravel, I use Codeigniter (as much as I do).

I've only answered in the first place because Treehouse has sent me an e-mail that you have sort of asked me to answer. People's points can sometimes be misleading :)

If nobody answers you at Treehouse, I suggest to post you queation at http://stackoverflow.com/. If you describe you problem very accurately I bet someone will help you.