From: <php...@li...> - 2016-02-03 10:26:04
|
I see (somewhere buried in the java code) File ini = new File(/_*cgiOsDir,*_/ "php-cgi.ini"); if (!ini.exists()) { byte[] data = (";; -*- mode: Scheme; tab-width:4 -*-\n;; A simple php.ini\n"+ ";; DO NOT EDIT THIS FILE!\n" + ";; Add your configuration files to the "+conf+" instead.\n"+ ";; PHP extensions go to "+ext+". Please see phpinfo() for ABI version details.\n"+ "extension_dir=\""+ext+"\"\n"+ "include_path=\""+pearDir+":/usr/share/pear:.\"\n").getBytes(); OutputStream out = new FileOutputStream (ini); So by default it should load a php.ini out of the same dir as your php-cgi. But it also seems that it must be named php-cgi.ini ??? Dunno, I have never much messed with Tomcat installation, I have mostly used the bridge to enable Java to php, not the other way around. php...@li... wrote: > Hi > > I've found a solution with the > -Dphp.java.bridge.php_exec=<PHP_PATH>\php-cgi[.exe] > given to the java machine when starting Tomcat > or > <param-name>php_exec</param-name> > <param-value><PHP_PATH\php-cgi.exe</param-value> > in the web.xml file of my app > > > Now my problem is to force my php-cgi to load the good php.ini file > > Jean > > 2016-02-03 10:37 GMT+01:00<php...@li...>: > > >> I speak under correction, but I think you can put a "php.ini" in your >> WEB-INF/cgi directory and specify the php path you need in that. >> >> include_path=".;\phpShared\pathToYouApp" >> >> php...@li... wrote: >> >>> Hi >>> >>> i'am using JavaBridge in a Tomcat7.0.62 to run a php application. >>> I want to specify the php path to use in my application >>> >>> I've a solution on linux but no solution on windows >>> On linux, i have created a shell wrapper (php-cgi.sh) >>> in WEB-INF/cgi/amd64-linux of my App >>> that execute the php i want >>> #!/bin/sh >>> exec /<MyPhpPath/bin/php-cgi "$@" >>> >>> but on windows .. no solution .. The only solution is to copy the entire >>> php distrib >>> under the cgi/amd64-windows ;-( >>> >>> It seems there are some parameters to configure java bridge >>> i've found parameter php.java.bridge.default_log_level >>> >>> Is there any parameter for JavaBridge to specify the php path to use ? >>> >>> something like >>> php.java.bridge.php_path or >>> php.java.bridge.php_path_home ? >>> >>> if not do you have another solution for windows ? >>> >>> Thanks >>> >>> Jean >>> >>> >> ------------------------------------------------------------------------------ >> >>> Site24x7 APM Insight: Get Deep Visibility into Application Performance >>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >>> Monitor end-to-end web transactions and take corrective actions now >>> Troubleshoot faster and improve end-user experience. Signup Now! >>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >>> >>> >>> >> ------------------------------------------------------------------------------ >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |