ID:               18600
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Java related
 Operating System: Windows 2000
 PHP Version:      4.2.3
 New Comment:

THANKS TO [EMAIL PROTECTED] ,
The solution to resolve "Unable to Create Java Virtual
Machine" is to configure APACHE or IIS not using sapi for php but CGI

THANKS THANKS THANKS

go there for configuration
http://hotwired.lycos.com/webmonkey/00/44/index4a_page9.html?tw=programming


Previous Comments:
------------------------------------------------------------------------

[2002-12-12 09:19:13] [EMAIL PROTECTED]

Hi there,

I'm confirming Cédric's knowledge - java is running correctly from
within PHP on Apache only when PHP is running as a CGI and not as a
SAPI module. When running PHP as Apache SAPI Module after the restart
Apache only fist access to php page using java is running OK, all next
reloads of this page caused "Fatal error: Unable to create Java Virtual
Machine in ..."
I think this could be still not solved bug.

Thanks
Alberto

BTW I'm running on:
OS:Win2000 Server SP2
Apache:1.3.27
PHP Version 4.3.0-dev (Build Date  Dec 12 2002 10:14:28)
Java version=1.4.1_01 
Java vendor=Sun Microsystems Inc.

------------------------------------------------------------------------

[2002-12-06 05:06:27] [EMAIL PROTECTED]

Hi,

using "cgi-bin instead of as a module" 
hm,isn't this a performance and computer resources issue ?

Thx
Alberto

------------------------------------------------------------------------

[2002-12-05 15:15:35] [EMAIL PROTECTED]

I had the same bug but after having looking a lot, I find 
a solution. 
 
You just have to configure php as a cgi-bin instead of as 
a module and it works perfectly. 
 
Hoping it will help you to fix  the bug in the module. 
 
Cédric.

------------------------------------------------------------------------

[2002-12-04 08:44:52] [EMAIL PROTECTED]

Hi,

many thanks Sebastian for the response.

I've downloaded php4-win32-200212041130.zip from snaps.php.net, but
after PHP update Apache didn't start and configuration test detected
following problem:

Syntax error on line 174 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/PHP/sapi/php4apache2.dll into server: The specified
procedure could not be found.

httpd.conf has on the line 174:
LoadModule php4_module c:/php/sapi/php4apache2.dll

Question is what is the recomended version of Win32 Apache2 to work
corectly with latest PHP 4.4.x-dev?

Thank you,
Alberto

------------------------------------------------------------------------

[2002-12-04 06:20:14] [EMAIL PROTECTED]

I tried the php4-win32-STABLE-200212040930 snapshot, but I still got
problems with a simple java program (the one in the docs). After some
reloads I got a 

PHP has encountered an Access Violation at 77FCBEE8

After that:

Fatal error: Unable to create Java Virtual Machine in
c:\inetpub\wwwroot\estatisticos\admin\java.php on line 3


At least the problem occurs only to java applications, not all php
pages.

Nelio

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/18600

-- 
Edit this bug report at http://bugs.php.net/?id=18600&edit=1

Reply via email to