Announcement

Collapse
No announcement yet.

Need help on CGI and Apache2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can Le
    replied
    Thank Thomas

    I have this log/error:

    Internal error:
    [ 2006] [error] [client 127.0.0.1] (OS 5)Access is denied. : couldn't spawn child process: C:/Path.../Apache2.2/cgi-bin/HELLO1.EXE

    when I added to <Directory...:
    AddType text/html .html
    AddOutputFilter Includes .html .exe

    ------------------
    http://www.lecan.net

    Leave a comment:


  • Thomas Gohel
    replied

    On 06 Dec 06, Can Le wrote:

    Hello Can,

    > On PB/CC and CGI-BIN, can you show me or put a link on
    > How To configure httpd.conf to run cgi with an EXE file?

    It's very simple with the Apache webserver:

    Code:
    ScriptAlias /cgi-bin/ "<dir>/cgi-bin/"
    
    #
    #
    <Directory "<dir>/cgi-bin">
        AllowOverride None
        Options Includes ExecCGI
            AddType text/html .html
            AddOutputFilter Includes .html .exe
            # AddHandler server-parsed .shtml .html .exe .cgi
            # AddHandler cgi-script .cgi .pl .exe
        Order allow, deny
        Allow from all
    </Directory>
    Regards,

    --------------
    / h o m a s
    ------------------
    email : [email protected] / [email protected] (PGP-Key available)
    www : http://www.gohel.de / http://www.pbhq.com (PowerBASIC)
    chat : irc://irc.pbhq.de/#pbhq.cafe (Online-Chat for PB users only!)
    ## XPAgent/3.69p (Windows; Windows NT 5.0; de) UKAW/3.69p PBNEWS/0.70g (news.pbhq.de)

    Leave a comment:


  • Can Le
    replied
    Hi Thomas,

    I have had application from PB 3.5 DOS, but I could not
    get it print on USB port. So I bought PB CC.

    On PB/CC and CGI-BIN, can you show me or put a link on
    How To configure httpd.conf to run cgi with an EXE file?

    Thank you

    ------------------
    http://www.lecan.net

    Leave a comment:


  • Thomas Gohel
    replied

    On 05 Dec 06, Can Le wrote:

    Hello Can,

    > I need to run Hello.exe from PB DOS 3.5 on Apache2 CGI

    Should be compiled with PB/CC, not DOS.

    Regards,

    --------------
    / h o m a s
    ------------------
    email : [email protected] / [email protected] (PGP-Key available)
    www : http://www.gohel.de / http://www.pbhq.com (PowerBASIC)
    chat : irc://irc.pbhq.de/#pbhq.cafe (Online-Chat for PB users only!)
    ## XPAgent/3.69p (Windows; Windows NT 5.0; de) UKAW/3.69p PBNEWS/0.70g (news.pbhq.de)

    Leave a comment:


  • Can Le
    started a topic Need help on CGI and Apache2

    Need help on CGI and Apache2

    I need to run Hello.exe from PB DOS 3.5 on Apache2 CGI and Windows XP Home.
    for a host server to be opened by any browser.

    I have 2 errors when I put file Hello.exe in CGI-BIN:

    error 1 code 500: [2006] [error] [client 123.2.3.4] (OS 5)Access is denied. :
    couldn't spawn child process: C:/..../Apache2/.../cgi-bin/HELLO.EXE

    error 2: [ 2006] [error] [client 123.2.3.4] client denied by server configuration:
    C:/.../..../Apache2.2/..../favicon.ico

    Please help.



    ------------------
    http://www.lecan.net
Working...
X