Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Building Apache PHP with java

Discussion in 'EasyApache' started by myBox, Jul 18, 2006.

  1. myBox

    myBox Active Member

    Jan 6, 2004
    Likes Received:
    Trophy Points:

    I am trying to setup apache PHP with java but I get errors

    the above are the errors reported from cpanel build apache.

    I already installed JAVA from sun and tested it and set the env variables JAVA_HOME etc..

    where can I start looking to trouble shoot this problem and what could be something I am doning wrong?

    java version
    java env variables
    Helpful articles I used:

    thanks in advance.
  2. myBox

    myBox Active Member

    Jan 6, 2004
    Likes Received:
    Trophy Points:
    I have rebuilt apache with verbous mode on

    I got this error:

    after that I disabled shell boom protection as suggested by some posts.

    tested and same problem.

    also did this:

    now rebooted and tested the rebuilding again

    but same result :(

    when running : java -version as root same as normal user

    I have also put this in /etc/rc.local

    still no luck!

    I did not install Tomcat or any jsp stuff.

    My main goal is to run java classes from php

    PHP compile params:
    rpm -qa | grep java =>
    any help would be appreciated.

    I am using latest cpanel 10 STABLE 120

    with CENTOS kernel

    Other helpful threads:
  3. AndyReed

    AndyReed Well-Known Member PartnerNOC

    May 29, 2004
    Likes Received:
    Trophy Points:
    Minneapolis, MN
    Integrating Java with Php is a very complex process. We did that for one of our clients last year and I am not sure if he still uses Java with Php. In any case here is one more Web site that might help:
    Now, if you are successful in integrating Java with php, you should see something like the following in your Phpinfo.php file:

    [B]Directive[/B]          [B]Local Value[/B]                    
    java.class.path          /usr/lib/php4/php_java.jar
    java.home               /usr/local/j2sdk1.3.1
    java.library              /usr/local/j2sdk1.3.1/jre/lib/ppc/classic/
    java.library.path      /usr/lib/php4
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #3 AndyReed, Jul 18, 2006
    Last edited: Jul 18, 2006

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice