tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach ...@objektpark.de>
Subject Re: Facing while running PHP in Tomcat Container
Date Tue, 05 Feb 2008 08:15:08 GMT
HI,

has you setup your libs at shell env LD_LIBRARY_PATH variable?

Put following definition at your $CATALINA_HOME/bin/setenv.sh

#!/bin/sh
PHP_HOME=xxx
export LD_LIBRARY_PATH =$PHP_HOME/lib/libphp5servlet.so:$PHP_HOME/lib/ 
libphp5.so

Peter

Please, discuss those question at user list first!


Am 05.02.2008 um 07:01 schrieb puneetjain:

>
> Hi,
>
> I am trying to integrate PHP with tomcat server i.e. trying to  
> running PHP
> in servlet container.
>
> Environment:
> =========
> Operating System: RedHat Enterprize Linux 3
> Tomcat Version: 6
> PHP version: 5.2.5
> Java: 1.5
>
> Steps Performed:
> ============
> 1. Install the tomcat.
> 2. Install the php
> 3. Create a web project.
> 4. Place the php5servlet.jar in the WEB_INF/lib directory.
> 5. Add the below entry in my web.xml.
>
>      <?xml version="1.0" encoding="ISO-8859-1"?>
>      <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.3"
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="http:/java.sun.com/dtd/web-app_2_3.dtd">
>
>           <servlet>
> 	<servlet-name>php</servlet-name>
> 		<servlet-class>net.php.servlet</servlet-class>
>            </servlet>
> 	<servlet>
> 		<servlet-name>php-formatter</servlet-name>
> 		<servlet-class>net.php.formatter</servlet-class>
> 	</servlet>
> 	<servlet-mapping>
> 		<servlet-name>php</servlet-name>
> 		<url-pattern>*.php</url-pattern>
> 	</servlet-mapping>
> 	<servlet-mapping>
> 		<servlet-name>php-formatter</servlet-name>
> 		<url-pattern>*.phps</url-pattern>
> 	</servlet-mapping>
>       </web-app>
>
> 6. Create a war file and deployed on the tomcat.
>
> Exception:
> =======
> When I tried to deploy this war file it says that the  
> libphp5servlet.so and
> libphp5.so libraries are missing.
>
> I have tried these steps on Windows XP and used php5servlet.dll.  
> PHP is
> working on tomcat in windows.
>
> I am unable to find the procedure to create/get the  
> libphp5servlet.so and
> libphp5.so library to run PHP in Tomcat container in Linux  
> Environment.
>
> Please help me to resolve this problem.
>
> Thanks,
> Puneet
>
> -- 
> View this message in context: http://www.nabble.com/Facing-while- 
> running-PHP-in-Tomcat-Container-tp15283842p15283842.html
> Sent from the Tomcat - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message