From owner-freebsd-questions Tue Feb 25 9:16:27 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F63037B401 for ; Tue, 25 Feb 2003 09:16:25 -0800 (PST) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA47543FB1 for ; Tue, 25 Feb 2003 09:16:22 -0800 (PST) (envelope-from kirk@strauser.com) Received: from pooh.strauser.com (kirk@pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.7/8.12.7) with ESMTP id h1PHGCxc035566 for ; Tue, 25 Feb 2003 11:16:12 -0600 (CST) (envelope-from kirk@strauser.com) To: freebsd-questions@freebsd.org Subject: Is Apache+Perl behaving correctly? Am I insane? From: Kirk Strauser Date: Tue, 25 Feb 2003 11:16:09 -0600 Message-ID: <871y1wjn6u.fsf@strauser.com> Lines: 36 X-Mailer: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= Content-Transfer-Encoding: quoted-printable I'm trying to enable mod_perl support for my TWiki-based website (http://subwiki.honeypot.net/). I'm seeing some really strange behaviour, though, and I don't know which of mod_perl or I are going insane. In my httpd.conf, I have: User www Group www and it behaves in the expected way. TWiki ships with a script called `testenv' that shows some information about the current Apache environment, and it calls some very simple code to determine the user its running as: my $usr =3D lc( getlogin || getpwuid($<) ); print "User:$usr\n"; When I execute that script from a browser, I see "User: root", and I'm not sure where that's coming from. Right now, the following httpd processes are running on the server: # ps auxwww | grep -- -DSSL root 34839 0.0 0.9 14092 7032 ?? Ss 10:55AM 0:00.95 /usr/loca= l/sbin/httpd -DSSL www 35394 0.0 0.9 14100 7068 ?? I 11:11AM 0:00.01 /usr/loca= l/sbin/httpd -DSSL www 35395 0.0 0.9 14100 7064 ?? I 11:11AM 0:00.01 /usr/loca= l/sbin/httpd -DSSL www 35396 0.0 0.9 14160 7112 ?? I 11:11AM 0:00.02 /usr/loca= l/sbin/httpd -DSSL www 35397 0.0 0.9 14160 7120 ?? I 11:11AM 0:00.02 /usr/loca= l/sbin/httpd -DSSL www 35398 0.0 0.9 14160 7120 ?? I 11:11AM 0:00.02 /usr/loca= l/sbin/httpd -DSSL www 35403 0.0 0.9 14092 7040 ?? I 11:12AM 0:00.01 /usr/loca= l/sbin/httpd -DSSL Doesn't the process running as root exist solely to spawn other children? If so, why does Perl (both with and without mod_perl enabled) think that it's running as root instead of www? =2D-=20 Kirk Strauser In Googlis non est, ergo non est. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+W6Tc5sRg+Y0CpvERApfJAJ0TDbnjlUwNoG5Q3mGqD4iU1vmFOgCdFJSU /KvBlKx0c/L66hyOstLqljc= =5Q7G -----END PGP SIGNATURE----- --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message