Ben wrote:
> i want to do an upload directory also...where do you go/ which
> files do you reconfigure to do what you did..?
I will tell you what has worked for me, in the next post concurrent to this but 1st I appeal for the experts to look at this, correct my mistakes and let us make installing php and cgi scripts into something to post as a How To.
I also would ask someone here to answer the following questions I saw posted at bignosebird.com ( a location to get CGI scripts)
First, find out from your system administrator if you are allowed to run cgi scripts on your server.
(It appears we can turn this on or off at the modify Ibay level)
Second, find out where your cgi-bin directory is located.
(Answer for main and i-bays appreciated)
Third, find out how to call a cgi-bin script, i.e.,
http://domain.com/cgi/yourname/cgi-bin/script.cgi or /cgi-bin/script.cgi as examples.
Fourth, make sure you know how to properly FTP files between your PC and unix server. Files ending with .txt, .cgi, .pl, .html must be sent as type ASCII. Files such as .jpg, .mid, .gif must be sent as type BINARY.
Fifth, ask where PERL is located on the server. Popular locations are /usr/local/bin/perl, /usr/bin/perl, and /usr/sbin/perl make sure it is the right perl! Some systems have more than one version of perl installed. Go for Version 5.
(I notice perl scripts have the location on the top line but a # in front does this # need to be removed)
Sixth, if the script uses e-mail, such as Virtual Cards, BNBFORM, BNBBOOK, or BIRDCAST, make sure you have the sendmail program correct or that SMTP is set correctly. In the scripts, it is /usr/lib/sendmail -t
If you must change it to /usr/sbin/sendmail or some other location, be sure to have the -t option on the command line. Making the mistake of removing the -t is a sure way to kill any of these scripts!
Now on to the next message where I will tell how I got an upload script to work after a weekend of work because I did not know the answers to the above questions.
Ken Graham