How can I share the folder var/www on my emulated Ubuntu virtual machine with the hosting OS?

1

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

aneuryzm

Posted 2010-11-02T17:16:27.617

Reputation: 1 765

Answers

0

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.

fideli

Posted 2010-11-02T17:16:27.617

Reputation: 13 618

@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 ? – aneuryzm – 2010-11-02T18:55:51.780

I've actually rename one of them, but I cannot see the renamed one (just the old one is now red) – aneuryzm – 2010-11-02T18:56:52.763

@Patrick Hmm, I'm not sure why it wouldn't update properly. – fideli – 2010-11-02T18:58:30.173

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 – aneuryzm – 2010-11-02T19:06:42.110

I've found out why. I was linking all files inside the folder instead of the parent folder. Obviously this didn't work.. – aneuryzm – 2010-11-02T21:17:54.380

Great, good to hear! – fideli – 2010-11-02T21:30:00.310