I have been learning Laravel 5 (using the Laracasts, lynda.com and the book Easy Laravel 5 by Jason Gilmore) over the past few weeks, and enjoying it thoroughly.
I have always used XAMPP on Windows when developing websites and applications, so I have been skipping over the parts on Homestead. But I am starting to wonder if it would be useful for me to know Homestead too.
Is there an advantage to developing a Laravel-based application using Homestead over XAMPP? If so, it would probably be worth my while not skipping that step. (I have studied Web Hosting with Linux and Ubuntu, so I am comfortable with command line, but not an expert by any means.)
Thanks for the recommendations, guys : ) @WebMachine if you get stuck, let us know! Iām in the process of updating that quick tip btw, itāll become even quicker to set up soon.
I didnāt even see your answer, literally read right past it, till Bruno said recommendations, plural, and I checked again to see whose answer Iād probably duplicated
I am using the ebook Easy Laravel 5 by Jason Gilmore and got as far as installing Vagrant, Virtual Box and the Homestead box and stalled at the command homestead init with the error message " āhomesteadā is not recognized as an internal or external command, operable program or batch file. "
I went back to the Laracast āLaravel 5 Fundamentalsā I had worked through (having skipped the section on Homestead and used my XAMPP) and started going through the video on Homestead but ran out of time. Before I return to that, I am going to read those two articles that @jeffreylees recommended.
Okay, I got past that part using a different CLI. Now Iām stuck at a point where my paths were wrong pointing to homestead.yaml. I managed to fix those, and it messed up another path. All the articles I read claim using Homestead will make the whole process easy and fun (Yes, they said āfunā). I canāt seem to get to the point where I can actually use Homestead with my Laravel development.
Hereās the part of my homestead.rb file that is causing the error:
# Configure The Public Key For SSH Access
if settings.include? 'authorize'
config.vm.provision "shell" do |s|
s.inline = "echo $1 | grep -xq \"$1\" /home/vagrant/.ssh/authorized_keys || echo $1 | tee -a /home/vagrant/.ssh/authorized_keys"
s.args = [File.read(File.expand_path(settings["authorize"]))]
end
end
and the part of my Vagrantfile that I adjusted to fix the path to the homestead.yaml file and a few others:
Okay, so Iām not getting any help with this. Maybe I should start fresh, delete everything Iāve done so far, and try with @swader 's suggestions and Brunoās tutorial and articles, without using my other resources.
Trouble is, I hate to abandon an attempt at something without at least figuring out exactly what went wrong and how to fix it.
Sorry, I donāt know enough about Vagrant and etc to be of much more help. For me, though, Iād rather clear it, do it the other way if that works, and move on than troubleshoot it, in this case - Iām not a VM person, so as long as it works or I can figure it out, itās not worth my time to troubleshoot setup problems for my own stuff unless thereās no alternative.
I understand being curious, but your time is worth something too
Iād start afresh and use only one set of āHow toāsā. Donāt mix and match, as that usually leads to something messing up, some how in some way.
This might sound like a stupid question, but not ever having set up Vagrant and Homestead and venturing into totally uncharted territory for me, is there any harm in my just deleting all the relevant folders, or do I risk missing something?
Which folders do you mean exactly? I wouldnāt delete the Vagrant or Virtualbox files or rather the files that were installed with the software. Those installations shouldnāt really be the problem.
Did you see the screenshot I posted above of my terminal where I tried āvagrant upā in the Homestead directory? There is an issue with one of the paths.
I am sorry to say, I have no experience with Homestead. As I mentioned, I used PuPHPet. Maybe it would be better to uninstall and reinstall Vagrant, if that is where you think you are having problems.
I think this thread may end up in a different forum - it turns out that on my laptop (MSI MS 1755), virtualization is supported, but disabled. I have spent all evening hunting everywhere in my BIOS and on Google and canāt find where to enable it.
Ah⦠yes I remember that issue. F**kin windows ā nothing is easy. Though it has been about 2 years since I had to deal with it so canāt exactly recall how to fix it. Perhaps search on google āwindows enable virtualizationā and see if you canāt find something.
Apparently the problem is with my make and model of laptop - it technically is a gaming laptop (donāt know if thatās the reason MSI made it impossible to find where to enable virtualization), but when I go into the BIOS, that feature is not there. However, I used Speccy to take a look, and apparently it is supported, just not enabled.