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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DELPHI, CGI, APACHE

Status
Not open for further replies.

serkanb

Programmer
Jan 30, 2002
19
0
0
TR
Hi everybody!
I've written a simple "Hello world!" CGI application with
Delphi 6. Then I've coppied it Apache's /cgi-bin directory.

When I try to run CGI aplication from Internet Explorer
an error message occure. For example:


Internal Server Error.

This error seems in Error Log file like this:

(2)No such file or directory: couldn't spawn child process: c:/program files/apache group/apache/cgi-bin/hello.dll


I've added the lines below in to httpd.conf:
{

ServerRoot "C:/Program Files/Apache Group/Apache"

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"

<Directory &quot;C:/Program Files/Apache Group/Apache/cgi-bin&quot;>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

AddHandler cgi-script .cgi .dll .pl .exe
}
But it didn't work. There is something wrong here...
Could you please help me?
Thanks...

ps: I've tried it with ISAPI dll application and CGI executable application. But none of them didn't work.
 
is there &quot;print 'Content-type: text/html\n\n';&quot; in the begining of your script?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top