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

Thanks
Neta :}

netaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TYoungCommented:
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 tyoung@stny.rr.com 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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 ?



0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.