[an error occurred while processing this directive]

Perl

Menu

Steps for CGI Programming on the CS Network

use an SSH client to connect to solaris.remote.cs.rpi.edu
log in with your CS Dept username and password
If public.html does not exist, create it
        mkdir public.html
Change to public.html
        cd public.html
Find permissions of public.html
        ls -al
If first line does not have r-x permissions at end of permission list,
        chmod o+rx .
If cgi-bin does not exist inside public.html, create it
        mkdir cgi-bin
Change to cgi-bin
        cd cgi-bin
Give cgi-bin read and execute permissions for 'others'
        chmod o+rx .


EITHER:
A) Create your file on the CS system:
        emacs <filename> / vi <filename> / pico <filename>
B) Copy file from Windows PC to CS
        Use WinSCP to connect to solaris.remote.cs.rpi.edu
                WinSCP found at http://winscp.net/
        Don't forget dos2unix!!!
C) Copy file from RCS to CS
        I) from RCS: scp <filename> solaris.remote.cs.rpi.edu:public.html/cgi-bin
        II) from CS: ftp ftp.rpi.edu, cd public.html/cgi-bin, lcd <RCS_dir>, get <filename>


Give appropriate permissions to file
        chmod 700 <filename>
                DO NOT give file all permissions (ie, chmod 777 <filename>)
                -- CGI server will not execute programs with write
                permissions for group or world
                DO NOT give 'others' read access.  This will enable
                anyone with a web browser to see your code, and is therefore a
                violation of the academic integrity policy and is grounds for
                failure of the assignment

Execute program
        http://www.cs.rpi.edu/~<userid>/cgi-bin/<filename>

****If when executing either ssh or scp, you get an error message
    saying something about a corrupt host, or .ssh/known_hosts, DO NOT
    PANIC.  Simply remove the known_hosts file from your .ssh
    directory:
        rm ~/.ssh/known_hosts
    and try the ssh or scp again
Perl Quotes
Perl Quotes