Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Tomcat personnal php webapp

  1. #1
    dzed is offline Intermediate Member
    Join Date
    Mar 2006
    Posts
    19
    Rep Power
    9

    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 02:29 AM.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,492
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    dzed is offline Intermediate Member
    Join Date
    Mar 2006
    Posts
    19
    Rep Power
    9

    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]

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,492
    Rep Power
    56

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    dzed is offline Intermediate Member
    Join Date
    Mar 2006
    Posts
    19
    Rep Power
    9

    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.

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,492
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    dzed is offline Intermediate Member
    Join Date
    Mar 2006
    Posts
    19
    Rep Power
    9

    Default

    Same problem as if i change the port apache listen on

  8. #8
    dzed is offline Intermediate Member
    Join Date
    Mar 2006
    Posts
    19
    Rep Power
    9

    Default

    But i m going to try it just in case (if the port is not rewrite by mod_proxy)

  9. #9
    dzed is offline Intermediate Member
    Join Date
    Mar 2006
    Posts
    19
    Rep Power
    9

    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

  10. #10
    dzed is offline Intermediate Member
    Join Date
    Mar 2006
    Posts
    19
    Rep Power
    9

    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.

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Running tomcat after installation(solved)
    By mildred in forum Installation
    Replies: 0
    Last Post: 04-23-2007, 08:26 AM
  2. tomcat not running / postfix/postqueue errors
    By seravitae in forum Installation
    Replies: 7
    Last Post: 03-10-2007, 08:18 PM
  3. tomcat - macosx install - please help
    By gmsmith in forum Installation
    Replies: 3
    Last Post: 04-19-2006, 12:30 PM
  4. Replies: 2
    Last Post: 03-10-2006, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •