How to configure my Apache/1.3.4 to run CGI ?

How to configure my Apache/1.3.4(Unix)
Suse/6.0 in order to activate my CGI script.
I have written a JAVA CGI and I am trying to call it via a Script
I am getting this error from my httpd.error_log

my error ----------------->
/usr/lib/java/bin/java: /etc/rc.config:Permission denied
Premature end of script headers: /usr/local/httpd/cgi-bin/get.cgi
--------------------------->end of error

Neta :}

Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

TYoungConnect With a Mentor Commented:
You have to

chmod a+x /etc/rc.config

from a shell prompt. That will (should) take off the Permission Denied errors.

As for the premature end of script headers, that is a problem within the get.cgi script. You can e-mail it to me at and I can take a look at it for you, but it is hard to fix it, when you don't know what is wrong.

The chmod'ing the file might fix the "Premature end..." error, but if not.. like I said, let me know.
netaAuthor Commented:
Well you are right i have to chmod a+x /etc/rc.config

before you receive your points mybe you know why i can't receive parameters via the []args ?

All Courses

From novice to tech pro — start learning today.