MEWBIES@: Facebook Twitter G+ YouTube DeviantArt Forum Wall
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██ ██
█▌ - NET2FTP - WEB BASED FTP CLIENT - █▌
█▌ █▌
█ ▐▌
█ This ended up being the holy grail for my friend who couldn't get on any ▐▌
█ SSL FTP server. As long as it is installed on a domain that isn't in the ▐▌
█ the firewall's ban list, it will work. This is thee best one I have found ▐▌
█ so far, I adore it! Their site is HERE with a working demo. *For instance ▐▌
█ type in ftp.microsoft.com or ftp.adobe.com, Username and Password: ▐▌
█ Anonymous, press Login. *Remember this is a public site; only test public ▐▌
█ FTPs on them. ▐▌
█ ▐▌
█ This tutorial was done using v0.98 (released June 1st, 2009) and still ▐▌
█ works great in 2014. Do check HERE though for the latest version. ▐▌
█ ▐▌
█ Pros: Can upload, download directories and multiple files of your choice, ▐▌
█ send raw server cmds, decompress files. ▐▌
█ ▐▌
█ Cons: It's easy to install but you might need to do a bit of tweaking, ▐▌
█ can't decompress rar files, some users have problems with the Java and ▐▌
█ Flash Upload. Would be great to have an option to enter an ident and a ▐▌
█ SOCKS 5 proxy. ▐▌
█ ▐▌
█ PREREQUISITES: ▐▌
█ `````````````` ▐▌
█ Web server ▐▌
█ PHP 4.2.3 + (net2ftp works under Safe Mode) ▐▌
█ PHP 5 + is required to use the send raw FTP command ▐▌
█ *If you aren't sure what version your PHP is see HERE. ▐▌
█ ▐▌
█ INSTALLATION: ▐▌
█ ````````````` ▐▌
█ WINDOWS AND OR WITHOUT SHELL OR ROOT ACCESS: ▐▌
█ For these examples I installed it on my Windows XAMPP server and on a ▐▌
█ regular paid hosting site. ▐▌
█ 1. Download the latest stable version (net2ftp_v0.98.zip), unzip it to ▐▌
█ anywhere. ▐▌
█ ▐▌
█ 2. All the files that you need are in the directory 'files_to_upload' - ▐▌
█ move this directory to your web server location, for example mine is here ▐▌
█ D:\xampp\htdocs\files_to_upload\ ▐▌
█ Or if you are using a web host, upload the directory 'files_to_upload'. ▐▌
█ ▐▌
█ 3. Rename that directory to anything you like; if you are dealing with ▐▌
█ firewalls that have a banned list of words, don't name it net2ftp, ftp ▐▌
█ etc. For example I have renamed 'files_to_upload' to 'ABC' ▐▌
█ D:\xampp\htdocs\ABC\ ▐▌
█ ▐▌
█ 4. Now continue to the Linux section below starting at ▐▌
█ SETTINGS- PASSWORD, MYSQL, FILE SIZE UPLOAD, HERE ▐▌
█ for the files to edit and their settings. When the instructions state, for ▐▌
█ example 'pico settings.inc.php', for Windows it just means 'edit the file ▐▌
█ settings.inc.php' and 'man create_tables.sql' means to view/read the file ▐▌
█ create_tables.sql - use WordPad or any text editor to do this. Note XP SP3 ▐▌
█ users be aware that Notepad might put breaks into long lines corrupting ▐▌
█ the code. ▐▌
█ ▐▌
█ LINUX: ▐▌
█ For the example below you'll need root access or at the least access to ▐▌
█ /var/www/ via shell. If you don't have it then just edit the files in your ▐▌
█ own local box, then upload them to your path. Change the paths to your ▐▌
█ correct paths in the examples below. ▐▌
█ ▐▌
█ 1. All the files we need in the zip are contained in a directory, and the ▐▌
█ ones we need are in a sub directory; so no need to make a new dir for it, ▐▌
█ we'll move what we need out. Issue the cmds in bold: ▐▌
█ su ▐▌
█ cd /var/www/ ▐▌
█ wget http://www.net2ftp.com/download/net2ftp_v0.98.zip ▐▌
█ unzip net2ftp_v0.98.zip ▐▌
█ cd net2ftp_v0.98 ▐▌
█ If you want to read the install.txt: ▐▌
█ man INSTALL.txt ▐▌
█ Press your q key to exit the man window. ▐▌
█ ▐▌
█ 2. All the files we need are in the directory 'files_to_upload'. Move it ▐▌
█ up 1 level and rename it to something a firewall wouldn't have in its ▐▌
█ banned word list, for example ABC: ▐▌
█ mv -i files_to_upload ../ABC ▐▌
█ (the -i in the cmd above is to protect you from overwriting existing files ▐▌
█ in case you have an existing dir with the same name; you'll be prompted) ▐▌
█ cd .. ▐▌
█ cd ABC ▐▌
█ chmod 777 temp ▐▌
█ ▐▌
█ Those without Shell access to chmod a file (change permissions) will ▐▌
█ depend on the type of FTP client you are using. Some examples, just read ▐▌
█ your program's Help how to, also many web hosting panels give this option: ▐▌
█ FTPRush - right click on the file, select Attributes ▐▌
█ SecureFX FTP - right click on the file, select Properties ▐▌
█ FlashFXP - right click on the file, select Chmod ▐▌
█ ▐▌
█ SETTINGS- PASSWORD, MYSQL, FILE SIZE UPLOAD: ▐▌
█ ```````````````````````````````````````````` ▐▌
█ 1. Now to change the needed settings and your preferences, edit ▐▌
█ 'settings.inc.php'. There are descriptions for each setting in the file. ▐▌
█ For example this is what I changed: ▐▌
█ pico settings.inc.php ▐▌
█ ▐▌
█ This line set your secure password for the Admin Panel: ▐▌
█ $net2ftp_settings["admin_password"] = ""; ▐▌
█ For example: ▐▌
█ $net2ftp_settings["admin_password"] = "YourPassHere"; ▐▌
█ ▐▌
█ To allow large file uploads, has this: ▐▌
█ $net2ftp_settings["max_filesize"] = "10000000"; // in Bytes, default 10 MB
█ Change it to, for example 600MB file size: ▐▌
█ $net2ftp_settings["max_filesize"] = "600000000"; // in Bytes, default 10 MB
█ ▐▌
█ And this line: ▐▌
█ $net2ftp_settings["check_consumption"] = "yes"; ▐▌
█ Change to: ▐▌
█ $net2ftp_settings["check_consumption"] = "no"; ▐▌
█ ▐▌
█ (Note that you'll need to change your Apache and PHP settings as well for ▐▌
█ large file upload and download- continue to find out how.) ▐▌
█ ▐▌
█ Finished! :D Unless you are using MySQL; you need to make changes in this ▐▌
█ file as well. I have no need for this, so I skipped it. It is not needed ▐▌
█ for net2ftp to function. It is to log the actions of the users. ▐▌
█ man /var/www/net2ftp_v0.98/create_tables.sql ▐▌
█ ▐▌
█ Clean up; remove the zip & main dir (no need to advertise you have this on ▐▌
█ your server): ▐▌
█ cd .. ▐▌
█ rm net2ftp_v0.98.zip ▐▌
█ rm net2ftp_v0.98/ -rf ▐▌
█ ▐▌
█ You can now give it a try at: http://yoursite.com/ABC/ ▐▌
█ Login to any FTP. Your IP would show on the FTP that you are connected to ▐▌
█ as yoursite.com. So if you are attempting to login in to a FTP server that ▐▌
█ your own IP is part of your login method; you'll need to have the site's ▐▌
█ IP added to your account without an ident. ▐▌
█ ▐▌
█ After continue with the settings below to suit your needs including the ▐▌
█ section for large file upload and download settings if you require it. ▐▌
█ ▐▌
█ NET2FTP SETTINGS: ▐▌
█ ````````````````` ▐▌
█ WHICH FTPs USERS MAY CONNECT TO: ▐▌
█ pico settings_authorizations.inc.php ▐▌
█ ▐▌
█ I left everything at its default since this is private and for only one ▐▌
█ person I want him to be able to connect to any FTP, if not just read in ▐▌
█ the file what to change, such as: ▐▌
█ $net2ftp_settings["allowed_ftpservers"][1] = "ALL"; ▐▌
█ ▐▌
█ ADD DIFFERENT FILE TYPES TO BE TRANSFERED IN ASCII MODE: ▐▌
█ pico /var/www/ABC/includes/filesystem.inc.php ▐▌
█ Search (Ctrl + w) for: $last == "1st" ▐▌
█ In this list you can add file types that you want to be transfered in ▐▌
█ ASCII mode. I didn't need to make any changes. ▐▌
█ ▐▌
█ LARGE FILE UPLOAD OR DOWNLOAD SERVER SETTINGS: ▐▌
█ To reduce stress on your server for large file downloads: ▐▌
█ pico /var/www/ABC/includes/filesystem.inc.php ▐▌
█ Search for (Ctrl =w): while(!f ▐▌
█ Has this: ▐▌
█ while(!feof($handle)) { ▐▌
█ $buffer = fread($handle, 2048); ▐▌
█ echo $buffer; ▐▌
█ } ▐▌
█ ▐▌
█ Add two lines so this it is like this: ▐▌
█ while(!feof($handle)) { ▐▌
█ $buffer = fread($handle, 2048); ▐▌
█ echo $buffer; ▐▌
█ flush(); ▐▌
█ ob_flush(); ▐▌
█ } ▐▌
█ ▐▌
█ YOUR WEB SERVER SETTINGS FOR LARGE FILE UPLOADS: ▐▌
█ ```````````````````````````````````````````````` ▐▌
█ Keep in mind that the changes below will affect entire site, not just ▐▌
█ net2ftp. ▐▌
█ ▐▌
█ To allow large file uploads you must change the settings on your PHP & ▐▌
█ Apache conf files, we'll use 600MB file size as the example, change it to ▐▌
█ your own needs: ▐▌
█ pico /etc/php5/apache2/php.ini ▐▌
█ or if you are PHP4: ▐▌
█ pico /etc/php4/apache2/php.ini ▐▌
█ ▐▌
█ Search for (Ctrl +w): upload_max_filesize ▐▌
█ Change to: ▐▌
█ upload_max_filesize = 600M ▐▌
█ ▐▌
█ Search for: post_max_size ▐▌
█ Has this: ▐▌
█ post_max_size = 8M ▐▌
█ Change to (it must be larger than upload_max_filesize): ▐▌
█ post_max_size = 700M ▐▌
█ ▐▌
█ Search for: memory_limit ▐▌
█ Has this: memory_limit = 128M ▐▌
█ Change to, if you don't want any limit: ▐▌
█ memory_limit = -1 ▐▌
█ Or change to (it must be larger than post_max_size): ▐▌
█ memory_limit = 800M ▐▌
█ ▐▌
█ Search for: max_execution_time ▐▌
█ Has this: max_execution_time = 30 ▐▌
█ Change to for example: ▐▌
█ max_execution_time = 9600 ▐▌
█ ▐▌
█ Search for (just below max_execution_time): max_input_time = 60 ▐▌
█ Has this: max_input_time = 60 ▐▌
█ Change to: max_input_time =3600 ▐▌
█ ▐▌
█ Done, save the changes. ▐▌
█ ▐▌
█ pico /etc/apache2/apache2.conf ▐▌
█ Search for: LimitRequestBody ▐▌
█ If your conf does not have this line; add it ▐▌
█ Has this: LimitRequestBody 102400 ▐▌
█ Change to: ▐▌
█ LimitRequestBody 600000000 ▐▌
█ ▐▌
█ If you set it to 0, meaning unlimited up to 2147483647 bytes (2GB) ▐▌
█ ▐▌
█ Restart your web server: ▐▌
█ /etc/init.d/apache2 restart ▐▌
█ ▐▌
█ DECOMPRESS DIFFERENT TYPES OF FILES: ▐▌
█ Only zip, tar, tgz and gz archives are supported. I found a post HERE; the ▐▌
█ beginnings of how to extract from .sit files. I don't understand why the ▐▌
█ Moderator that replied didn't share the answer, but if you need to it's a ▐▌
█ start. ▐▌
█ ▐▌
█ TROUBLE SHOOTING: ▐▌
█ ````````````````` ▐▌
█ BOOKMARK ERROR: ▐▌
█ Login to any FTP, try to bookmark a site by selecting the heart button, if ▐▌
█ you receive the error: "Parse error: syntax error, unexpected T_VARIABLE, ▐▌
█ expecting '(' ..." ▐▌
█ To fix this we need to add the character ( on line 4, 6, & 8: ▐▌
█ pico /var/www/ABC/skins/blue/bookmark1.template.php ▐▌
█ ▐▌
█ On these 3 lines: ▐▌
█ <?php if $net2ftp_globals["browser_agent"] == "IE") { ?> ▐▌
█ <?php } elseif $net2ftp_globals["browser_agent"] == "Safari") { ?> ▐▌
█ <?php } elseif $net2ftp_globals["browser_agent"] == "Opera") { ?> ▐▌
█ ▐▌
█ Change to: ▐▌
█ <?php if ($net2ftp_globals["browser_agent"] == "IE") { ?> ▐▌
█ <?php } elseif ($net2ftp_globals["browser_agent"] == "Safari") { ?> ▐▌
█ <?php } elseif ($net2ftp_globals["browser_agent"] == "Opera") { ?> ▐▌
█ ▐▌
█ Refresh your net2ftp page, login to an FTP again, try to bookmark. ▐▌
█ Note: Mine is now working (gives correct link), but still not shown ▐▌
█ properly (using Firefox); it has this: ▐▌
█ MESSAGE NOT FOUND net2ftp ftp.adobe.com ▐▌
█ MESSAGE NOT FOUND net2ftp ftp.adobe.com ▐▌
█ ▐▌
█ The bookmark link would be similar to: ▐▌
█ http://yoursite.com/secureftp/index.php?ftpserver=ftp.adobe.com&ftpserverp ▐▌
█ ort=21&username=anonymous&language=en&skin=blue&ftpmode=automatic&passivem ▐▌
█ ode=no&sslconnect=no&viewmode=list&sort=&sortorder=&state=login_small&stat ▐▌
█ e2=bookmark&go_to_state=browse&go_to_state2=main&directory=%2FAcrobat&entr ▐▌
█ y= ▐▌
█ ▐▌
█ If the bookmark is working 100% properly it would show this: ▐▌
█ Add this link to your bookmarks: net2ftp ftp.adobe.com ▐▌
█ * Internet Explorer: right-click on the link and choose "Add to ▐▌
█ Favorites..." ▐▌
█ * Netscape, Mozilla, Firefox: right-click on the link and choose ▐▌
█ "Bookmark This Link..." ▐▌
█ Note: when you will use this bookmark, a popup window will ask you for ▐▌
█ your username and password. ▐▌
█ ▐▌
█ JAVA ERRORS ON YOUR OWN COMPUTER: ▐▌
█ To trouble shoot if Java; open its console located here: ▐▌
█ C:\Program Files\Java\jre6\bin\javacpl.exe ▐▌
█ Click on the Advanced tab, expand the Java console window, then select ▐▌
█ 'Show console'. Click Apply then OK. Now each time your Java is used its ▐▌
█ Console window will open- view it for errors. ▐▌
█ ▐▌
█ 'TOO BIG' ERRORS WHEN USING JAVA UPLOAD: ▐▌
█ If using 'Java Upload' after selecting your file/s or directory, before ▐▌
█ you even upload it you receive an error similar to 'Too big:' edit these ▐▌
█ lines in the 'jupload.inc.php': ▐▌
█ pico /var/www/ABC/modules/jupload/jupload.inc.php ▐▌
█ Search for (Ctrl =w): Maxima ▐▌
█ Has this: ▐▌
█ $maxFreeSpaceOnServer = 5 * $net2ftp_settings["max_filesize"];▐▌
█ $maxTotalRequestSize = 5 * $net2ftp_settings["max_filesize"];▐▌
█ Change to: ▐▌
█ $maxFreeSpaceOnServer = $net2ftp_settings["max_filesize"]; ▐▌
█ $maxTotalRequestSize = $net2ftp_settings["max_filesize"]; ▐▌
█ ▐▌
█ NOTES: ▐▌
█ `````` ▐▌
█ 1. Files will first be uploaded to /temp/ and only moved once the entire ▐▌
█ set of the upload is completed. ▐▌
█ There is was a post HERE with some information how to bypass /temp/ (link ▐▌
█ is archived thanks to web.archive.org I've also saved the page here). ▐▌
█ ▐▌
█ 2. If uploading a rar set to an FTP that requires the sfv to be uploaded ▐▌
█ first select the sfv first in your upload list, then add the other rars ▐▌
█ to the upload list. ▐▌
█ ▐▌
█ 3. If you unzip a zip on the FTP that contains files that are not allowed ▐▌
█ on the FTP, the FTP will delete those files. You will not receive an error ▐▌
█ msg about it. ▐▌
█ ▐▌
█ 4. With each action on the FTP users will be logged in then logged out ▐▌
█ immediately, even on download and upload. ▐▌
█ ▐▌
█ 5. Search google for skins for net2ftp to change the appearance here is ▐▌
█ an example. ▐▌
█ ▐▌
█ //---------------------------------------------------------------------- ▐▌
█ ▐▌
█ If you find mistakes, have suggestions, and or questions please post at ▐▌
█ mewbies forum HERE - thank you. ▐▌
█ ▐▌
█ Last update on 30 May '10 ▐▌
█ ▐▌
█▌ █▌
█▌ - mewbies.com - █▌
█▌ █▌
██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██