gouryella
11-09-2007, 10:54
UPDATED 19.9.2007
Try this good cgi script http://irodov.nm.ru/wget4web/
Follow the instalation instructions on the page.
1) I get 500 Internal Server Error
reason: maybe don't work with microperl.
Remove microperl:
ipkg remove microperl
edit:
get the better ipkg
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
Install it
ipkg.sh install ipkg-opt_0.99.163-9_mipsel.ipk
ipkg.sh install uclibc-opt_0.9.28-12_mipsel.ipk
Now
ipkg update
Install perl:
ipkg install perl
Don't forgot to change your cgi setting (im using lighttpd, not tested with busybox cgi or thttpd Web Server)
nano /opt/etc/lighttpd/lighttpd.conf
change /opt/bin/microperlperl to /opt/bin/perl
check... unsharp # "mod_cgi", on the top of lighttpd.conf
cgi.assign = ( ".pl" => "/opt/bin/perl",
".cgi" => "/opt/bin/perl")
2) Working but Error of Wget starting after downloading
Reason: Relative adress to wget in add.cgi
Finf out the wget place in your WL 500, for me /opt/bin/wget
Open it(add.cgi) go to line 75
my $output = `wget -b -c -i $taskname -a $logname`;
Replece it:
my $output = `/opt/bin/wget -b -c -i $taskname -a $logname`;
edit: for me not work with /usr/bin/wget (reason rights?)
ipkg install wget
that will install wget to /opt/bin/wget
4) Some problem with log files and administrations scripts i look on it in future
4) That's all, happy downloading
If you know sometging about cgi/http may edit this script i add speed limit and at queing (ipkg install at) and remake to xhtml page with php menu.
Sorry for my English im from Czech Republic http://www.czech.cz/
Official pictures:
http://irodov.nm.ru/wget4web/pic/add.gif
http://irodov.nm.ru/wget4web/pic/admincenter.gif
http://irodov.nm.ru/wget4web/pic/delete.gif
http://irodov.nm.ru/wget4web/pic/files.gif
http://irodov.nm.ru/wget4web/pic/progress.gif
Try this good cgi script http://irodov.nm.ru/wget4web/
Follow the instalation instructions on the page.
1) I get 500 Internal Server Error
reason: maybe don't work with microperl.
Remove microperl:
ipkg remove microperl
edit:
get the better ipkg
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
Install it
ipkg.sh install ipkg-opt_0.99.163-9_mipsel.ipk
ipkg.sh install uclibc-opt_0.9.28-12_mipsel.ipk
Now
ipkg update
Install perl:
ipkg install perl
Don't forgot to change your cgi setting (im using lighttpd, not tested with busybox cgi or thttpd Web Server)
nano /opt/etc/lighttpd/lighttpd.conf
change /opt/bin/microperlperl to /opt/bin/perl
check... unsharp # "mod_cgi", on the top of lighttpd.conf
cgi.assign = ( ".pl" => "/opt/bin/perl",
".cgi" => "/opt/bin/perl")
2) Working but Error of Wget starting after downloading
Reason: Relative adress to wget in add.cgi
Finf out the wget place in your WL 500, for me /opt/bin/wget
Open it(add.cgi) go to line 75
my $output = `wget -b -c -i $taskname -a $logname`;
Replece it:
my $output = `/opt/bin/wget -b -c -i $taskname -a $logname`;
edit: for me not work with /usr/bin/wget (reason rights?)
ipkg install wget
that will install wget to /opt/bin/wget
4) Some problem with log files and administrations scripts i look on it in future
4) That's all, happy downloading
If you know sometging about cgi/http may edit this script i add speed limit and at queing (ipkg install at) and remake to xhtml page with php menu.
Sorry for my English im from Czech Republic http://www.czech.cz/
Official pictures:
http://irodov.nm.ru/wget4web/pic/add.gif
http://irodov.nm.ru/wget4web/pic/admincenter.gif
http://irodov.nm.ru/wget4web/pic/delete.gif
http://irodov.nm.ru/wget4web/pic/files.gif
http://irodov.nm.ru/wget4web/pic/progress.gif