I’ve just started the adventure which I’ll call “Moving my Mac OS X (10.7.4) Sites Directory to Dropbox.” Here, is my diary.
- Move your Sites folder in OS X with a SymLink NOT an Alias
- Moving ‘Sites’ folder to Dropbox
- ln – make links between files
Originally, my plan was to move the
Sites folder from my user directory to my user
Dropbox directory. And, reconfigure
httpd.conf to point to the new location. There are several problems with this:
- Mac requires that a directory named
Sitesremain in the user’s directory.
(No problem. Just keep an empty directory with that name in that location.)
- I would have to make my
Dropboxdirectory globally readable.
- I’m expecting to find my web files in ~/Sites
Still, I want to move my
Sites directory to my
Dropbox directory — Because, I believe that’s the only way to have Dropbox sync the content of
I’ll use a SymLink — as suggested in the above mentioned sources found on the Internet.
But, (before I start mucking with everything) first I’ll move the files in
~/Sites to a temporary folder on my desktop called
tmp_Sites. Note: I already have another copy in my
harrybailey.com the next thing I should do is:
ln -s ~/Dropbox/Sites ~/Sites
This created a SymLink under
Sites. So, now I have the directory:
I tried to put the symlink in ~/ itself but the command would not take because this directory already contains Sites (which can’t be removed.)
I made changes to
# # This should be changed to whatever you set DocumentRoot to. # <Directory "/Users/samehlabib/Sites/Sites"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
I restarted my web server.
I had to give read permission to everyone on
~/Dropbox so that apache could load files from the