Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki

Install OpenUpload

Jump to navigation Jump to search

Server Prep

  • apt-get install postgresql php5-pgsql libapache2-mod-php5

Obtain and Prepare OpenUpload

  • Find latest downloads here:
  • cd /usr/src
  • wget
  • tar zxf openupload-0.4.2.tar.gz
  • mkdir -p /Computerisms/sites/
  • mkdir -p /usr/local/openupload
  • cd openupload-0.4.2/
  • cp -r lib/ locale/ plugins/ sql/ templates/ txtdb/ /usr/local/openupload/
  • cp -r data/ templates_c/ www/ /Computerisms/sites/
  • sed -i 's/admins/Domain Admins/' /usr/src/openupload-0.4.2/sql/pgsql/2_base.sql
  • sed -i 's/unregistered/Domain Guests/' /usr/src/openupload-0.4.2/sql/pgsql/2_base.sql
  • sed -i 's/registered/Domain Users/' /usr/src/openupload-0.4.2/sql/pgsql/2_base.sql
  • sed -i 's/admins/Domain Admins/' /usr/src/openupload-0.4.2/sql/pgsql/3_mode_private.sql
  • sed -i 's/unregistered/Domain Guests/' /usr/src/openupload-0.4.2/sql/pgsql/3_mode_private.sql
  • sed -i 's/registered/Domain Users/' /usr/src/openupload-0.4.2/sql/pgsql/3_mode_private.sql

Configure Postgres

  • > /etc/postgresql/9.1/main/pg_hba.conf; vi /etc/postgresql/9.1/main/pg_hba.conf
  • chown postgres:postgres /etc/postgresql/9.1/main/pg_hba.conf
  • /etc/init.d/postgresql restart
  • su - postgres
  • createuser -P -S -D -R -l fetch
  • createdb --owner=fetch fetch "DB for"
  • psql -h -W -U fetch -f /usr/src/openupload-0.4.2/sql/pgsql/1_structure.sql
  • psql -h -W -U fetch -f /usr/src/openupload-0.4.2/sql/pgsql/2_base.sql
  • psql -h -W -U fetch -f /usr/src/openupload-0.4.2/sql/pgsql/3_mode_private.sql
  • exit

Configure OpenUpload

  • vi /Computerisms/sites/
  • chown -R fetch:fetch /usr/local/openupload/ /Computerisms/sites/
  • find /Computerisms/sites/ -type d -exec chmod 2770 {} \;
  • find /Computerisms/sites/ -type f -exec chmod 0660 {} \;
  • rm /Computerisms/sites/

Configure Apache

  • sed -i 's/\;date.timezone =/date.timezone = America\/Whitehorse/' /etc/php5/apache2/php.ini
  • vi /etc/apache2/sites-available/
  • mkdir /var/log/apache2/
  • chown root:adm /var/log/apache2/
  • a2ensite
  • /etc/init.d/apache2 restart
  • samba-tool dns add houselian fetch A

Configure OpenUpload Plugins and Rights

  • navigate to
  • log in as the network Administrator or as any member of Domain Admins, like bob.miller
  • navigate to the Administration link, then choose plugins.
    • select plugin options and configure the plugins how you want to use them==Configure Plugins==
    • navigate back to plugins=>plugins ACLs. Click the "plug"in in the top left
    • choose the plugin and the group to assign it to, as well as access permissions.
  • User and Group Administration is not handled in this interface, all users under dc=computerisms,dc=com in the AD will be able to log in.
    • restrict this wtih the basedn in the config file, or by setting all groups to full deny and creating specific groups in AD that will have Rights
  • Groups are not created in this interface, but rights are granted to the group the user belongs too

Helpful Reading