Hi Kelvin, > I have configured httpd.config to point to my directories as follows > ScriptAlias /cgi-bin/ /home/kelvin/cgi-bin/ > <Directory /home/kelvin/cgi-bin> > Options +ExecCGI > AddHandler cgi-script cgi pl > </Directory> You do not need to add the +ExecCGI as ScriptAlias is the only directive that does not need the ExecCGI option, as it marks that directory as containing executable scripts. You also do not need the AddHandler as your script is in the cgi-bin the AddHandler is only needed when the script is to run from outside the cgi-bin directory. The AddHandler directive is declared elsewhere in httpd.conf and that is then system wide. If you do use the AddHandler, though, you need to add the "." to the extension: AddHandler cgi-script .cgi .pl
The directory spec should be in quotes: ScriptAlias /cgi-bin/ "/home/kelvin/cgi-bin/" > What happens when I run the html code and click send, is that instead of > running the perl script it attempts to open it. I have tried a number of > scripts and they all do the same. I am sure it is something simple but > it's got me beat. Have you given the script execute permissions? Next mail: > So I have tried the method below ie > <form action="/cgi-bin/myscript.cgi"> > and the server was unable to find the file? > I have tried commenting out the other alias which was pointing somewhere > else for the cgi-bin > I have removed the file associations with each pl/cgi file this then > brings up the open with dialog box There can only be one ScriptAlias for cgi-bin in Apache. If you want anymore then they can only be within VirtualHost directives. Have you reloaded/restarted httpd.conf after making any changes to it? As Apache only reads this file at Apache startup. To test if your Apache configuration has no problems stop Apache and then run: # httpd -t or with the Apache startup (httpd or apachectl etc) script with -configtest This will list any problems with httpd.conf and the line number. Also check the Apache error log as this will possibly give some pointer(s) to your specific problem. I have tested your script on my box running Apache and it is fine. Hth, Shaun --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.417 / Virus Database: 233 - Release Date: 08/11/2002 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]