You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lalit Batra <ba...@gmail.com> on 2005/09/28 20:41:11 UTC

PHP / JSP on Tomcat.

Hi!
Is it a good Idea to have PHP enabled on tomcat ? As Tomcat is for Java/JSP.
Sorry if the question is very basic. I am not too sure if running PHP
is a good option on Tomcat.


thanks,
Lalit

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


Re: Virtual hosts and Threads

Posted by Mark Thomas <ma...@apache.org>.
When starting a new thread (ie sending a message to the list about a 
new topic) please do not reply to an existing message and change the 
subject line. To many of the list archiving services and mail clients 
used by list subscribers this  makes your new message appear as part 
of the old thread. This makes it harder for other users to find 
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned 
upon on this list. Frequent offenders will be removed from the list.

The correct procedure is to create a new message with a new subject. 
This will start a new thread.

Mark
tomcat-user-owner

Mahesh S Kudva wrote:
> Hi All
> 
> I have setup virtual hosts for 3 apps with virtual hosts config as 
> follows. These virtual hosts are first handled by Apache and mod_jk. My 
> apps have scheduler and automated mailing services.
> 
> <Host name="vhost.domain.com" debug="0" appBase=”deploy” 
> unpackWARs="true">
>         <Alias>www.vhost.domain.com</Alias>
>         <Logger className="org.apache.catalina.logger.FileLogger"
>             directory="${jboss.server.home.dir}/log" prefix="vhost_log1." 
> suffix=".log" timestamp="true"/>
>          <Context path="" 
> docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" 
> reloadable="true"/>
>  </Host>
> 
> This config is mailing the same mail 7 time. Further I noticed that there 
> were 7 service started of the same kind. Querying the developer, he said 
> that he had coded the apps to have the mail sent once every week. The 
> mails are sent once every week but as said 7 copies of the same mail is 
> delivered.
> 
> The request for the app results in page not found if I follow the 
> following config, even thought there is no error in startup.
> 
> <Context path="application" 
> docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" 
> reloadable="true"/>
> 
> 
> 
> Can you guys have any idea on this and help me troubleshoot ???
> 
> 
> Regards & Thanks
> ================
> Mahesh S Kudva
> 
> 
> -------------------------------------------------------
> Robosoft Technologies - Partners in Product Development
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 




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


Virtual hosts and Threads

Posted by Mahesh S Kudva <ma...@robosoftin.com>.
Hi All

I have setup virtual hosts for 3 apps with virtual hosts config as 
follows. These virtual hosts are first handled by Apache and mod_jk. My 
apps have scheduler and automated mailing services.

<Host name="vhost.domain.com" debug="0" appBase=”deploy” 
unpackWARs="true">
        <Alias>www.vhost.domain.com</Alias>
        <Logger className="org.apache.catalina.logger.FileLogger"
            directory="${jboss.server.home.dir}/log" prefix="vhost_log1." 
suffix=".log" timestamp="true"/>
         <Context path="" 
docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" 
reloadable="true"/>
 </Host>

This config is mailing the same mail 7 time. Further I noticed that there 
were 7 service started of the same kind. Querying the developer, he said 
that he had coded the apps to have the mail sent once every week. The 
mails are sent once every week but as said 7 copies of the same mail is 
delivered.

The request for the app results in page not found if I follow the 
following config, even thought there is no error in startup.

<Context path="application" 
docBase="${jboss.server.home.dir}/deploy/application.war" debug="0" 
reloadable="true"/>



Can you guys have any idea on this and help me troubleshoot ???


Regards & Thanks
================
Mahesh S Kudva


-------------------------------------------------------
Robosoft Technologies - Partners in Product Development


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


Re: PHP / JSP on Tomcat.

Posted by Hassan Schroeder <ha...@webtuitive.com>.
Lalit Batra wrote:

> Is it a good Idea to have PHP enabled on tomcat ? 

In my limited experience using the PHP4 servlet, some errors cause
the whole JVM process to exit, so "good idea" depends on how badly
you want to run PHP applications  :-)

Personally, I just run Apache on a different IP "alongside" Tomcat
to handle the occasional LAMP-stack job...

YMMV!
-- 
Hassan Schroeder ----------------------------- hassan@webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.



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