GroundWork Open Source Solutions, Inc.
2200 Powell Street Ste. 350 Emeryville CA 94608 · Email: [email protected] | Tel: (866) 899-4342

GroundWork Resources

Portlet Applications (JSR168)

Overview

In support of the Apache Jetspeed project, GroundWork has developed PHP application portlet resources available for download below. The source code is also part of the Jetspeed-2 Web Portal project. For building customized versions of the portlet applications, you will need a build environment for Jetspeed-2.

PHP Application Framework Portlet (source, binary)

The PHP portlet enables developers to run PHP applications within JSR168 compliant portal frameworks. The PHP demo portlet includes a simple PHP database application. For more information or assistance for developing custom PHP portlets using the PHP Application Framework Portlet please contact GroundWork Developer Support.

PHP Setup

The following document describes how to install and configure your php-Applications.

System Requirements

The PHP library needs to be in the path of the servlet container so that it can get invoked from the portlet. The library is platform specific. Download the library from the PHP site or from the links below.

Resources

  • Linux: libphp4.so
  • Windows: php4ts.dll & phpsrvlt.dll
  • Servlet interface between PHP libraries and portlets. The package is automatically downloaded to the "maven/repository/itgroundwork/jars" directory during the build. phportlet.jar

PHP Setup

  • Linux: Download libphp4.so and add the directory containing the library to the environment var LD_LIBRARY_PATH.
  • Windows: Download php4ts.dll and phpsrvlt.dll and add the directory containing the libraries to the PATH.

Running the PHP Demo Application

The PHP portlet application has been tested with Jetspeed-2. To run the portlet in Jetspeed-2, proceed with the following two steps:

  • Copy the downloaded php.war into the jetspeed/deploy folder. The framework will deploy the application automatically.
  • Add the PHP-demo to a page inside jetspeed. The demo application should show up if the php libraries have been configured correctly.

Perl Portlet (source, binary)

The perl portlet application enables developers to run perl scripts (cgi, perl) within JSR168 compliant portal frameworks. The perl portlet requires that a perl engine is installed on the server and that the cgi and perl scripts include a reference to the perl executable.

For more information or assistance for developing custom Perl portlets please contact GroundWork Developer Support.