Installazione di Openupload

From RVM Wiki
Jump to navigation Jump to search

Openupload permette di creare un portale di scambio files, tipo megaupload.

  • Creare la cartella di destinazione degli script nella root del webserver
sudo mkdir /var/www/path/to/openlupload
  • Impostare le permission:
 sudo chown nobody:www-data /var/www/path/to/openlupload
  • Creare la cartella per lo storage dei files, FUORI dal path del virtualhost:
sudo mkdir /var/www/path/to/filestore/files
  • Impastarne le permission:
sudo chmod g+w /var/www/path/to/filestore/files
sudo chown nobody:www-data /var/www/path/to/filestore/files
  • Scaricarlo
cd /var/www/path/to/openlupload
sudo -u nobody wget "http://switch.dl.sourceforge.net/project/openupload/openupload/v0.4/openupload-0.4.2.tar.gz
  • Scompattarlo:

sudo -u nobody tar --strip-components=1 -xvzf openupload-0.4.2.tar.gz

  • Impostare le permission:
sudo chown -R :www-data .
sudo chmod g+w www templates_csudo 

Impostare le permission e creare i path per lo storage:

sudo mkdir ../files/tmp
sudo chown -R :www-data ../files/tmp
sudo chmod g+w ../files/tmp
  • Nel Virtuahost, abilitare la possibilità di impostare tutte le opzioni php tramite .htaccess:
   <Directory /var/www/path/to/openlupload>
       AllowOverride All
   </Directory>
  • Creare il file .htaccess nella root del virtualhost:
sudoedit .htaccess
# Set this accordingly to your installation
# N.B. For this to work, you'll need "AllowOvverride Options" in apache dir config 
php_value file_uploads "On"
php_value upload_max_filesize "1000M"
php_value post_max_size "1000M"
# To solve the download big files error:
# PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to
# allocate 945158145 bytes) in lib/modules/default/files.inc.php on line 413
# See http://www.fribi.fr/?p=1191
php_value output_buffering Off


  • Scegliere
private mode


Riferimenti