W2box

w2box
w2box file repository for PHP - clement.beffa.org/labs/projects/w2box/

"A simple php script to upload and download files. There is no complex user management as it aims for private file repository use. Supporting direct file deletion using AJAX, instant table sort using a self modified version of sorttable.js and finally upload file progressbar using a cgi(perl) script."

Download - http://clement.beffa.org/labs/downloads/w2box.4.1.zip

Last Update: 4.1 posted Sunday 11 November, 2007

installation
Download: mkdir -p /www/upload cd /www/upload wget http://clement.beffa.org/labs/downloads/w2box.4.1.zip unzip w2box.4.1.zip chown apache data tmp upload.cgi chmod u+x upload.cgi

Install Perl CGI yum install perl-CGI
 * 1) cpan CGI.pm ?

Test upload script by calling it. Should get a "CGI Working" message, not not get a "Server Error". http://upload.example.oeey.com/upload.cgi

If you have SELinux enabled, good luck (it violates on a number of levels)!

config
config.php: 13c13 < $config['w2box_title'] = "my files"; --- > $config['w2box_title'] = "example.oeey.com file manager"; 17c17 < $config['max_filesize'] = 50; // MBytes --- > $config['max_filesize'] = 500; // MBytes 40c40 < $config['upload_progressbar']=false; --- > $config['upload_progressbar']=true;

.htaccess: 0a1,11 > AuthUserFile /www/upload/htpasswd > AuthGroupFile /dev/null > AuthName "Password Protected Area" > AuthType Basic >  >      require valid-user > > > php_value post_max_size "500M" > php_value upload_max_filesize "500M"

apache/virtual.conf:  ServerName upload.example.oeey.com

DocumentRoot /www/upload

ServerAdmin admin@example.oeey.com ErrorLog logs/example.oeey.com-error_log CustomLog logs/example.oeey.com-access_log common

# upload manager options AddHandler cgi-script .cgi  Options +ExecCGI AllowOverride All  

php.ini: memory_limit = 128M post_max_size = 500M upload_max_filesize = 500M