Re: RedHat 6.1 apache 1.3.12 modperl 1.22 Makefile.pl errors and failed make test
On Thu, 13 Apr 2000, Doug MacEachern wrote: > > Doug, I guess this is something that should be addressed as a > > Makefile.PL configuration parameter. I myself have encountered a few > > problems with the User/Group values picked by the build process in a > > complex NIS environment and have had to manually modify the httpd.conf > > used during the 'make start_httpd'. Having a way to provide your own > > choice of User/Group would be nice. > > no more Makefile.PL parameters, there are far too many. i wouldn't mind > adding something like this though.. Perfect. As long as there is a way to override the defaults without touching the sources, it's fine with me. Thanks! > --- Makefile.PL 2000/04/03 03:56:11 1.155 > +++ Makefile.PL 2000/04/13 23:15:52 > @@ -871,8 +871,10 @@ > #use only first value if $) contains more than one > $gid =~ s/^(\d+).*$/$1/; > > -$User = $Is_Win32 ? "nobody" : (getpwuid($uid) || "#$uid"); > -$Group = $Is_Win32 ? "nogroup" : (getgrgid($gid) || "#$gid"); > +$User = $Is_Win32 ? "nobody" : > + $ENV{APACHE_USER} || (getpwuid($uid) || "#$uid"); > +$Group = $Is_Win32 ? "nogroup" : > + $ENV{APACHE_GROUP} || (getgrgid($gid) || "#$gid"); > > if($User eq "root") { > my $other = (getpwnam('nobody'))[0]; > > > __ Stas Bekman | JAm_pH--Just Another mod_perl Hacker http://stason.org/ | mod_perl Guide http://perl.apache.org/guide/ mailto:[EMAIL PROTECTED] | http://perl.orghttp://stason.org/TULARC/ http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org --
Re: RedHat 6.1 apache 1.3.12 modperl 1.22 Makefile.pl errors and failed make test
> Doug, I guess this is something that should be addressed as a > Makefile.PL configuration parameter. I myself have encountered a few > problems with the User/Group values picked by the build process in a > complex NIS environment and have had to manually modify the httpd.conf > used during the 'make start_httpd'. Having a way to provide your own > choice of User/Group would be nice. no more Makefile.PL parameters, there are far too many. i wouldn't mind adding something like this though.. --- Makefile.PL 2000/04/03 03:56:11 1.155 +++ Makefile.PL 2000/04/13 23:15:52 @@ -871,8 +871,10 @@ #use only first value if $) contains more than one $gid =~ s/^(\d+).*$/$1/; -$User = $Is_Win32 ? "nobody" : (getpwuid($uid) || "#$uid"); -$Group = $Is_Win32 ? "nogroup" : (getgrgid($gid) || "#$gid"); +$User = $Is_Win32 ? "nobody" : + $ENV{APACHE_USER} || (getpwuid($uid) || "#$uid"); +$Group = $Is_Win32 ? "nogroup" : + $ENV{APACHE_GROUP} || (getgrgid($gid) || "#$gid"); if($User eq "root") { my $other = (getpwnam('nobody'))[0];
Re: RedHat 6.1 apache 1.3.12 modperl 1.22 Makefile.pl errors and failed make test
Yep, when _not_ using root to do the make and make test. The make test succeeded. Thanks for the help. At 10:59 PM 4/12/00 -0700, you wrote: >On Wed, 12 Apr 2000, Adam Joffe wrote: > > > Hi all, > > trying to set up a new linux box. real vanilla using apaci, everything=1, > > do_httpd=1, etc... > > > > "perl Makefile.PL" gives a bunch of "which: no apxs found" errors. Saw > some > > threads about this in the list but none explained why the errors occur and > > how to get rid of them when doing a fresh install. > >it was explained as a warning that is fixed in the cvs tree. > > > Make test fails at the "warming up" stage with Error "9". The httpd is > > actually running when the make test fails as I can telnet to port 8529 and > > do a "GET /". However, it returns a 403 permission denied message. I am > > doing all this as root. The server runs as user nobody, group is root, > so I > > would think the server should be able to r/w from the test directory. > >try building again with fresh source trees as yourself (not root), then >'make install' as root.
Re: RedHat 6.1 apache 1.3.12 modperl 1.22 Makefile.pl errors and failed make test
> > Make test fails at the "warming up" stage with Error "9". The httpd is > > actually running when the make test fails as I can telnet to port 8529 and > > do a "GET /". However, it returns a 403 permission denied message. I am > > doing all this as root. The server runs as user nobody, group is root, so I > > would think the server should be able to r/w from the test directory. > > try building again with fresh source trees as yourself (not root), then > 'make install' as root. Doug, I guess this is something that should be addressed as a Makefile.PL configuration parameter. I myself have encountered a few problems with the User/Group values picked by the build process in a complex NIS environment and have had to manually modify the httpd.conf used during the 'make start_httpd'. Having a way to provide your own choice of User/Group would be nice. __ Stas Bekman | JAm_pH--Just Another mod_perl Hacker http://stason.org/ | mod_perl Guide http://perl.apache.org/guide/ mailto:[EMAIL PROTECTED] | http://perl.orghttp://stason.org/TULARC/ http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org --
Re: RedHat 6.1 apache 1.3.12 modperl 1.22 Makefile.pl errors and failed make test
On Wed, 12 Apr 2000, Adam Joffe wrote: > Hi all, > trying to set up a new linux box. real vanilla using apaci, everything=1, > do_httpd=1, etc... > > "perl Makefile.PL" gives a bunch of "which: no apxs found" errors. Saw some > threads about this in the list but none explained why the errors occur and > how to get rid of them when doing a fresh install. it was explained as a warning that is fixed in the cvs tree. > Make test fails at the "warming up" stage with Error "9". The httpd is > actually running when the make test fails as I can telnet to port 8529 and > do a "GET /". However, it returns a 403 permission denied message. I am > doing all this as root. The server runs as user nobody, group is root, so I > would think the server should be able to r/w from the test directory. try building again with fresh source trees as yourself (not root), then 'make install' as root.
RedHat 6.1 apache 1.3.12 modperl 1.22 Makefile.pl errors and failed make test
Hi all, trying to set up a new linux box. real vanilla using apaci, everything=1, do_httpd=1, etc... "perl Makefile.PL" gives a bunch of "which: no apxs found" errors. Saw some threads about this in the list but none explained why the errors occur and how to get rid of them when doing a fresh install. Make test fails at the "warming up" stage with Error "9". The httpd is actually running when the make test fails as I can telnet to port 8529 and do a "GET /". However, it returns a 403 permission denied message. I am doing all this as root. The server runs as user nobody, group is root, so I would think the server should be able to r/w from the test directory. Should the server be told to run as a different user/group? I wouldn't think an out of the box vanilla install should bomb like this on this platform. I'm sure this is something simple I'm overlooking, but any help would be greatly appreciated. Thanks in advance. A