www.grootersnet.nl

PHP


PHP - the acronym has different meanings - is a scripting language very widely used on the web for creating dynamic content. It's not very complex, is not compiled in whatever form. So the execution of a PHP program requires an interpreter, making it quite inefficient.

As so many Web-based developments, it's base is Unix, but it has been ported to VMS by several people and organizations, including HP. They bundled it with SWS, and this is the package that WASD is using. 

First, get the WASD PHP kit from the WASD site - again, the latest version - and locate the zip on HT_ROOT:[000000] Unzipping the file will create a PHP-tree in the [.SRC] directory. It contains a file named ReadMore.html that contains some installation hints (Why this is a HTML file and nut a plain ASCII one !!)

Next, get the HP PHP package, be sure to get the latest one (and all patches) from HP's SWS site, and install it on HR_ROOT:[PHP] - this is the easiest way. Under SWS, it's installed that way (under APACHE$COMMON) be default. 

Next, run the isntallation procedure:

$ @HT_ROOT:[SRC.PHP]INSTALL kit:[location]

kit:[lolcation] is where you installed the PHP kit: HT_ROOT:[PHP] if you followed the recommendation.

(It may complain about PHP$ROOT?

This helps

$ DEFINE/TRANSLATION=CONCEALED PHP$ROOT HT_ROOT:[PHP.]

The following activity is to define the configuration of WASD and PHP - the installation guide gives the right hints. As I found out, but this seems to work:

# PHP
set /**.php* script=query=relaxed
set /**.php script=query=relaxed ods=5
exec /php-bin/* (@cgi-bin:[000000]phpwasd.com)/cgi-bin/* script=query=relaxed

Bat as all mapping, the location is critical. Be sure to have these lines are places before the standard scripting rule

exec /cgi-bin/* /cgi-bin/*

or mapping will fail.

After that, don't forget to restart the server. After that, you can try to access the test scripts.

In case of problems: use WATCH. That's how I found out that the location of the PHP-location mapping had to be where I put them finally... 

Trouble with PHPMySQL


Back to HowTo

Back to OpenVMS

Back home


(c) 2003- 2007 W. Grooters    Last updated 01-01-2008