Forum Moderators: phranque

Message Too Old, No Replies

Novice needs cgi perl help in Apache.

         

senrdevr

2:52 pm on Feb 19, 2005 (gmt 0)



I am a developer who has just created an Apache server on my laptop in order to help me do a paid project for a client. Having it all local will greatly help me by working off-line

The client's site works fine on his (hosted elsewhere) Apache server but I can't get it work for perl scripts (an important element of his site). I am at a complete standstill

Other software (easyphp) was installed which included a local Apache server (lower than version 2). They seem to have configured the server for php pages ok but something is wrong with cgi setup

I have checked with several web sources and adjusted paths etc and when I run a .pl from an .html page (presumably the default) it apparantly does not fail but does not seem to function, which is odd in itself

His site is built on included .shtml files which work but will not call cgi. Every time I "#include virtual" a pl script I get "[an error occurred while processing this directive]" and no cgi processing

example:
<!--#include virtual="c:/robb/easyphp/cgi-bin/robtest.pl"-->

I made sure that the cgi script dir was configured

The pl scripts work fine if I run from the windows system command line with perl compiler, but not from the server's web page

I have tried every fix I can see - directory alias's, addtype, addhandler, "ScriptInterpreterSource registry" etc etc) - nothing makes any difference

If I leave the server to default .html I get no server-side includes at all but cgi does not give a processing directive

If I reconfigure .html to "server-parsed" I get all the server includes ok, but still no scripts

Someone even suggested adding a "loadfile" for perl - the server would not start

I finally implemented a test "form.submit" in javascript to "http-post" run the perl script (just to see what would happen) - and this worked and ran the pl script ok! So it is to do with includes it seems

1 thing - I am on windows 98 - could this be a problem?

After 2 days I am really frustrated

Can anyone please help (I need the money from this project!)?

Thanks