php-install Digest 12 Apr 2002 23:35:30 -0000 Issue 788

Topics (messages 6634 through 6636):

PHP --with-java problem
        6634 by: Dmitri Zakharov

Problem..
        6635 by: sinapsis

Re: apache 2 install problems?
        6636 by: Andy Smith

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I am trying to configue PHP with Java support.
with PHP-4.1.2, JDK1.3.1_01

The installation goes smoothly. My php.ini file 
contains the follwing section for Java

<code>

[Java]
java.class.path = /usr/local/src/php-4.1.2/ext/java/php_java.jar
java.home = /usr/local/jdk1.3.1_01
java.library = /usr/local/jdk1.3.1_01/jre/lib/i386/server/libjvm.so
;java.library.path = .\
extension_dir = /usr/lib/php4
extension = libphp_java.so

</code>

phpinfo() function output shows me Java section OK.
BUT, when I run a simple example from 'ext/java/jver.php'
(available with PHP distribution), Netscape gives me an 
error box with a message:

"The document contained no data.
Try again later or contact the server's administrator."

Here's the code for jver.php I'm trying to run:

<html>
<head><title>test</title></head>
<body>
<h1>Java Test</h1>
<?
// ---- if this part is commented out ------- //
// ---- the scritp displays <h1>Java Test</h1>
  $system = new Java("java.lang.System");
  print "Java version=".$system->getProperty("java.version")." <br>\n";
  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
  print "OS=".$system->getProperty("os.name")." ".
              $system->getProperty("os.version")." on ".
              $system->getProperty("os.arch")." <br>\n";

  $formatter = new Java("java.text.SimpleDateFormat",
                        "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");

  print $formatter->format(new Java("java.util.Date"))."\n";
// ----------------------------------------- */

?>
<body>
</html>

Obviously, there's somthing still wrong with PHP/Java configuration
Anybody has the same problem? 

Any help is appreciated,
Thanks

-- 
zakd
--- End Message ---
--- Begin Message ---
Hello people..

I just downloaded the current version of php. tried to install it with the following 
command:

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-sysvsem --enable-sysvshm 
--enable-track-vars --enable-magic-quotes --enable-memory-limit --enable-ftp 
--with-mysql=/usr/local/mysql --with-xml --with-gdbm --with-ndbm --with-dbase 
--with-jpeg-dir=/usr/local --with-gd=/usr/local --with-png-dir=/usr/local 
--with-ttf=/usr/local --with-zlib-dir=/usr/local --enable-EAPI

but when I do # make, the following error appears:

ld: fatal: library -lssl: not found
ld: fatal: library -lcrypto: not found
ld: fatal: File processing errors. No output written to .libs/libphp4.so
make[1]: *** [libphp4.la] Error 1

any of you have an idea of how to fix this?

Thanks.

yung
--- End Message ---
--- Begin Message ---
On Wed, Apr 10, 2002 at 05:24:34PM +0100, Andy Smith wrote:
> On Wed, Apr 10, 2002 at 12:36:25AM +0100, Andy Smith wrote:
> 
> > php does appear to build and install OK, but once the AddModule and
> > LoadModule lines are added to httpd.conf, the server segfaults on
> > startup.  strace shows the following:
> 
> I've since tried this again with CVS apache 2 and CVS PHP and get
> the same behaviour.

I gather from lack of response that this currently isn't possible.
I'll check back in a few months.  Keep up the good work folks.

-- 
Amaze your friends and annoy your enemies:
echo '#define if(x) if (!(x))' >> /usr/include/stdio.h
  -- Niall Smart

Attachment: msg05427/pgp00000.pgp
Description: PGP signature

--- End Message ---

Reply via email to