PDA

View Full Version : Problems with Making CGI script work


nikschultz
03-16-2005, 07:31 AM
I got a script for a ticketing program and I am new to this kind of programming. I have uploaded it to my cgi-bin and nothing is happeneing, just getting a 500 server error.

Here is the website I am trying to get working:
http://empirian.snikit.com/cgi-bin/tticket/setup.cgi

This is where I got the software
http://www.troubleticketexpress.com

~~HELP~~

Nik

mlseim
03-16-2005, 11:36 PM
Have you ever uploaded a Perl/CGI script before?

Copy and paste the old familiar "hello world" script
below and see if you can get it to work.

Copy and paste into Notepad, rename it to "test.pl", then
Upload in ASCII mode (using your FTP program),
then set CHMOD permissions to 755.

If you can get the script below to run, then you'll know
you are uploading and configuring correctly.

If you can't get it work ... well ??? You have some
more learning to do.

... and pay the $5-$7 per month for your own ad-free site.
Geocities is really hard to deal with... You'll want to find
a webhost with Perl, PHP, SSI, MySQL, email accounts.

===========================================

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello World!\n";

#############################

nikschultz
03-17-2005, 01:22 AM
Yeah I am learning! I have learned a lot about html, so I know a little. But Perl, PHP, CGI and those I know hardly anything about. But really want to learn! I think I can get that one to work. I will try that hello script and see what happens. I will also try and upload it differently. Do you have to have certain files in certain directories on the server? Like I have a cgi-bin directory, a cp directory and a few others that were preloaded on the host.
Thanks for the HELP!!!!!

Nik

SNikit (http://www.snikit.com)

mlseim
03-17-2005, 01:49 AM
Perl scripts, which people call CGI scripts (although Perl is not really CGI)
are placed in the directory usually called: cgi-bin

PHP scripts go into the same directory as your usual HTML files.

Yes, Perl scripts need to be uploaded in a mode called ASCII,
and permissions set to each script (called CHMOD).