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
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
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.
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
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
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
Hi Stefano
I set up an Apache 2.4 / php on a windows machine and O4W is working for me.
This Posting in an Apache forum 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.
Oecgi3p.ini Mdofied for the correct serverurl, port, application, username and password
Set the server address, port, cgi options to include .exe, directory alias and cgi alias for O4W folder.
removed .exe as a type that would get a header of x-application/download
It's always in the details :)
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.dllcom.allow_dcom = trueBest,
Stefano
Stefano,
I am still interested in knowing why you are running the PHP version in a windows environment.
Thanks
Dsig