Hi,

I'm having trouble working out how to correctly set the working path. I use 
CentOS to mimic my production web server, i use cPanel which throws 
everything in /home

So in my vagrant file i've added the line:

config.vm.synced_folder ".", "/home"

Which sets the current (host) directory to the /home on guest directory. 
This sort of works, if i cd into /home and touch a file it shows up on the 
guest.

However, every time i run vagrant up i receive the following error:

Could not chdir to home directory /home/vagrant: No such file or directory

Why is it trying to go to /home/vagrant ?

Also, apache standard document root is /var/www/html/ - what is the 
quickest way to change this, am i required to edit httpd.conf every time i 
fire up a new instance?

Id love to be able to automate the process so that upon firing up the vm i 
am sat in the home directory and it's already configured to serve pages 
from there instead of /var/www/html/ is this at all possible? and now do i 
get rid of the /home/vagrant error? While it's not causing any major 
problems it's clear something is not setup correctly.

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to