Menu

Tree [r476] / branches / Release-3-0-8 / php-java-bridge /
 History

HTTPS access


File Date Author Commit
 documentation 2006-04-23 jost2345 [r420] Release-3-0-8-1
 examples 2006-05-13 jost2345 [r434] Release-3-0-8-1
 php_java_lib 2005-12-08 jost2345 [r364] Release-3-0-2
 security 2006-04-23 jost2345 [r421] Release-3-0-8-1
 server 2006-05-15 jost2345 [r436] Release-3-0-8-1
 tests.m4 2006-02-03 jost2345 [r391] Release-3.0.7
 tests.mono+net 2005-09-07 jost2345 [r338] 2.0.8RC2 fixes PR1283148 and 1281189.
 tests.php4 2006-03-07 jost2345 [r403] back from the dead
 tests.php5 2006-05-13 jost2345 [r434] Release-3-0-8-1
 unsupported 2006-02-22 jost2345 [r396] Release-3.0.7a
 ABOUT.HTM 2006-05-13 jost2345 [r434] Release-3-0-8-1
 CREDITS 2006-01-04 jost2345 [r377] Release-3.0.5(pre)
 ChangeLog 2006-05-13 jost2345 [r434] Release-3-0-8-1
 INSTALL 2006-04-23 jost2345 [r420] Release-3-0-8-1
 INSTALL.J2EE 2006-04-23 jost2345 [r420] Release-3-0-8-1
 INSTALL.LINUX 2006-04-23 jost2345 [r420] Release-3-0-8-1
 INSTALL.MONO+NET 2005-09-07 jost2345 [r338] 2.0.8RC2 fixes PR1283148 and 1281189.
 INSTALL.WINDOWS 2006-04-23 jost2345 [r420] Release-3-0-8-1
 LICENSE 2004-10-18 jost2345 [r54] correct author
 Makefile.frag 2005-04-18 jost2345 [r201] PR1178795
 NEWS 2006-04-23 jost2345 [r420] Release-3-0-8-1
 PROTOCOL.TXT 2006-03-07 jost2345 [r399] Release-3.0.8pre2
 README 2006-05-13 jost2345 [r434] Release-3-0-8-1
 README.GNU_JAVA 2006-04-23 jost2345 [r420] Release-3-0-8-1
 README.MONO+NET 2006-04-23 jost2345 [r420] Release-3-0-8-1
 RPM-GPG-KEY 2006-04-23 jost2345 [r421] Release-3-0-8-1
 VERSION 2006-04-23 jost2345 [r420] Release-3-0-8-1
 bind.c 2006-05-13 jost2345 [r434] Release-3-0-8-1
 client.c 2006-05-13 jost2345 [r434] Release-3-0-8-1
 config.m4 2006-04-23 jost2345 [r420] Release-3-0-8-1
 init_cfg.c.in 2006-05-15 jost2345 [r436] Release-3-0-8-1
 init_cfg.h.in 2006-01-08 jost2345 [r378] Release-3.0.5
 install.sh 2006-05-13 jost2345 [r434] Release-3-0-8-1
 java-servlet.ini 2006-05-15 jost2345 [r436] Release-3-0-8-1
 java-standalone.ini 2006-05-15 jost2345 [r436] Release-3-0-8-1
 java.c 2006-04-23 jost2345 [r420] Release-3-0-8-1
 java.ini 2006-05-15 jost2345 [r436] Release-3-0-8-1
 java_bridge.c 2006-05-15 jost2345 [r436] Release-3-0-8-1
 java_bridge.h 2006-03-12 jost2345 [r407] Release-3.0.8pre2
 mono.ini 2006-02-03 jost2345 [r391] Release-3.0.7
 parser.c 2005-12-18 jost2345 [r371] Release-3.0.3
 parser.h 2005-11-26 jost2345 [r363] Version-3.0.0pre1
 php-java-bridge 2006-03-11 jost2345 [r406] Release-3.0.8pre2
 php-java-bridge-tomcat.te 2006-02-03 jost2345 [r391] Release-3.0.7
 php-java-bridge.fc.in 2005-02-03 jost2345 [r135] Release-1.0.8
 php-java-bridge.service 2006-03-11 jost2345 [r406] Release-3.0.8pre2
 php-java-bridge.spec 2006-04-23 jost2345 [r420] Release-3-0-8-1
 php-java-bridge.te 2005-09-13 jost2345 [r339] 2.0.8RC3 fixes PR1283154 and 1286139 and 128802...
 php_java.h 2006-05-13 jost2345 [r434] Release-3-0-8-1
 php_java_snprintf.c 2005-09-13 jost2345 [r339] 2.0.8RC3 fixes PR1283154 and 1286139 and 128802...
 php_java_snprintf.h 2005-11-26 jost2345 [r363] Version-3.0.0pre1
 php_java_strtod.c 2005-09-01 jost2345 [r336] 2.0.8RC1 fixes PR1276889, 1275899, 1274526, 120...
 php_java_strtod.h 2005-11-26 jost2345 [r363] Version-3.0.0pre1
 php_wrapper.h 2005-11-26 jost2345 [r363] Version-3.0.0pre1
 protocol.c 2006-05-13 jost2345 [r434] Release-3-0-8-1
 protocol.h 2006-05-13 jost2345 [r434] Release-3-0-8-1
 test.php 2006-03-16 jost2345 [r408] Release-3.0.8test1
 test.php4 2006-03-16 jost2345 [r408] Release-3.0.8test1
 tomcat-jsf.jpg 2006-03-07 jost2345 [r402] *** empty log message ***
 update-about.sh 2005-05-09 jost2345 [r250] documentation update
 update_policy.sh.in 2006-02-03 jost2345 [r391] Release-3.0.7

