considering that you have asked the question three seperate times in the past week, and no one has given you a specific answer, I venture a guess you are the first to try.
I did some quick leg work and it seems getting PHP to run on apache tomcat requires all kinds of patches. if you can get PHP to run on it, Drupal should run, Drupal needs PHP.
call your boss and tell him that he has somehow no plan of what he wants. don't know why anyone wants to do something like that if there are environments which run out of the box. but there must be the one who tries it first. good luck!
I would really put my efforts in convincing my boss to use a standard lampp environment.
You can go in the adventure with tomcat and drupal. I must admit that I'm really curious about results.
But, my suggestion is that you convince your boss to use xampp in production.
As I know, tomcat and apache can coexist smoothly on the same host.
In case of success with tomcat and drupal, you can write an article about it, and publish that article to the drupal.org :)
Based on the popular and very useful mod_rewrite for apache, UrlRewriteFilter is a Java Web Filter for any J2EE compliant web application server (such as Resin, Orion or Tomcat), which allows you to rewrite URLs before they get to your code. It is a very powerful tool just like Apache's mod_rewrite.
My understanding is that Drupal needs to run the .htaccess file to function correctly. On a Tomcat server this file is ignored so Drupal doesn't work properly.
Your web host may unmount this directory from Tomcat if you ask them. However, java applications will no longer work in that directory.
Drupal will work on Tomcat. I just installed D7-rc4 on Ubuntu 10.04 using Tomcat 6. The trick is to use the PHP/Java Bridge, and you can run any PHP app inside of Tomcat. Regarding the .htaccess file, Drupal does not require that file to run, however clean URL's will not be enabled and there might be some security issues with access to PHP files and user generated files. There is a WEB-INF/web.xml in the directory that the PHP/Java Bridge created file that seems to behave somewhat similar to .htaccess, although I have little experience with it and have to investigate further. More details will come in an upcoming blog post once I figure a couple more things out, and I will provide the link to the blog when it is published.
In regards to why someone would want to do this, using the PHP/Java Bridge gives direct access to the Java Virtual machine and allows you to do cool things like accessing Java classes natively through PHP. Therefore if you have existing Java apps in your organization, you can integrate more tightly with them with less server load. The site claims that using the PHP/Java Bridge is 50x faster than local RPC via SOAP and thus requires less server resources. For may case, I am looking at integrating with other apps deployed on Tomcat as well as writing an adapter for Search Lucene API that can interact directly with Java Lucene classes which are infinitely faster than the PHP port.
I am surprised noone in this thread mentioned Quercus, a Java implementation of the PHP language. It supports Drupal 6. As of this moment, it does not support Drupal 7. http://wiki.caucho.com/Quercus:_Drupal
--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
I think this is a new realm for the Drupal community as a whole (including myself), so I'm not surprised someone didn't mention it until you. I would also point people to your blog post at http://www.drupal4hu.com/node/261 as to some of the cool things that might be accomplished with Quercus and Java integrations in general. I think there are a couple of different ways to attack this, both having pluses and minuses, and would love to see some discussions on the group posted above or another.
Comments
PHP on JAVA ?!?
IMHO Tomcat is an applicationserver for JAVA ...
Do you really want to run PHP on JAVA?
Any more questions?
Cheers
Lex
marvic
do you think drupal will work in apache tomcat???? pls someone hepl me urgent
=-=
considering that you have asked the question three seperate times in the past week, and no one has given you a specific answer, I venture a guess you are the first to try.
I did some quick leg work and it seems getting PHP to run on apache tomcat requires all kinds of patches. if you can get PHP to run on it, Drupal should run, Drupal needs PHP.
I don't understand why would
I don't understand why would you do that, but if you wish, take a try Using PHP With Tomcat
I prefer proven solutions: LAMP (Linux, Apache, MySQL, PHP) or WAMP (Windows, Apache, MySQL, PHP)
my boss wants to
for me i want to use xampp but my boss wants to try if drupal will run using tomcat... pls bear with me! hehe! =)
call your boss and tell him
call your boss and tell him that he has somehow no plan of what he wants. don't know why anyone wants to do something like that if there are environments which run out of the box. but there must be the one who tries it first. good luck!
I would really put my efforts in convincing my boss to use a standard lampp environment.
You can go in the adventure
You can go in the adventure with tomcat and drupal. I must admit that I'm really curious about results.
But, my suggestion is that you convince your boss to use xampp in production.
As I know, tomcat and apache can coexist smoothly on the same host.
In case of success with tomcat and drupal, you can write an article about it, and publish that article to the drupal.org :)
can u suggest me...
a java application can use the Drupal ..... if not can u suggest me for other(open source CMS) which are compatible for the java application
Yes,Try to search on Google "Drupal + apachesolr + tomcat"
Yes,Try to search on Google "Drupal + apachesolr + tomcat"
instead of Apache mod_rewrite,an alternative: UrlRewriteFilter
Based on the popular and very useful mod_rewrite for apache, UrlRewriteFilter is a Java Web Filter for any J2EE compliant web application server (such as Resin, Orion or Tomcat), which allows you to rewrite URLs before they get to your code. It is a very powerful tool just like Apache's mod_rewrite.
http://code.google.com/p/urlrewritefilter/
My understanding is that
My understanding is that Drupal needs to run the .htaccess file to function correctly. On a Tomcat server this file is ignored so Drupal doesn't work properly.
Your web host may unmount this directory from Tomcat if you ask them. However, java applications will no longer work in that directory.
Drupal will work on Tomcat.
Drupal will work on Tomcat. I just installed D7-rc4 on Ubuntu 10.04 using Tomcat 6. The trick is to use the PHP/Java Bridge, and you can run any PHP app inside of Tomcat. Regarding the .htaccess file, Drupal does not require that file to run, however clean URL's will not be enabled and there might be some security issues with access to PHP files and user generated files. There is a WEB-INF/web.xml in the directory that the PHP/Java Bridge created file that seems to behave somewhat similar to .htaccess, although I have little experience with it and have to investigate further. More details will come in an upcoming blog post once I figure a couple more things out, and I will provide the link to the blog when it is published.
In regards to why someone would want to do this, using the PHP/Java Bridge gives direct access to the Java Virtual machine and allows you to do cool things like accessing Java classes natively through PHP. Therefore if you have existing Java apps in your organization, you can integrate more tightly with them with less server load. The site claims that using the PHP/Java Bridge is 50x faster than local RPC via SOAP and thus requires less server resources. For may case, I am looking at integrating with other apps deployed on Tomcat as well as writing an adapter for Search Lucene API that can interact directly with Java Lucene classes which are infinitely faster than the PHP port.
Blog post and Drupal on Tomcat group
As a follow up, a blog has been posted at http://www.chrispliakas.com/content/playing-nicely-tomcat with instructions on how to run Drupal inside of Tomcat. A group has also been set up at http://groups.drupal.org/drupal-tomcat for further discussion on this topic.
~Chris
Quercus
I am surprised noone in this thread mentioned Quercus, a Java implementation of the PHP language. It supports Drupal 6. As of this moment, it does not support Drupal 7. http://wiki.caucho.com/Quercus:_Drupal
--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
I think this is a new realm
I think this is a new realm for the Drupal community as a whole (including myself), so I'm not surprised someone didn't mention it until you. I would also point people to your blog post at http://www.drupal4hu.com/node/261 as to some of the cool things that might be accomplished with Quercus and Java integrations in general. I think there are a couple of different ways to attack this, both having pluses and minuses, and would love to see some discussions on the group posted above or another.
~Chris