Re: [users@httpd] simple newbie

2011-01-13 Thread Jack Andrews
hi joost, thanks for your help. this works for me now: --- /etc/apache2/sites-enabled/000-default.bak 2011-01-14 01:57:49.482223496 +1100 +++ /etc/apache2/sites-enabled/000-default 2011-01-14 01:59:11.190323876 +1100 @@ -7,7 +7,7 @@ AllowOverride None -

Re: [users@httpd] simple newbie

2011-01-13 Thread Jack Andrews
On Fri, Jan 14, 2011 at 1:13 AM, Joost de Heer wrote: > - Is there a special reason why you want to use .htaccess instead of > adding the directive to the central configuration? no, not really... so i tried adding: Options +ExecCGI AddHandler cgi-script .cgi to /etc/apache2/apache2.conf

Re: [users@httpd] simple newbie

2011-01-13 Thread Jack Andrews
hi eric, thanks for your reply. i added AddHandler cgi-script .cgi to my .htaccess file, but httpd still returns the contents of index.cgi (not the result) On Thu, Jan 13, 2011 at 11:41 PM, Eric Covener wrote: > > Options +ExecCGI > > > > Requires two directives: http://httpd.apache.org/docs/

[users@httpd] simple newbie

2011-01-13 Thread Jack Andrews
hi guys, a total newbie question. i have created a cgi script 'index.cgi' in /var/www: root@duo:/var/www# ls -l total 8 -rwxr-xr-x 1 root root 69 2011-01-13 23:09 index.cgi -rw-r--r-- 1 root root 177 2011-01-13 22:31 index.html and i've created a .htaccess: root@duo:/var/www# cat .htaccess Op