On Thu, 2003-01-30 at 16:36, Stas Bekman wrote:
> Joe Schaefer wrote:
> > Matt Sergeant <[EMAIL PROTECTED]> writes:
> > 
> > 
> >>On 28 Jan 2003, Joe Schaefer wrote:
> >>
> >>
> >>>libapreq-1.1 is now available on CPAN,
> >>>and also through the Apache website at
> >>>
> >>>  http://www.apache.org/dist/httpd/libapreq/libapreq-1.1.tar.gz
> >>
> >>Failed badly to install for me. First of all it won't install via the
> >>CPAN shell as root because the test harness tries to deliver files
> >>from what becomes a root-owned directory, and it won't do that. 
> > 
> > 
> > The test suite was lifted directly from mod_perl.  Are you able to 
> > able to test/install mod_perl using the same approach?
> 
> Joe, I thought you've reverted to use the old test suite?
> 
> Matt, Apache::Test may not work when run under root, because Apache won't let 
> you start the server as 'User root' so it tries to use 'nobody' or something 
> else as the username the server runs under, which of course has no perms to 
> access files created by root and hence the problem.
> 
> I suppose the solution is to chown all the autogenerated files to that chosen 
> user and then the issue will be resolved. Meanwhile please try to run the test 
> suite as non-root.
> 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com

Stas,

I've run into the same problem while testing with Apache::PAR. 
Unfortunately, I don't think chown'ing the files will work (at least in
my case), because the directory itself (/root/.cpanplus on my box) isn't
accessible from a non-root user.  I haven't worked on a solution yet,
but I was thinking the best thing to do might be to create a temp
directory (maybe with a prompt for the directory to create it under)
from the generated Makefile in the start_httpd section and copy any
content (and then remove it in kill_httpd)

Maybe this would be a good feature to add to the Apache::test and
Apache::Test modules?

Thanks,
 
-- 
Nathan Byrd <[EMAIL PROTECTED]>

Reply via email to