Web Hosting Talk







View Full Version : cgi wrap and raqs?


honging
06-11-2001, 08:18 PM
I just recently got a 4i. I've tried to install several cgi scripts, but they all fail.

I learned to configure CGI scripts on a bunch of virtual servers before... is there something special I have to do to get CGI scripts to run on a 4i?

(specifically, i need to devote the folder in /home/sites/site5/web/somebody/folder to run a cgi script..)

can anyone help? i tried reading the cgi wrap website, but it wasn't very helpful.

Chicken
06-11-2001, 10:45 PM
Well, you said you've done this before, so we'll skip the ascii talk, and the paths talk (we're assuming you've got this set correctly). Next, for the site, you are uploading, *as the siteadmin* the script correct?

Sounds to me like a persmissions problem. You are one user uploading into an area you aren't allowed to run scripts in. That's my guess, could be anything.

honging
06-11-2001, 11:30 PM
Yeah, I can configure and upload scripts fine... I did that well on my old virtual server.

I am using the siteadmin to log into the site, and I'm uploading into one of my folders.. I'm guessing that the user permission isn't set properly...

I tried to CHMOD to 775 instead of 755 for executables (i read something about that somewhere), but that didn't help.

i'm just guessing that i'm missing something basic about cgi-wrap... help?!

Hyper Tech
06-12-2001, 01:58 AM
Any error messages?

honging
06-12-2001, 08:18 AM
Error 13: Permission Denied
or
Error 2: No Such File or Directory

It seems to vary from when I configure it differently...

huck
06-12-2001, 08:37 AM
Make sure the perl path is correct in your scripts. Also, CGIwrap will not let scripts run as root. In addition, I believe the owner of the script has to belong to the same group as the enclosing folder.

On one of my scripts, I had to actually re-type the perl path. I think there was an extra space character at the end, which caused a problem.

Lastly, there is a thread on here about how to disable CGIwrap if you're really tired of dealing with the errors.

honging
06-12-2001, 05:44 PM
Originally posted by huck
Make sure the perl path is correct in your scripts. Also, CGIwrap will not let scripts run as root. In addition, I believe the owner of the script has to belong to the same group as the enclosing folder.


Owner of the script has to belong in the same group as the enclosing folder...? :confused: :confused: :confused: :confused: :confused: :confused: :confused:

Hyper Tech
06-12-2001, 06:07 PM
Make sure you chown the script to an actual user on the domain you are setting it up on. Do not chown the script to admin or root as it will not execute. You can determine the group of the directory with the 'ls -l' command, this will show you both owner and group.

honging
06-12-2001, 11:19 PM
thanks everyone. i figured it out. apparently i was uploading via the admin username, when i should of been using the site admin's ;)

thanks!