Jump Start PHP Environment Ch4

Continuing the discussion from Jump start PHP environment Chapter 4 Defining New Sites:

I have a similar problem to this post which didn’t receive a reply. I’m hoping I’ll be more lucky :slight_smile:

I am working through @swader’s Jump Start PHP Environment. I’m at Ch 4 and have successully installed Vangrant, Virtualbox, Git bash and the Homestead app from Github, and I have got the homestead.app running. I went the next step and added a new subfolder Test within homestead_improved-master, a subfolder public within Test and an index.php within public.

When I run

cd homestead_improved-master
bin/folderfix.sh
vagrant up

and point my browser to http://mytestapp.app I get the page at http://homestead.app instead.

My hosts file contains:

192.168.10.10 homestead.app
192.168.10.10 mytestapp.app

and my Homestead.yaml contains:

sites:
    - map: homestead.app
      to: /home/vagrant/Code/Project/public
    - map: mytestapp.app
      to: /home/vagrant/Code/Test/public

Can anyone point me to where I’m going wrong?

Hi,I wrote the topic you mentioned,and let me tell you what I did about it.

Cause no one replies to my topic,I gave it up and moved on reading the book.And I kind of figured it out later on.

My suggestion is just leave it,run vagrant halt and take a break,try to solve it at the next day,and then you might find that the problem is gone,your applications strangely works without any adjustments.This happened to me for several times(three or two),I don’t know why,but…I don’t know.

You configurations and operations are just fine,with no mistakes,so it’s not your problem,might be something of your machine.But since I didn’t retry this part,I can’t tell whether my way would work or not,so good luck,if it not,wish there’s someone out there could answer you.

p.s. I’ve finished this book now,and encountered a new problem which I described in this topic:Just fnished the last Chapter of JumpStartPHPEnv and it didn’t go well.I’m working on it,though don’t know if it could be solved.If you too encounter the same problem as you finishing this book,may it could be helpful.

Also if there’re any grammar problems in these lines,ignore them(It’s fine if you point them out😀).

Hi @akido many thanks for your reply. I will try again today. I have Apache running on my machine and it may be that is causing at least part o the problem.

I’m glad to see you have a resolution to your other topic. I did look at t but couldn’t help :frowning:

Hey guys, sorry, I’ll focus on this asap - at conferences right now - but remember to run vagrant provision after every change to Homestead.yaml - that might be the issue. So just in case, try to exit the VM, run vagrant provision and go back in. Then try visiting your desired site in the browser.

3 Likes

Thanks Bruno, that’s what I was missing!

3 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.