Installing Tube cgi on your server
READ THIS FIRST:
* Your domain must be activated/live and reachable before the script can install
* If you do not use an FTP program to upload ASCII and Binary files correctly the script will not work.
   Set your FTP transfer mode to "auto" and set the ASCII file types to these file extensions :
   .pl .cgi .html .shtml .css .js .txt .xml .htaccess

* Known Server Issues:
- Some servers will not execuute cgi scripts if the directory is chmod 777 and will return 500 error,
   you must chmod 755 cgi-bin/tube to fix
- Some servers must have cgi-bin and root folder chmod 777 for the script to write(the opposite of above)
- Therefore you must know which type server you have and do which is correct.


Test Script:
- Upload this script to the cgi-bin and chmod 755 then execute it (change to your path to perl)
If it fails your host must install either or both PERL Libwww and Imagemagick(PerlMagick must be included)

test.cgi
#!/usr/bin/perl

use Image::Magick;
use LWP;
use LWP::Simple;
use URI::Escape;
require LWP::UserAgent;
use HTTP::Request::Common;
use MIME::Base64;
require HTTP::Headers;

print "content-type: text/html\n\n";

print "Hurray!";

exit;


Your Server:
Must have the following installed :

- PERL 5.0 or greater
- ffmpeg
- LAME (+ codec libmp3lame)
- Ruby
- Flvtool2
- PerlMagick
- ImageMagick
- Libwww
*Note: These sofware ad-ons are free and should be installed by your hosting company for free.
Try Phatservers.net or Isprime.com if your current company doesn't have this script up and running after
one email explaining the server requirements.
Tubecgi is thoroughly tested, if it does not run on your server then fix your server as stated above.



Begin Install:

- Download the zip file to your PC or MAC

- Extract the zip file on your computer(on windows: right click,extract all)

- upload the entire(not in pieces) tube folder in Auto mode to yourdomain.com/cgi-bin/

- If your path to perl is different than /usr/bin/perl then download cgi-bin/tube/install.cgi
Open install.cgi in a text editor and change
/usr/bin/perl to your path to perl
Change it on BOTH lines in the script!!
Don't use WordPad, NotePad is ok.

- chmod 777 or 755 tube directory(depending on server type)*
* some servers will return 500 error for chmod 777 when install.cgi is run
use chmod 755 for those servers only

- chmod 755 install.cgi

- Go to http://yourdomain.com/cgi-bin/tube/install.cgi

- Choose a htaccess username and password (at least six characters long)

- Choose a password for the script (at least six characters long)

- Enter your path to PERL. (example: /usr/bin/perl) do not include "#!".

- Click the "Home" button to continue if all is correct so far

- Enter the invoice number to activate the script.

- Click "Home"

- You are now in the script! Follow steps 1 thru 5 highlighted in red

- For Step 3 (configuration) just check your email notify setting and path to sendmail and save configuration

- Complete steps 4 and 5

Your site should be up and running with content!

- If you created the index.shtml and deleted the index.HTML then go to yourdomain.com or
go to http://yourdomain.com/channel.shtml?home

TIPs:
- Use an FTP program to do the install like CuteFTP or Filezilla
- Do not use FrontPage to edit templates, only hand-coded html allowed
- Do not use html textarea tags in the template, they conflict with the template editor.
- When importing the flash videos change the width and height in "Modify rule" if you want the big video player