PDA

View Full Version : php and perl in the same host...


mia_tech
08-11-2008, 08:25 AM
is it possible to have php and perl installed in windows 2003 server?....I have php installed and I'm able to see all my pages but all of a sudden my cgi perl scripts stopped working..


thanks

www.pctechtips.org

FishMonger
08-11-2008, 08:39 AM
Yes, Perl and php can be and almost always are installed and used on the same server.

mia_tech
08-11-2008, 09:55 AM
Yes, Perl and php can be and almost always are installed and used on the same server.

well, one of my perl script is an app that simulates a telnet terminal, and I'm not able to get it working, my perl.exe file and installation path is /usr/bin, that's what change it to in the telnet.pl script, yet still not working, I had it working before I installed php

thanks

www.pctechtips.org

FishMonger
08-11-2008, 02:06 PM
my perl.exe file and installation path is /usr/bin
The shebang line (the first line in the script) is only important on *nix systems, Windows doesn't care what you put on that line.

Please clarify the exact path where perl is installed. On Windows systems it's normally in:
C:\perl
and the executable (perl.exe) would be at:
C:\perl\bin\perl.exe

Is this telnet script the only one that is not working, or is it all of your scripts?

mia_tech
08-12-2008, 04:37 AM
no, none of the perl script are working... and the perl installation on my systems is C:\usr\bin\perl.exe, specifically did it like that b/c I thought that like in linux the script will look for that path, but no it's not install in the default path...


thanks

www.pctechtips.org

FishMonger
08-12-2008, 07:43 AM
Did they ever work? If so, you need to think back to when they last worked and remember what changes you made to your system. One or more of those changes "broke" your Perl installation.

However, I'm sure it will be easier, and it's my recommendation, to uninstall Perl and then reinstall it in its default location.

KevinADC
08-12-2008, 08:41 AM
How are you running your CGI scripts? As Fish said, Windows ignores the shebang line, but the http server you use might not.