[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Cannot execute cgi's in ~user on RaQ3



>
>
>I fail to execute .cgi and .pl scripts in ~user directories. For the same
>host, however, cgi's *will* run in /site/web.

You can run them from anyplace.

What WILL happen is that perl won't resolve the call to a relative 
directory for scripts inside a personal web site directory. Are you 
calling them this way? For instance, you're in a personal site like 
www.main.com/~user and you have a directory called "cgi-bin" in that 
user site:

www.main.com/~user/cgi-bin/script.cgi

If your script makes a call like this

/cgi-bin/script.cgi

the machine will think you're talking about  www.main.com/cgi-bin. 
This is because those personal web sites are treated as parts of the 
path of the main site's directory so a relative reference takes perl 
to a directory someplace on your main site (like the main site's 
cgi-bin directory).

The trick is when you're running scripts from a personal site, use 
the FULL path and url of the site's cgi-bin directory both when you 
configure the script and when you call it from any page on the site.

url would be

www.main.com/~user/cgi-bin/script.cgi

path would be something like 
/home/sites/www.main.com/users/~user/cgi-bin/script.cgi

And all your forms, ssi's and other interactives need to call the 
script with the FULL url.

On the other hand, if you're NOT making relative calls, then I've 
just wasted your time and have no idea what's wrong but if you're 
stuck, tell me more about the problem off-list and I'll see if I can 
help.

Alfredo
-- 
People-Link/Institute for Mass Communications
www.people-link.org
Communications for a Better World...and for the People Who are Building One!
Members, Local 1180, Communications Workers of America, AFL-CIO

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users