Oops. I sent this only to Joel so I'm forwarding it here as well. Drew Taylor said: > As someone else mentioned, you need to use cgiwrap. I also happen to > have an account w/ pair. :-) The trick w/ cgiwrap is that it ALWAYS > looks in the system cgi-bin (~/public_html/cgi-bin) directory. So you > have to create a symlink in it to the proper directory. Then when you're > setting the custom Handler you use this symlink in the Action directive. > This assumes you have each domain's document root in > ~/public_html/domain. If not, the symlink should just point to "../". > You'll need to repeat this for each domain you want to run wrapped. > > Here's how I have it setup: > > [EMAIL PROTECTED] cat public_html/domain_dir/.htaccess > AddHandler application/x-httpd-wcgi pl > Action application/x-httpd-wcgi /cgi-sys/cgiwrap/username/alias > > [EMAIL PROTECTED] cd cgi-bin/ > /usr/www/users/username/cgi-bin > [EMAIL PROTECTED] ls -l > total 3652 > lrwxrwxrwx 1 root users 16 Jun 29 2002 alias -> > ../domain_dir/ > > Hope this helps. > > Drew > > Joel Gwynn said: >> Yet another opportunity to display my ignorance :) >> >> I've got a script which reads a config file to get a database username >> and password, among other things. What should the permissions be so >> that the cgi script running on the web server can read the file, but >> random users on the system can't? Is this the best way for the script >> to get sensitive info like that? >> >> This is on pair.com, where the script runs as user nobody and group >> www.
-- Drew Taylor | Web development & consulting http://www.drewtaylor.com/ | perl/mod_perl/DBI/mysql/postgres ------------------------------------------------------------- DVD Rentals by mail with no Late Fees or Due Dates Free Trial - http://www.netflix.com/Default?mqso=36126240 ------------------------------------------------------------- _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

