我们最终通过使用 Ubuntu 12.04LTS 解决了这个问题,我们希望分享解决方案以防万一对其他人有用。
1-我们按照这个过程安装了opengeo:link://suite.opengeo.org/docs/latest/installation/ubuntu/install.html
2-然后我们找到了这个博客:http ://www.thomasknierim.com/140/java/
3-我们使用 fcgi 选项安装了 apache,应用了这些文件中建议的配置:
a) 链接:2bits.com/articles/apache-fcgid-acceptable-performance-and-better-resource-utilization.html。在其他博客中也有类似的情况,所以我继续。
b) 链接:howtoforge.com/using-php5-fpm-with-apache2-on-ubuntu-12.04-lts
c)链接:通用网络解决方案.com/blog/2012/11/installing-apache-2-with-php-fastcgi-on-ubuntu-12-10.html
4- 我们按照此处的说明进行操作(链接:/php-java-bridge.sourceforge.net/pjb/download.php):
Use a graphical packet installer to install PHP. Or download JavaBridge.war, which contains an embedded PHP binary. (I suggest you try again with PHP standalone directly, NOT with JavaBridge.war file)
Download and install Java 6 or above. (/usr/lib/jvm/java-6-openjdk)
Download and install the original tomcat servlet engine. (/var/lib/tomcat6)
There must be JavaBridge.jar, php-servlet.jar and php-script.jar files in your /usr/share/tomcat6/lib
Double-check again /var/lib/tomcat6/conf/web.xml
Retart Tomcat server and check it is working now?
5-如果没有,问题可能与 jar.libraries 的权限有关。应该有tomcat6:tomcat6可以访问。每个部署都会调用这些库来自动创建一个包含 Java.inc 和 JavaProxy.php 的 Java 文件夹。