« Previous - Version 2/6 (diff) - Next » - Current version
Rob Freeman, 01/20/2009 04:15 PM


HOWTO: Dropbox, Apache and eXtplorer (on Fedora)

NOTE: Replace [user] with the username under which the Dropbox folder is located.
NOTE: Replace [FQDN] with either your IP address or the hostname (or FQDN) which you'll be using to access the interface.

NOTE: This HOWTO assumes that you will be running apache as the user 'apache' and that you have already set up your Dropbox account syncing to your /home/[user]/Dropbox folder

To get Dropbox running with apache and extplorer you need to get the following packages:
yum install php httpd
Make the VirtualHost director and get permissions / groups correct:
mkdir /var/www/dropbox
chown apache:apache /var/www/apache
usermod -aG [user] apache
usermod -aG apache [user]
Now create and populate an apache virtualhost config file:
vim /etc/httpd/conf.d/dropbox.conf

Populate it with the following text:
NameVirtualHost *:80
<VirtualHost *:80>
        DocumentRoot "/var/www/files" 
        ServerName [FQDN]
                <Directory "/var/www/files">
                        allow from all
                        Options +Indexes
                        AuthType Basic
                        AuthName "Dropbox" 
                        AuthUserFile /var/www/passwd
                        Require valid-user
                </Directory>
</VirtualHost>

Now add a username / password to access your interface via HTTP auth:
htpasswd -cm /var/www/passwd yourusername
chown apache.apache /var/www/passwd

Make sure that apache has full group access to your Dropbox folder.
chmod g+x /home/[user]
chmod g+rw /home/[user]/Dropbox
find /home/[user]/Dropbox -type d -exec chmod g+x {} \;

Download the latest version of eXtplorer from http://extplorer.sourceforge.net/
cd /var/www/files
wget http://heanet.dl.sourceforge.net/sourceforge/extplorer/eXtplorer_2.0.1.zip
unzip eXtplorer*.zip

Check we haven't made any mistakes and set the services up:
service httpd configtest
service httpd restart
chkconfig httpd on

Also available in: HTML TXT