Hi,
I'm running apache on Linux Mandrake 9.1. One thing I don't understand - I'm trying to run cgi-scripts (mainly a statistics one). First off, what permissions should the cgi-bin folder have? What permissions should the cgi-scripts have? Who should own them, apache or root?
Apparently the system writes the apaches log files in /var/log/httpd - root owns them, and by default, only root can read or write them. So I'm assuming that my cgi-script, that will read them, has to be root, correct?
Any clarifications on this would be great. Another quick question - why sometimes do I need to give files the execute permission just to be read? Sometimes I can't get a program to do a simple read of a file until I give it execute perms.
Thanks, that's a lot to chew.
-Ryan
I'm running apache on Linux Mandrake 9.1. One thing I don't understand - I'm trying to run cgi-scripts (mainly a statistics one). First off, what permissions should the cgi-bin folder have? What permissions should the cgi-scripts have? Who should own them, apache or root?
Apparently the system writes the apaches log files in /var/log/httpd - root owns them, and by default, only root can read or write them. So I'm assuming that my cgi-script, that will read them, has to be root, correct?
Any clarifications on this would be great. Another quick question - why sometimes do I need to give files the execute permission just to be read? Sometimes I can't get a program to do a simple read of a file until I give it execute perms.
Thanks, that's a lot to chew.
-Ryan