PDA

View Full Version : CGI-Help



Mrh0ax
January 2nd, 2001, 11:42
Ok, i started my comp up as a web server, now i wnat to have cgi, i downloaded a .zip file from perl.com

there is over 1,000 files, i have no clue how to install it..

will someone help??? :)

Mrh0ax
January 2nd, 2001, 11:47
and once i install it, how do i chmod it???

since i would be using explorer :(

how cna i FTP into my system, do you know??

Mrh0ax
January 2nd, 2001, 11:57
so weird, http://www.perl.com and perl.com are diff sites! whats up with that?

and another thing, why can some poepl eonly view a site at http://www.domain.com and not domain.com or other way around?? I am very new to servers and ----, :(

Robert
January 2nd, 2001, 12:27
Whew.. here goes..


1. What OS are you running? If you are running Windows, then you need to download ActiveState at http://www.activestate.com/Products/ActivePerl/Download.html (which is Perl). Once you've downloaded it, just run the installation and you'll be set. (I recommend to install Perl into C:\Perl)

2. You can't chmod on Windows. It's automatically chmod to 755 I believe.

3. Yes you can FTP to your computer. LOL. Goto http://www.download.com and do a search for FTP Servers. They are many free/shareware FTP servers that allows you to 1) create different FTP users/passwords and 2) assign them different folders.

4. As for some people being only able to go to http://www.domain.com and not domain.com, well that's because they need to create a entry in their zone file. Simply add @ IN A [IP Address] or @ IN CNAME domain.com (I think that's right)

5. Whew.. I'm tired. lol. Hope that helps!



[Edited by robert on 01-02-2001 at 01:34 PM]

Mrh0ax
January 2nd, 2001, 13:06
well, i have a FTP now, so i think i can offer it to users, since they can only edit and upload what i tell them they can :)

i will messs arround, an di connected to myself, so its coo :)

Mrh0ax
January 2nd, 2001, 14:04
i installed Active Perl thats all dide nothing else, so does perl work on my whole machine???

Mrh0ax
January 2nd, 2001, 14:06
#$MyForm->Text1->{'value'} = "PerlScript says: Hello, world!";
$window->document->MyForm->Text1->{'value'} = "PerlScript says: Hello, world!";

is that CGI??? cuz if it is i saw it so perl should be installed?

neon
January 3rd, 2001, 00:24
I am not sure but I don't think the part that says [#$MyForm->Text1->{'value'} = "PerlScript says:] is supposed to be there. I think it is only supposed to print out the Hello World! part. But then again I have never setup perl so what do I know :)

Maurice
January 3rd, 2001, 07:59
If you want to print out hello world in perl look at this:

#!c:/perl/perl.exe

print "hello world";

that prints out hello world,

i am a starting perl programmer,
i don't recognise the code:

#$MyForm->Text1->{'value'} = "PerlScript says: Hello, world!";
$window->document->MyForm->Text1->{'value'} = "PerlScript says: Hello, world!";

Mrh0ax
January 3rd, 2001, 08:20
where is the path to pelr in windows??? :(

Mrh0ax
January 3rd, 2001, 08:48
cuz when i view a CGI online i get the text doc :(

rockergrrl
January 3rd, 2001, 09:45
The path to perl is where its located on your computer...

instead of /usr/bin/perl for UNIX

its: C:/wherever/perl/is/located/perl.exe

usually C:/perl/perl.exe

etc

Omari
January 3rd, 2001, 11:16
i have perl on my comp... i have it in a direct called perl in the c directory... the path to perl on my comp is Perl/Bin/Perl