HOw to configure Apache for Windows e Linux

Notices and updates
Locked
ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

HOw to configure Apache for Windows e Linux

Post by ale870 »

Hello,

I'm using newLisp to make a site :-) but the problem is I'm creating some CGI on my PC using Windows (and Apache) and I need to deploy and publish my CGI on a server using Linux.
So my "magic" string in Windows, to execute CGI is different from the one used in Linux:

LINUX: #!/usr/bin/env newlisp
WINDOWS: #!c:/program files/newlisp

How can I avoid to change initi strings in every CGI everytime I publish them?

(I'm using http://nearlyfreespeech.com)

Thank you foro your help!
--

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

i don't know the answer, but if you google for 'shebang line in windows' you'll get lots of other people asking the same question.. :) I read the suggestion that you can install a Windows-version of a Unix shell (Bash/tcsh...) which sounds like a cool idea...!?

Your new project looks fascinating - I hope to look a bit more closely at it soon.

ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

Post by ale870 »

Thank you (even for the comments about my new project!).
I already use CynWin under windows ;-) but the problem is even in cygwin-windows it uses windows like paths (it's logical:

c:\apache22
/usr/local/apache22

I could not find anything about this dual-installation in google.
I was thinking to make a small script in newLisp to "publish" files (read windows files, replace shebang line and post in the site).

Can I use SSH and SFTP in newLisp?
--

Locked