Click to See Complete Forum and Search --> : Apache and ActivePerl Question


DJRobThaMan
09-08-2005, 08:54 PM
Hi,

I installed the latest Apache (ver 2.0.584) web server and ActiveState ActivePerl 5.8 to my PC just the other day so I can test my perl scripts locally, but it hasn't done the trick. I'm sure it's something simple that I need to do that I haven't done because I haven't worked with these before. Is there some special way in which i'm supposed to run both packages or some option that I do not have set that is causing the problem? When I start the server monitor it says that there are no services installed. Does it have something to do with this?

Obviously I have no clue what I'm doing. If anybody could help me out. push me in the right direction I would really appreciate it.

Thanks

ray326
09-08-2005, 11:48 PM
Apache reads and acts on the shebang line in Perl CGI scripts so what I do is install Perl to the /usr directory on the same drive as Apache because that will put the executables in /usr/bin, which matches most *nix Perl installs. You have to define a script executable directory, usually mapped to /cgi-bin, in the Apache httpd.conf.

After doing a setup like that I get very good compatibility between Win and *nix Perl CGI scripting.