Read Me

Build and execution instructions:
---------------------------------
  NOTE: If you have Security Enhanced Linux, you must update the policy
  and tag the files with the correct SEL contexts, please see below, or 
  please install the binary RPM instead.

  Install mono 1.1.8 or above. Install the IKVM.GNU.Classpath.dll and
  IKVM.Runtime.dll. Install ikvmc.exe from the IKVM project:
  http://www.ikvm.net.

  In the directory php-java-bridge-p.x.y type:

          mono --version       # 1.0.6 or above.
          gcj --version        # 3.2.3 or above.
          apachectl -version   # Apache 1.3 or above.
          php-config --version # PHP 4.3.2 or above.
          make null --version  # GNU make 3.79 or above

          phpize && 
          ./configure --with-mono=/usr/bin/ikvmc.exe \
                      --disable-servlet &&
          make &&
          su -c "make install"

  If your administrator allows you to dynamically load extensions, you
  can now test the extension by invoking the test.php with the 
  command: php ./tests.mono+net/test.php.

  Please see the output of ./configure --help=recursive for further
  configure options.

------------------------------------
   Permanently activate the module
   -------------------------------

  To permanently activate the extension for all users please add the
  following lines to the php.ini or add a file java.ini to the
  directory that contains the PHP module descriptions (usually
  /etc/php.d/) with the following content:

          extension = mono.so
          [mono]
          mono.log_level="3"
          mono.log_file="/var/log/php-mono-bridge.log"
          mono.socketname="9167"

  Re-start the web server, for example with the command:

          apachectl restart


  OPTION 1: You can use local sockets to connect to a local back-end. 
  Copy the executable php-mono-bridge to /usr/sbin, make it executable 
  with the command "chmod +x /usr/sbin/php-mono-bridge" and start it:

          /usr/sbin/php-mono-bridge

  This option can be used if "Security Enhanced Linux" is switched on.


  OPTION 2: You can start the bridge as a sub-process of apache. Disable
  mono.socketname, and mono.hosts. For example:

          extension = java.so
          [java]
          java.log_level="3"
          java.log_file="/var/log/php-mono-bridge.log"

  Re-start apache and check if apache has started mono as a
  sub-process.  For example with the commands:

          apachectl restart
          pstree | fgrep httpd

  This option cannot be used if "Security Enhanced Linux" is switched
  on.


  Check the status:

          echo "<?php phpinfo()?>" | php | fgrep "mono status"

  Other configuration options which should have been set up by the
  configure script but which can be changed later are:

          mono.socketname= <local TCP communication channel >
          mono.hosts     = <add. bridge hosts e.g.: server1:9167;server2:9168>

  Please first look at the output of phpinfo() to see the original
  values.  

---------------------------------------------
  Starting the PHP/Mono Bridge automatically
  ------------------------------------------

  When the mono.socketname and mono.hosts options are not set, the web
  server will start or re-start the bridge automatically as a sub
  component when the HTTP service is started or re-started.

  However, when running the bridge in a production environment, it is
  recommended to start the PHP/Mono Bridge as a system service,
  independent of the web server. The script "php-mono-bridge.service"
  can be used on SysV based init systems to automatically start and stop
  the bridge as a system service.  Please see the RedHat RPM download
  for an example.

------------------------------------
  Mailing List
  ------------

  Please report bugs/problems to the mailing list:

    php-java-bridge-users@lists.sourceforge.net

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.