Re: apache web application


Subject: Re: apache web application
From: Joshua J.Kugler (isd@as.uaf.edu)
Date: Thu Dec 12 2002 - 12:47:42 AKST


It depends.

If it is a CGI application (using Perl or Python), and doesn't use mod_perl
or FastCGI, it's relatively easy. suEXEC is your friend. It's an apache
"module" that will run CGI's as the user who is the owner. See the Apache
docs for more info on using.

If it is a PHP script, then that's a bit harder. PHP is usually embedded in
the server, so runs scripts as the server. You can compile PHP to have it's
own runtime, and then put something like #!/usr/bin/php at the top of all
your PHP files and run them as external CGI's.

Hope that helps.

j----- k-----

On Thursday 12 December 2002 11:09, Mike Barsalou wrote:
> What sort of steps would I have to take if I wanted my webserver to run as
> user nobody, but the web application required that it ran as a different
> user?
>
> Mike
>
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.

-- 
Joshua Kugler, Information Services Director
Associated Students of the University of Alaska Fairbanks
isd@asuaf.org, 907-474-7601

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Thu Dec 12 2002 - 12:47:44 AKST