Page 1 of 1

Apache don't run my CGI

PostPosted: 09. July 2021 03:23
by lucianobs
Hi everyone!

I am new in web programming and, from my legacy of delphi, i decide to use CGI with Lazarus to develop my future projects. I have a Win10 Pro with Apache instaled and HTML pages go fine.
But i can't run the CGI's i write. I did a lot of changes in httpd.conf and ran them together and one by one, as follow, but always fail:
. uncomment scriptalias --> ScriptAlias /cgi-bin/ "D:/xampp/cgi-bin/"
. Uncomment lines with ExecCGI ---> Options Indexes FollowSymLinks Includes ExecCGI
. Uncomment LoadModules with CGI directives
. inserting in the </IfModule> section the following lines:
<Directory "D:/xampp/cgi-bin">
AllowOverride All
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>

I try to run my CGI's on D:\xampp\cgi-bin and then i try on d:\xampp\htdocs but the server always return the error 'script not found or unable to stat'.
I dont know what can i do more and i didn't found any help in internet after a lot of sites and how-to's i read.