i am having strange problem.,
from command line cgi bash scripts and cgi perl scripts are working, but from browser only cgi bash scripts are working and not the cgi perl.
after accessing cgi perl scripts from browser i get 500 Internal server error.
and apache error log says
[Thu Oct 25 01:58:59 2012] [error] [client x.x.x.x] (13)Permission denied: exec of '/home/x/x/x/x/public_html/cgi-bin/test.cgi' failed
[Thu Oct 25 01:58:59 2012] [error] [client x.x.x.x] Premature end of script headers: test.cgi
i want to run cgi perl scripts from browser .
how do i do it.
[root@www ~]# which perl
/usr/bin/perl
[root@www cgi-bin]# perl test.cgi
Content-type: text/plain
testing...
source of test.cgi
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "testing...\n";
Thanks for your time.
its a dedicated server with apache 2.