Installation

JHP can be installed on any system that has a web server with CGI and for which there is a J version.

J should be installed in any folder such that jconsole can be run as CGI with necessary permissions.

JHP addon is placed into J addon folder. profile.ijs needs to be modified as shown in Configuration.

For UNIX platforms, a CGI wrapper jhp.sh needs to be placed into a CGI folder. Windows does not need a wrapper.

A web directory for running JHP pages, such as JHP samples, is created as any other content directory for the web server. Directory configuration will make it work with JHP.

General

Download jhp-x.yy.zip, unzip and place jhp folder into j601/addons/jhp.

Linux Example

Web site base location is /home/groups/mysite/ with URL http://mysite.server.com/. CGI folder is /home/groups/mysite/cgi-bin. Content folder is /home/groups/mysite/htdocs.

J installation
/home/groups/mysite/J601
JHP Addon and profile
/home/groups/mysite/J601/addons/jhp
/home/groups/mysite/J601/profile.ijs
CGI wrapper
/home/groups/mysite/cgi-bin/jhp.sh
Content Directory
/home/groups/mysite/htdocs/jhp/*.jhp

Mac Example

It is assumed that J is installed in /Users/user/j601 (or other version in place of 601). There is a user's personal web site http://localhost/~user/ located at /Users/user/Sites.

Copy the contents of examples folder into /Users/user/Sites/jhp.

J installation
/Users/user/J601
JHP Addon and profile
/Users/user/J601/addons/jhp
/Users/user/J601/profile.ijs
CGI wrapper
/Users/user/J601/jhp.sh
Content Directory
/Users/user/Sites/jhp/*.jhp

Windows Example

Web site base location is d:\j601\ with URL http://mysite.server.com/jhp. No CGI necessary. Content folder is d:\j601\jhp.

J installation
d:\j601\
JHP Addon and profile
d:\j601\addons\jhp
d:\j601\profile.ijs
Content Directory
d:\j601\jhp\*.jhp