LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2007, 06:01 AM   #1
sathiiish
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
Running PHP in Tomcat


Hi Friends,
I want to run my php files using tomcat in fedora core system. Is it possible?
Please help me!......

I am using following versions:

OS : Fedora core 6
PHP : php 5
Tomcat : tomcat 5

Thanks in Advance,
P.Sathish kumar
 
Old 05-02-2007, 04:05 PM   #2
shambler
Member
 
Registered: Sep 2006
Location: Canada
Distribution: openSUSE 11.3, Xubuntu 10.10, Ubuntu 11.04
Posts: 53

Rep: Reputation: 23
To my (limited) knowledge, you cannot run php with Tomcat.

But you could run Apache with PHP, and Tomcat, at the same time on the same server. Remember that Tomcat/Java talks on port 8080 while Apache is on port 80 so their pages will not collide.

And nothing stops you from internally linking, or even redirecting page requests from one to the other.
 
Old 05-02-2007, 04:32 PM   #3
spaaarky21
Member
 
Registered: Jun 2004
Location: Omaha, NE
Distribution: Ubuntu 7, Fedora Core 4
Posts: 192

Rep: Reputation: 30
Quote:
Originally Posted by shambler
To my (limited) knowledge, you cannot run php with Tomcat.

But you could run Apache with PHP, and Tomcat, at the same time on the same server. Remember that Tomcat/Java talks on port 8080 while Apache is on port 80 so their pages will not collide.

And nothing stops you from internally linking, or even redirecting page requests from one to the other.
Unless you are developing two completely separate sites, using multiple ports and linking between the two doesn't exactly sound good. Like you said, you can use both the PHP and Tomcat bridges for Apache but I would recommend finding a different way to send requests to the two different handlers. If I recall correctly, you should be able to map certain URL's to certain handlers. For example, anything ending in .php goes to PHP. That way there won't be a conflict over ports. I have even heard of people chaining them together, using Java webapps to generate pages with PHP tags that PHP then takes care of. Not sure about the details of that one though. I think I saw it on LQ though if anyone wants to search for it.

-Brandon
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding PHP and Tomcat................. chillyroll Linux - Software 1 11-22-2006 12:36 PM
How to configure PHP on Tomcat? chillyroll Linux - Software 3 10-31-2006 03:55 PM
PHP 5 with Tomcat 5.x is it possible ? dimsh Linux - Software 0 01-18-2006 05:07 AM
apache + php + tomcat berrance Linux - Software 1 08-08-2005 07:33 AM
tomcat with apache +php gigya Linux - Software 2 01-30-2004 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration