Installazione di Openupload: Difference between revisions
Jump to navigation
Jump to search
m Created page with "sudo -u nobody wget "http://switch.dl.sourceforge.net/project/openupload/openupload/v0.4/openupload-0.4.2.tar.gz sudo -u nobody tar --strip-components=1 -xvzf openupload-0.4.2.t…" |
mNo edit summary |
||
| Line 1: | Line 1: | ||
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 | 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> | <Directory /var/www/path/to/openlupload> | ||
| Line 7: | Line 37: | ||
</Directory> | </Directory> | ||
* Creare il file .htaccess nella root del virtualhost: | |||
sudoedit .htaccess | |||
<pre> | |||
# 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 | |||
</pre> | |||
http://.. | * Loggarsi in openupload http://my.server.com/path/to/openupload | ||
private mode | * Scegliere | ||
private mode | |||
==Riferimenti== | |||
*[http://openupload.sourceforge.net/ Welcome to Open Upload Project web site] | |||
*[http://www.fribi.fr/?p=1191 Openupload / PHP Fatal error: Allowed memory size of xxx bytes exhausted] | |||
Revision as of 11:30, 24 January 2012
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
- Loggarsi in openupload http://my.server.com/path/to/openupload
- Scegliere
private mode