Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any success with Dephi CGI on Apache? 1

Status
Not open for further replies.

JimBlock

Programmer
Oct 5, 2005
2
CA
Hi All,
Has anyone had any success running Delphi CGI's on Apache?

I developed a very simple "HelloWorld" test CGI in Delphi 5 which runs fine on IIS but under Apache 2.0 (Windows XP), it causes an exception on the server.

I added the following to httpd.conf:

AddHandler cgi-script .exe

ScriptAlias /code/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

This didn't work so I tried this
Alias /code/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

Has anyone had any success getting Delphi WinCGI's working under Apache 2.0?
 
I post this conclusion in the hope that it may help someone else struggling with this problem.

A Win-CGI program written in Delphi will not work under Apache - that I can find; however, if you recompile the CGI as a straight CGI application for some reason it works

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top