duanliaoyin3171 2019-05-30 07:39
浏览 130

无法使用Jboss和PHP加载环境变量路径

I am trying to use the Oracle connectivity by oci_connect function with JBoss (where Server API is CGI/FastCGI), I am unable to show environment variable over phpinfo() function with JBoss(where Server API is CGI/FastCGI), which is already working fine with PHP and Apache. Below are the parameters which are showing by jboss/(CGI/FastCGI), system environment variable PATH(which is needed to enable the oci8 module of php) and some other parameters are missing with JBoss.

CGI/FastCGI Environment
Variable    Value
PHP_FCGI_CHILDREN   5
PHP_FCGI_MAX_REQUESTS   10000
REDIRECT_STATUS 200
SystemRoot  C:\WINDOWS
__COMPAT_LAYER  ElevateCreateProcess

Apache Environment
HTTP_COOKIE csrftoken=5LL6M3KDqW6zbW947SUd5qKiDNYvkDiKtNTKO8kbAhiECWitdjdncL2ZRnQQyYVl; PHPSESSID=s2fcp7cbjijjc77i5g195koiil
PATH    C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\RSA SecurID Token Common........;

Can anyone provide the help/steps to display the environment variable with JBoss and CGI/FastCGI? FYI: I am using the window 10 environment.

  • 写回答

1条回答 默认 最新

  • dongou1970 2019-07-04 06:19
    关注

    As I verified the my Project.war file, which has been bundled the php-cgi.exe with php 5.6, here we had the wrong version of java.inc file which Compile The PHP/Java Bridge for PHP library. I changed my java.inc file then the issue have resolved, and now I can see the oci_connect module inside the phpinfo() So I realized that, I would have need to use correct java bridge file.

    OCI8 Module

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料