November 8th, 2002, 02:30 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
| Perl/Linux Question
Okay....... showing how green I am now
I have created many cgi scripts that work on my websites. I don't have any problems uploading them or getting them to work on the net.
I have a perl script that works fine on the web........ but I can't get it figured out how to work on my linux machine. I have perl installed in the
#!/usr/bin/perl <<<<this is the first line of my script.
I don't think I have a webserver set up on linux yet...... is it necc to have a webserver installed?
I have a directory on my desktop that has all the html files and then a directory with the perl script in it as well. When I execute the html file ... my browser opens up as expected........ when I execute the perl script from the html file........ it just shows the perl script  ???? in text form.....
Okay...... I'm thinking I need to install apache?? Am I on the right track??? I don't want to serve this (mini-website) to the world......just my desktop for now.....maybe eventually some of the networked computers.
Any ideas??????????????? |
| |
November 8th, 2002, 02:32 PM
|
#2 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,549
|
Yes you will need apache AFAIK.
You will also need to make sure apache is running mod_perl
There *may* be a way to do it with only the perl environment, but I don't know it
Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
|
| |
November 8th, 2002, 02:46 PM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
|
okay........ I will try that..... thanks |
| |
November 8th, 2002, 03:18 PM
|
#4 (permalink)
| | Ultimate Member
Join Date: Oct 2001
Posts: 21,017
|
Yes you will need apache 
Otherwise that would be like putting the ip address in IE of some pc in the house and expect it to pull up a full web page
If you put http://192.168.1.201/script.pl it will have no idea what you're talking about because the server pc will not know how to handle the http protocol |
| |
November 8th, 2002, 10:59 PM
|
#5 (permalink)
| | Member
Join Date: Oct 2001 Location: Palatine, IL
Posts: 375
|
On a side note, you do *not* need mod_perl built into Apache ... So no need to add more work than needed.
Apache will still know that she's a PERL file (as long as you tell Apache so in the conf files), and will execute the script.
*edit* Bad wording. |
| |
November 9th, 2002, 04:46 AM
|
#6 (permalink)
| | Senior Member
Join Date: Aug 2002 Location: Meeshigan
Posts: 602
|
I believe you can also run Perl scripts from the command line, so if you just want to test them out, you can skip apache. Lots of limitations running scripts this way though.
__________________
About 5% of the people in the world can't think.
Another 5% can think and do.
The remaining 90% can think, but don't.
|
| |
November 12th, 2002, 02:55 AM
|
#7 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
|
Thanks again,
I will try setting up apache again. I had it set up on Mandrake 8.2 but I didn't really use it. I need to get my test machine running Mandrake 9.0 and install apache with it.
My thoughts were to make an intranet for webdesign testing and for inhouse databases............ Sound reasonable? |
| |
December 1st, 2002, 06:11 PM
|
#8 (permalink)
| | Member
Join Date: Nov 2002 Location: Hamburg
Posts: 244
|
Sounds perfect. Cordially Carlo
__________________
*** all that we C or Scheme is
but a dream within a dream ***
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |