Forum Moderators: phranque

Message Too Old, No Replies

Setting up local server for testing on XP

Apache2 web server config

         

RoseMarie

7:39 pm on Nov 18, 2003 (gmt 0)

10+ Year Member



I am setting up a web server at home for testing. I have set up virtual hosting and everything is working fine with my accounts. I would like the test environment to be an exact replica of my online web service.

Right now I have to modify my perl scripts to #!perl to work at home. Then I have to change back to #!usr/bin/perl to upload any changes to the main web server.

Is there a way that I can do a rewrite or something to make it so I don't have to change the beginning of the script?

Any suggestions would be greatly appreciated.
Thanks,
RoseMarie

jdMorgan

8:02 pm on Nov 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Right off the bat, two possibilities:

1) Create a folder in the path /usr/bin/perl and put a 'shortcut' to the actual location there.
2) Use the Apache ScriptInterpreterSource directive to override the #!perl and find the script interpreter by looking for its location in the Windows registry instead.

Jim

RoseMarie

8:17 pm on Nov 18, 2003 (gmt 0)

10+ Year Member



I have not read about the ScriptInterpreterSource directive yet. I will check it out tonight when I get home.

Thanks for getting me started in the right direction.
RoseMarie