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

installing Laravel

I'm sorry guys, I'm still stuck in this part of the course, I already have downloaded Vagrant, virtualbox, xampp, homestead, github, composer; but my system doesn't allow me to continue with laravel homestead

**git clone https://github.com/laravel/homestead.git ~/Homestead git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

this is the part i'm stuck in, could anyone help me please.

6 Answers

Pascal Breitrück
PLUS
Pascal Breitrück
Courses Plus Student 3,206 Points

Hey man , it look’s like that git is not installed . Try to install it on your system if its not . https://git-scm.com/

Run it not into the powershell use the gitbash /cmd that’s better

Please check the Path Variables in Windows . Maybe it’s not set it for Git

To add into PATH:

1.Right-Click on My Computer.

2.Click on Advanced System Settings

3.Click on Environment Variables.

  1. Then, under System Variables, look for the path variable and click edit.

  2. Add the path to git's bin and cmd at the end of the string like this: ;C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd.

Hi Pascal, thanks for your attention, I'm in........

Thanks again!!!!!!

Pascal Breitrück
Pascal Breitrück
Courses Plus Student 3,206 Points

Hey Omar, i never used laravel .... because i love ❤️ SYMFONY ❤️, but i think 🤔 for development a cooler way is the php built-in server . I found under the documentation from laravel the command: php artisan serve under symfony it is : php server:run if it is installed. This Development Servers are perfect to dive into the framework . To learn the Framework use the docs and the casts.

https://laracasts.com/

https://laravel.com/docs/5.8

Happy Coding

Well, It's been a hard time for me to get the results as expected, when I open the git bash app; the screen shows me this, "Omaro@Omaroca2000 MINGW64 ~ $"

What I did wrong? how can I fix it? should I delete all the programs installed and start over?

Pascal Breitrück
Pascal Breitrück
Courses Plus Student 3,206 Points

Hey Omar ,

look's ok in git bash . What do you want to do ?

I uploaded a video how i installed laravel for development local, only with bash/composer ;D.

https://workupload.com/file/JREfUred

Greets Pascal

OK, I give up with this part of the program, can I continue with the course? It is very confusing and fast the video, I really do not get it.

Pascal Breitrück
Pascal Breitrück
Courses Plus Student 3,206 Points

It will be better if you go some steps back learn what composer is and how do you use the console. How Familiar you are with PHP ? I think the Treehouse course is not the best resource to learn the Framework. But i think if you understand the package management and some other skills you will rock laravel .

Greets Pascal

Tons of thanks for your patience Pascal, I think I will retake the starting of frameworks and understand better everything, have a pleasant time.

I really do not want to stop, but this is the last message I got

**~/homestead (release) $ vagrant up Bringing machine 'homestead' up with 'virtualbox' provider... ==> homestead: Checking if box 'laravel/homestead' version '8.0.1' is up to date... ==> homestead: Clearing any previously set forwarded ports... ==> homestead: Clearing any previously set network interfaces... ==> homestead: Preparing network interfaces based on configuration... homestead: Adapter 1: nat homestead: Adapter 2: hostonly ==> homestead: Forwarding ports... homestead: 80 (guest) => 8000 (host) (adapter 1) homestead: 443 (guest) => 44300 (host) (adapter 1) homestead: 3306 (guest) => 33060 (host) (adapter 1) homestead: 4040 (guest) => 4040 (host) (adapter 1) homestead: 5432 (guest) => 54320 (host) (adapter 1) homestead: 8025 (guest) => 8025 (host) (adapter 1) homestead: 9600 (guest) => 9600 (host) (adapter 1) homestead: 27017 (guest) => 27017 (host) (adapter 1) homestead: 22 (guest) => 2222 (host) (adapter 1) ==> homestead: Running 'pre-boot' VM customizations... ==> homestead: Booting VM... There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "5d6b5a80-b7f2-40b0-8db8-5d09c40d2ff1", "--type", "headless"]

Stderr: VBoxManage.exe: error: Not in a hypervisor partition (HVP=0) (VERR_NEM_NOT_AVAILABLE). VBoxManage.exe: error: VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED) VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole**

Could you please check out and advice me about that, I'm just following the videos. Tons of thanks.