My scenario is simple:
- small VM running Ubuntu Server with fully functioning LAMP stack
- use mysql from VM
- use Mac filesystem to host source code base of all drupal sites;
mounted on Linux VM as /mnt/hgfs/geoff/DEVELOPMENT/geoff_vm/d6/ with read/write permissions using VMWare shared folder
- apache is configured to serve /var/www as the web directory, with a symlink /var/www/drupal/d6 ->
This setup works great for html sites, and other php/mysql-based sites, but not for a drupal site where the source tree is located in the above mount point.
If I copy the full drupal directory from the mount to the local VM filesystem, it works perfectly.
The error from the apache log is:
[Mon Jul 09 08:19:03 2012] [error] [client 172.16.126.1] PHP Parse error: syntax error, unexpected $end in /mnt/hgfs/geoff/DEVELOPMENT/geoff_vm/d6/sites/default/settings.php on line 259
I assume this means the missing "?>" which is actually missing in all drupal php files.
As I mentioned, I've used this setup before for non-drupal php/mysql sites. I like this setup because I can work directly on the files on the Mac filesystem, which is backed up automatically by TimeMachine. It also keeps the VM lean and small, requiring a very small virtual disk.
Has anyone tried a similar setup, or have suggestions on how I may mount the Mac shared folder (under VMWare Fusion) to work with a drupal install?
If you have any questions or if I may have missed some useful info in my setup, please let me know.
Cheers,