From: <php...@li...> - 2014-06-19 10:55:02
|
Hi, Once you have installed your new version of php you can setup php-cgi to work with php-bridge in 3 ways: 1/ put the php-cgi binary inside WEB-INF/cgi/x86_64-mac/ 2/ OR setup your tomcat servlet configuration to use the default system php <servlet> <servlet-name>PhpCGIServlet</servlet-name> <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> <load-on-startup>0</load-on-startup> <init-param> <param-name>prefer_system_php_exec</param-name> <param-value>On</param-value> </init-param> <init-param> <param-name>php_include_java</param-name> <param-value>Off</param-value> </init-param> </servlet> 3/ OR setup your tomcat servlet configuration variable to point to the correct location (RECOMMANDED) <servlet> <servlet-name>PhpCGIServlet</servlet-name> <servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class> <load-on-startup>0</load-on-startup> <init-param> <param-name> php_exec </param-name> <param-value>/opt/php/bin/php-cgi</param-value> </init-param> <init-param> <param-name>php_include_java</param-name> <param-value>Off</param-value> </init-param> </servlet> Read more at: 1/ http://oceania.research.um.edu.mt/cms/settings.php 2/ http://php-java-bridge.sourceforge.net/doc/FAQ.html Regards, Numa Le 17 juin 2014 à 20:55, php...@li... a écrit : > Hi Numa, > > thank you for your answer, still have a question though. How do I have to configure the php-bridge to find php-cgi? In which folder? > > Thank you. > > Regards, > > Finoana > > Le 17 juin 2014 à 16:47, php...@li... a écrit : > >> Hi Finoana, >> >> You need to install a new version of php as the one on macosx doesn’t include php-cgi. >> You best option is to use this one: http://php-osx.liip.ch >> Follow the instruction and you will have a full php stack running including php-cgi. >> Then you need to configure php-bridge to find php-cgi. >> >> Regards, >> Numa >> >> >> Numa Schmeder www.dfacto.ch >> NU...@DF... | M +41 79 538 30 01 >> >> DIGITAL STRATEGY | DESIGN | DEVELOPMENT >> >> Le 17 juin 2014 à 14:33, php...@li... a écrit : >> >>> Hi everyone!!!! >>> >>> I would like to ask if someone has already installed php javabridge on tomcat on mac OS. My problem is that Tomcat is unable to find php on my computer. My question is to enable it and also how to configure php via shell to make it work on cgi and not cli. I have checked on all forums and tried many things but it doesn’t work. >>> >>> Thank you so much. >>> >>> Finoana >>> ------------------------------------------------------------------------------ >>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >>> Find What Matters Most in Your Big Data with HPCC Systems >>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration >>> http://p.sf.net/sfu/hpccsystems >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing & Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------------------------ > HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions > Find What Matters Most in Your Big Data with HPCC Systems > Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. > Leverages Graph Analysis for Fast Processing & Easy Data Exploration > http://p.sf.net/sfu/hpccsystems > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |