HOw to configure Apache for Windows e Linux

Started by ale870, March 07, 2009, 09:42:00 AM

Previous topic - Next topic

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">http://nearlyfreespeech.com)



Thank you foro your help!
--

cormullion

#1
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

#2
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?
--