{{tag>category:"OpenInsight 32-bit" author:"Stefano Cavaglieri" author:"dsigafoos" author:"bshumsky" author:"Bob Carten"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== OECGI3P.PHP (OpenInsight 32-bit) ==== === At 03 MAY 2013 05:27:45AM Stefano Cavaglieri wrote: === I can't find any documentation about setting up an Apache server running on Windows for using OECGI3P.PHP instead of its exe equivalent. If I try to run it, I get the following list of error messages: RegistryInfo=DEFAULT Warning: pfsockopen() expects parameter 2 to be long, string given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 219 Warning: stream_set_blocking() expects parameter 1 to be resource, boolean given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 242 Warning: fwrite() expects parameter 1 to be resource, boolean given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 605 Warning: fread() expects parameter 1 to be resource, boolean given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 617 Warning: fwrite() expects parameter 1 to be resource, boolean given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 605 Warning: fread() expects parameter 1 to be resource, boolean given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 617 Warning: fwrite() expects parameter 1 to be resource, boolean given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 605 Warning: fread() expects parameter 1 to be resource, boolean given in C:\RevSoft\OInsight\O4W\OECGI3P.php on line 617 Many thanks in advance for any help. Best, Stefano ---- === At 03 MAY 2013 10:29AM dsigafoos wrote: === Is there a reason you aren't running the EXE on Apache? I just ask as I have recently set that up and it is working great ---- === At 03 MAY 2013 10:51AM Stefano Cavaglieri wrote: === I have been running the EXE for a long time as well and it always worked properly. Just wanted to test the PHP version to see if there's any (dis)advantage over the EXE version. ---- === At 03 MAY 2013 11:26AM dsigafoos wrote: === I will let Revelation answer this definitively .. until then :) I think in my conversations with Bryan or Bob lead me to believe that the php version is more for the linux/unix world .. DSig ---- === At 16 MAY 2013 02:40AM Stefano Cavaglieri wrote: === Haven't heard from you RTI guys. Does it mean it is not possible to call OECGI3P.PHP on a Windows server running Apache 2.2.n ??? Best, Stefano ---- === At 16 MAY 2013 07:20AM bshumsky wrote: === Haven't heard from you RTI guys. Does it mean it is not possible to call OECGI3P.PHP on a Windows server running Apache 2.2.n ??? Best, Stefano Hi, Stefano. The PHP script was indeed originally designed and tested to run on Linux Apache, but that doesn't mean it shouldn't (or won't) work on Windows as well. We'll do some testing and let you know what we find out. - Bryan Shumsky [url=http://www.revelation.com]Revelation Software, Inc.[/url] ---- === At 16 MAY 2013 04:16PM Bob Carten wrote: === Hi Stefano I set up an Apache 2.4 / php on a windows machine and O4W is working for me. This [url=http://forums.devshed.com/php-development-5/warning-ftp-login-expects-parameter-1-to-be-resource-boolean-221714.html]Posting in an Apache forum[/url] suggests that the OECGI3p.php is not connecting to the apache webserver. The posting also shows how RTI can improve the script so that the error message is clearer. To get it all working I needed to modify the oecgip.ini file in the o4w folder, the httpd.conf file in the apache\conf folder and the mime.types file in the apache.conf folder. A copy of the files I used is at the links below. I have not spent much time commenting them. Really this is a topic for a whitepaper. [url=https://docs.google.com/file/d/0B32cDbLL-miwY1RDVXZpT2k2bk0/edit?usp=sharing]Oecgi3p.ini[/url] Mdofied for the correct serverurl, port, application, username and password [url=https://docs.google.com/file/d/0B32cDbLL-miwM2NhZDcxZDctM2FkMC00OWY2LThjODgtNGQwZWFkMDVjNmUy/edit?usp=sharing]httpd.conf[/url] Set the server address, port, cgi options to include .exe, directory alias and cgi alias for O4W folder. [url=https://docs.google.com/file/d/0B32cDbLL-miwLTJscWc4cDktckE/edit?usp=sharing]mime.types[/url] removed .exe as a type that would get a header of x-application/download ---- === At 16 MAY 2013 05:39PM dsigafoos wrote: === It's always in the details :) ---- === At 17 MAY 2013 04:48AM Stefano Cavaglieri wrote: === Thank you so much! Your information helped me a lot, I eventually got it running properly. Just as an addition for those who are interested in running the PHP version of OECGI3 in a Windows/Apache environment: OECGI3P.PHP if you set the following, the script runs with no errors without requiring the ini file $USEINI = false; PHP.INI depending on the version of PHP you have installed, you may need to set extension_dir = C:\PHP\ext" extension=php_com_dotnet.dll com.allow_dcom = true Best, Stefano ---- === At 17 MAY 2013 07:59AM dsigafoos wrote: === Stefano, I am still interested in knowing why you are running the PHP version in a windows environment. Thanks Dsig [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=F7B1DA1D5CCFD686852E82987|View this thread on the Works forum...]]