Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-2006, 06:02 AM
Intermediate Member
 
Posts: 19
Default [SOLVED using Apache mod_proxy] Tomcat personnal php webapp

Hello,

I want to install a personnal webapp wrote in php4 in the tomcat installed by zimbra.
I have succesfully compiled php4 with java and servlet and moved the two resulting files in /opt/zimbra/tomcat/common/libs,
I ve also added support for php in /opt/zimbra/tomcat/conf/web.xml.
My problem is that i need a place to put my php file but I dont really know tomcat and I m getting an error that I have searched
on google and it says that my file are badly place (java did not find the php file when it tries to open it).

I have searched on the zimbra forum and I am currently searching again on zimbra and google but if you have a fast and easy answer/solution I really appreciate it.
(Or if you can point me to the right topic.)

When I find a good solution, I will post it here.

Last edited by dzed; 04-11-2006 at 03:29 AM..
Reply With Quote
  #2 (permalink)  
Old 04-10-2006, 06:05 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

You shouldn't really use the Zimbra Tomcat for anything other than Zimbra. It will certainly get overwritten on an upgrade and may also affect Zimbra performance and or functions if you're not careful. Is there no other option that you could use?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 04-10-2006, 07:10 AM
Intermediate Member
 
Posts: 19
Default

I did not have any other solution that s the problem ..

I have just one server with only one interface and I cannot bind the interface to have multiple address (it s a production server connected directly to the internet and accessible only form the internet).
I could put another apache webserver but the final user will not appreciate/understand the need of putting the port in the url.

So, the only solution is to add my webapp to the installed tomcat.
The upgrade procedure could be a real pain but it s nothing compared to all the complaints that I will receive from my end-user if I dont integrate my webapp in the zimbra tomcat.

[sorry for my probably bad english]
Reply With Quote
  #4 (permalink)  
Old 04-10-2006, 07:27 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

I'm no expert on Apache but would this solution do what you want?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 04-10-2006, 07:59 AM
Intermediate Member
 
Posts: 19
Default

In this topic, he has 2 servers on his lan.

I have only one server so if i try his config, the apache server or zimbra server will say "could not bind to port 80" because it will be already in use.
Reply With Quote
  #6 (permalink)  
Old 04-10-2006, 08:08 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by dzed
In this topic, he has 2 servers on his lan.

I have only one server so if i try his config, the apache server or zimbra server will say "could not bind to port 80" because it will be already in use.
Yes, but you could change the port that Zimbra listens on, couldn't you?
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 04-11-2006, 01:43 AM
Intermediate Member
 
Posts: 19
Default

Same problem as if i change the port apache listen on
Reply With Quote
  #8 (permalink)  
Old 04-11-2006, 01:44 AM
Intermediate Member
 
Posts: 19
Default

But i m going to try it just in case (if the port is not rewrite by mod_proxy)
Reply With Quote
  #9 (permalink)  
Old 04-11-2006, 02:41 AM
Intermediate Member
 
Posts: 19
Default

ok, i try that (using apache 1.3.xx) :

in /etc/apache/conf.d/vhosts.conf
Code:
NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin dz@mydom.com
    DocumentRoot /var/www/myweb
    ServerName myweb.mydom.com
    ErrorLog /var/log/apache/myweb-error.log
    CustomLog /var/log/apache/myweb-access.log common
</VirtualHost>

<VirtualHost *:80>
ServerName zimbra.mydom.com
ServerAdmin dz@mydom.com
ProxyPass / http://zimbra.mydom.com:81/
ProxyPassReverse / http://zimbra.mydom.com:81/
ErrorLog /var/log/apache/zimbra-error.log
CustomLog /var/log/apache/zimbra-access.log common
</VirtualHost>
I tried myweb.mydom.com, everythings fine
I tried to connect to zimbra.mydom.com :

Code:
An unknown application error has occurred.
Please correct any errors and retry.
If the problem persists, please contact your System
Aministrator. (service.FAILURE)
ok, no luck .. trying zimbra.mydom.com ... same error.
the apache proxy seems to work but zimbra appears to hate this
or maybe zimbra just fall (some service seems to be down), i dont know.

going to check logs brb
Reply With Quote
  #10 (permalink)  
Old 04-11-2006, 03:02 AM
Intermediate Member
 
Posts: 19
Default

/opt/zimbra/log/startup.log doesnt contain any error.

Ok my fault, editing conf files by hand is not a good way to use zimbra

almost working.

I have a redirection problem but this should be resolved soon.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.