Forum Moderators: phranque

Message Too Old, No Replies

apache cgi-bin windows

         

quali74

3:11 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



hello All,

I am trying to run a .exe file using cgi-bin. So far no success whatsoever.

Here is my config:

'Main' server configuration
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
AllowOverride none
Options -indexes +ExecCGI
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi

That's all.
I am trying to run a php script that calls a .exe via the passthru

Thks

sitz

1:56 am on Apr 21, 2005 (gmt 0)

10+ Year Member



What error (or other output) is displayed to the browser? What is logged to the error log?

quali74

11:24 am on Apr 21, 2005 (gmt 0)

10+ Year Member



I have been told I don't have to use cgi-bin to run .exe . I should be able to use an .exe if I add it to 'path' environment variable. Which I did. And I can now access the .exe without any pb.

However, I am getting unathorized access when I run it. Apparently I don't have the right credentials. This is all a bit beyond me since I started using apache 3 weeks ago.

the line of php I run is
passthru("htmldoc -t pdf --jpeg --webpage $options 'http://www.yahoo.com/index.html'");

In the error log, I get: ERR005: unable find 'http://www.yahoo.com/index.html'

help!