Koozali.org: home of the SME Server

running cgi files in domains

Bill

running cgi files in domains
« on: January 14, 2003, 10:37:47 AM »
Hi all
I appear to have a problem
I have an application program that is written in Perl.
I have loaded the files into the primary domain
the file requires the ability to write to a folder in /var/par
when running the cgi script it fails because it cant write to the /var/par folder.
If I run the file from the command line as root everything works ok.
I tried setting up an Ibay and virtual domain, enabled cgi scripts.
when I try to run the cgi script the web server responds with insufficient rights to view the script.
Can anyone shed some light on this as it is becoming an urgent problem

thanx in advance

Bill

Benny Andersen

Re: running cgi files in domains
« Reply #1 on: January 15, 2003, 03:25:40 AM »
Hi

I had the same problem in an earlier version and believe that we are not able to run cgi from the bin in the primary. I have never since tried and dont know wheather this has been changed i later releases.

Try creating another Ibay and run the cgi from there. if it fails as well then check to see if this feature has been enabled for the ibay.
Sorry I cant be of more help

Benny Andersen

Re: running cgi files in domains
« Reply #2 on: January 15, 2003, 03:25:49 AM »
Hi

I had the same problem in an earlier version and believe that we are not able to run cgi from the bin in the primary. I have never since tried and dont know wheather this has been changed i later releases.

Try creating another Ibay and run the cgi from there. if it fails as well then check to see if this feature has been enabled for the ibay.
Sorry I cant be of more help

Michael Soulier

Re: running cgi files in domains
« Reply #3 on: January 15, 2003, 03:17:19 PM »
Apache is run as unpriviledged user "www" for ibays. This is a feature.  If you need to write somewhere from cgis in an ibay, it should be to somewhere in the ibay. Otherwise you are compromising the security of your server.

Remember, cgi's are run by anyone who comes along. Security is not optional.

mps