Sunday, 22 January 2012

Using Dropbox to do server-side coding (PHP)

A friend and I are working on a collaborative project to do some server-side coding. We've decided to use Dropbox for this purpose. Apache picks up pages from /var/www/. Just make a symbolic link to your Dropbox folder in order to get this working:
$ cd /var/
$ mv www wwwOLD
$ sudo ln -s /home/yourusername/Dropbox/foldername www
You will get a "forbidden" error if you do just this. In order to get it all working, you need to change the permissions on your Dropbox folder:
$ cd /home/username
$ chmod 755 Dropbox
This way any changes made in foldername on Dropbox can instantly be viewed in your browser.

1 comment:

  1. Thanks for the tutorial! :D
    It should be "sudo mv www wwwOLD" btw.

    ReplyDelete