To configure a PHP application into your portlet definition, define an init param to hold the PHP start page. For example:
<init-param> <name>StartPage</name> <value>hosts/index.php</value> </init-param>