Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Perl scripts on apache

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
perl scripts appear as text - Ive set up a virtual host which seems to work OK, except for links that are to scripts that generate pages. the script text is appearing rather than the generated page. The bit of the Directive *> .....

Mod_perl returning perl scripts! - Hi, I'm using Apache with Mod_Perl Perl scripts prepare wml cards to return to a request. This works fine if requests come from mobile phones. However, if I type the url into my web browser pointing to a perl script then the script get sent..

Perl scripts invoke the command prompt! - I have Apache 2 installed and When i go to my cgi-bin folder and try to open a .pl file it gives me the file download dialogue box and asks if i want to open it or save it. When i say open it it invoked the command prompt, executes the script..

CGI scripts: What has changed between Apache A.3 and Apach.. - Hi, I have a few CGI scripts that worked fine under mandrake 8.1 and apache 1.3.?, but having UPGRADED (ie not a new to Mandrake 9.1 and Apache 2.0, I keep on getting a 'file not found' error whwn I run the scripts - in..

REXX cgi scripts with Apache under Win2K - I'm trying to convert a lot of stuff I ran under OS/2 to Windows 2000 and slowly but surely I'm getting there. One of the biggest sticking points is all of the REXX cgi I had written. REXX is native to OS/2, but it's an add-on for Windows 2000. I..
Author Message
rchege2000

External


Since: May 21, 2004
Posts: 4



(Msg. 1) Posted: Sat Jul 10, 2004 10:24 am
Post subject: Perl scripts on apache
Archived from groups: alt>apache>configuration (more info?)

Hi. I have windows 2000 and red hat linux 9 running on my machine.
I have a local site that I would like to visit in both OSes. The
problem is that it has perl scripts which run OK in windows, but when
i boot to linux I just cant get them to work. The scripts were written
for a Unix based system, and to get them to work in windows I had to
change #!/usr/lib/perl to #!perl.
The server in linux works fine with other pages.
Any ideas?

 >> Stay informed about: Perl scripts on apache 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 2) Posted: Sat Jul 10, 2004 10:06 pm
Post subject: Re: Perl scripts on apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Chege" <rchege2000 RemoveThis @yahoo.com> schreef in bericht
news:88bd611d.0407100624.a3effd7@posting.google.com...
 > Hi. I have windows 2000 and red hat linux 9 running on my machine.
 > I have a local site that I would like to visit in both OSes. The
 > problem is that it has perl scripts which run OK in windows, but when
 > i boot to linux I just cant get them to work. The scripts were written
 > for a Unix based system, and to get them to work in windows I had to
 > change #!/usr/lib/perl to #!perl.
 > The server in linux works fine with other pages.
 > Any ideas?
Change that shebang line [back] to fit your linux and add
ScriptInterpreterSource Registry
or
ScriptInterpreterSource Registry-Strict
to your configuration of apache on Windows.
The latter requires you to manually add some records to the registry
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource" target="_blank">http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource</a>

You may have to modify your scripts to work with binairy files on Windows
and to properly recgnize the different line-endings on these two
platforms...

HansH<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Perl scripts on apache 
Back to top
Login to vote
rchege2000

External


Since: May 21, 2004
Posts: 4



(Msg. 3) Posted: Tue Jul 13, 2004 8:32 am
Post subject: Re: Perl scripts on apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The problem is that the scripts works on Windows and not in linux
though I believe they were written for linux. Any more suggestions?
 >> Stay informed about: Perl scripts on apache 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 4) Posted: Thu Jul 15, 2004 2:04 am
Post subject: Re: Perl scripts on apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Chege" <rchege2000.RemoveThis@yahoo.com> schreef in bericht
news:88bd611d.0407130432.30fabf15@posting.google.com...
 > The problem is that the scripts works on Windows and not in linux
 > though I believe they were written for linux. Any more suggestions?
'not in linux' holds no clues, anything in error_log??

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Perl scripts on apache 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]