PDA

View Full Version : really nooby question


xxTHExFIRMxx
02-16-2006, 09:59 PM
hi and sorry to bother everyone...but i have a really nooby question to ask, because it's starting to frustrate me. i cannot figure this out.

I'm trying to run CGIProxy off my computer. I have it set up to run as a webserver. 12.210.166.32. the script runs as a .pl file...so i have set up all my MIME types and everything on the server, but every time i try and use the script, i get an error from the server saying "Not found." I am getting the "404 Not Found" error. my friend told me that this is because my perl script is not correctly linked to my perl.exe. okay...well i have Perl installed at E:\Perl and the perl.exe file is located at E:\Perl\bin. the first line of the .pl file is #!/usr/bin/perl -w. is this compatible with my settings? if this isnt the problem, does anyone know what is, and how i can fix it? thanks a lot in advance. i know this a really n00by question...but not all of us are experts with perl. :(

Vege
02-17-2006, 09:53 AM
Little google gave me this:

If you will be using Perl CGI programs and want to maintain some level of portability between both Linux machines and Windows machines, you will want to install Perl to the same location on your Windows machine that it is on most Linux machines.

For example, on my Linux machine, Perl is located at /usr/bin/perl and so every Perl program that I write begins with #!/usr/bin/perl So, when I install Perl on an Windows machine, instead of installing it in the default location (which is C:\perl for ActivePerl) I install it in C:\usr so that the Perl executable is located at /usr/bin/perl. This allows me to write code on my Windows machine, and then move it, without changes, to my Linux machine, and have it run there. And vice versa.



For the perl path E:/usr/bin/perl.exe all of these are/were valid. I prefer the last one, but to each their own.
#!E:/usr/bin/perl.exe
#!E:/usr/bin/perl
#!/usr/bin/perl.exe
#!/usr/bin/perl


so basically you can change it like
#!C:/perl/bin/perl.exe

if im not mistaken


You could also consider this service:
http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html