Oleg wrote:
> Anyone got Oleg Kobchenko's JHP working on Windows using Apache rather than
IIS?
>
> Please post a how-to!
There are a few possibilities:
- url rewrite to IIS serving from a different port
- use pattern for UNIX with a cmd script instead of bash
- use cygwin for bash script
Are there any particular problems or questions?
All working now, using Apache 2.2.4.
My J601 installed to C:\Jsoftware
JHP examples moved to C:\Jsoftware\jhp
I've made the Jsoftware directory browsable by Apache for now.
FYI Configs:
**************
1. Cygwin installed.
2. Apache:
Alias /Jsoftware "C:/Jsoftware"
<Directory "C:/Jsoftware">
Options Includes Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
3. and in C:\Jsoftware\jhp\.htaccess :
RewriteEngine on
RewriteBase /jhp/
RewriteRule .*\.jhp /cgi-bin/jhp.sh
4. jhp.sh in apache cgi-bin directory: (saved in Unix file format not DOS!!)
#!C:/cygwin/bin/sh
export PATH_TRANSLATED=`echo $SCRIPT_URL | sed -e 's|^/|C:/|'`
export J_PATH=C:/Jsoftware
$J_PATH/jconsole.exe C:/Jsoftware/addons/web/jhp/run.ijs $*
5. Browse to http://localhost/Jsoftware/jhp for testing
The main issue I had to debug was making the jhp.sh file Unix format
as in DOS format Cygwin adds a <CR> to the exports.
This is easy if you create the file from cygwin or use Notepad++ as an
editor and save in Unix format.
Oleg: Feel free to add the above to your doco for JHP.
--
Regards, Kym Farnik
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.farnik.com Trivia: My 1st Computer
http://en.wikipedia.org/wiki/IBM_1130
Phone: +61 8 8265 5324
Mobile: 0438 014 007
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm