home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 3049
Discussions: 188,376, Posts: 2,243,445, Members: 232,604
Old November 8th, 2002, 02:30 PM   Digg it!   #1 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
Question
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???????????????
__________________
USA Linux Users Group
OpenSUSE.us

crouse is offline   Reply With Quote
Old November 8th, 2002, 02:32 PM     #2 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,549
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
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.

jkrohn is offline   Reply With Quote
Old November 8th, 2002, 02:46 PM     #3 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
okay........ I will try that..... thanks

crouse is offline   Reply With Quote
Old 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
vass0922 is online now   Reply With Quote
Old November 8th, 2002, 10:59 PM     #5 (permalink)
Member
 
gothic's Avatar
 
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.
gothic is offline   Reply With Quote
Old 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.
Ruler2112 is offline   Reply With Quote
Old November 12th, 2002, 02:55 AM     #7 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
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?
crouse is offline   Reply With Quote
Old December 1st, 2002, 06:11 PM     #8 (permalink)
Member
 
quux's Avatar
 
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 ***
quux is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2882)
The United States Debt (20)
Looks like Burris will get his Sena.. (7)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Titan quest and Immortal Throne, an.. (17)
Recent Discussions
Folderchat Weekday thread (439)
New Build ( Finally ) (0)
MSN Hotmail Down??? (7)
Help with an Ati Radeon HD 4850.. (23)
Laptop waking up itself (0)
CPU wont boot (3)
Best digital camera for under 2.. (13)
Building first computer, will t.. (2)
get this error, "res://C:\.. (73)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 07:56 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28