Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I share the folder var/www on my emulated Ubuntu virtual machine with the hosting operating system ? (In this case OSX Leopard)

I'm using vmware, I've installed VMware Tools. I can drag and drop files in between the 2 os.

I just need this last step.

thanks

share|improve this question
up vote 0 down vote accepted

In VMware (I'm assuming Fusion), go to your Ubuntu virtual machine Settings -> Sharing. Share the /var/www folder as read-write. You likely won't be able to select it from the dialog box so just type it with ⇧⌘G. That folder gets mounted under Ubuntu at /mnt/hgfs/www. In Ubuntu, make a symlink /var/www to /mnt/hgfs/www.

share|improve this answer
    
@fideli the link worked thanks. I still have one question, I've deleted a folder with the hosting OS and they changed color in the Ubuntu terminal but they are still there. What does that mean ? – Patrick Nov 2 '10 at 18:55
    
I've actually rename one of them, but I cannot see the renamed one (just the old one is now red) – Patrick Nov 2 '10 at 18:56
    
@Patrick Hmm, I'm not sure why it wouldn't update properly. – fideli Nov 2 '10 at 18:58
1  
@fideli mhm ok, they modified files and folders just disappear from apache if I access the directory with my browser. I need to fix this, since I want to edit these files with an external editor from the hosting os – Patrick Nov 2 '10 at 19:06
    
I've found out why. I was linking all files inside the folder instead of the parent folder. Obviously this didn't work.. – Patrick Nov 2 '10 at 21:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .