Addition to documentation 08-14-02
Variable Definitions
- $upload_dir is the variable
which defines the initial directory the script writes to as the file
is uploaded from the local PC. THIS DIRECTORY MUST HAVE FULL 777 RIGHTS
(rwxrwxrwx).
- $saveit_dir is the variable which
defines the final directory the script writes the file to, after it
has been uploaded to the server. THIS DIRECTORY MUST HAVE EITHER FULL
777 RIGHTS (rwxrwxrwx) or THE SAME RIGHTS AS THE WEB SERVER.
- WARNING-> IF YOU DO NOT UNDERSTAND
PERL, WEB SERVERS &/or LINUX (assuming hosting on a Linux Server), YOU
VERY LIKELY CAN NOT GET THIS SCRIPT INSTALLED. ALSO, IF YOU DO NOT HAVE
ADEQUATE RIGHTS (i.e., root access) TO THE SERVER, YOU WILL NOT BE ABLE
TO INSTALL THIS SCRIPT.
- LASTLY. NO EMAIL OR INSTANT MESSAGE SUPPORT IS
PROVIDED FOR THIS OR OTHER FREE SOFTWARE.
|
This document is in conjunction with the sendit script you have downloaded
off the website at Perlsources.com.
Distribution
- Download filename:
- Contents of sendit.zip:
- sendit_install.html -> This HTML installation document
- sendit.cgi -> CGI script
General Requirements
- Linux, FreeBSD or UNIX Server
- Web Server - Apache recommended
- Perl5
Perquisites
- Ability to run CGI scripts on the Web Server
Installalation
- Installation the script in your CGI-BIN directory on your Web Server.
- Set the rights of the file to 755 (rwxr-xr-x).
- Edit the five (5) variables in the script - see EDIT THESE VARIABLES
FOR YOUR SERVER ENVIRONMENT - in the script.
- Create your upload directories and properly set the rights on the
directories to 777 (rwxrwxrwx). The ownership can be changed to your
reflect the Web Server User:Group, then the rights can be 700 (rwx------).
- Change the top line of each script to reflect the location of Perl
on your server (i.e., #/usr/local/bin/perl), or
- Add a link to from your current location of Perl to match the script
reference (i.e., #/usr/bin/perl). To do this, simple follow these steps:
- Find the current location of Perl (#find / -name perl).
- CD to that directory (i.e., cd /usr/local/bin).
- Create a link from here to "/usr/bin/perl" like this:
Testing - A must
- All work should be tested.
- If you have access to your Web Server OS prompt, check the compile
of the script (like below).
- perl -c sendit.cgi
- If it comes back okay, you are ready to go.
- If not, you are ready to trouble-shoot your installation.
Time to Run It!
- From the browser, and run like this:
- http://yourwebsite.com/cgi-bin/sendit.cgi
- Enjoy!
Support
Comments
|