From owner-freebsd-questions Tue Nov 13 10: 8:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from acmez.gatech.edu (acmez.gatech.edu [130.207.165.24]) by hub.freebsd.org (Postfix) with ESMTP id 78B1237B418 for ; Tue, 13 Nov 2001 10:08:14 -0800 (PST) Received: by acmez.gatech.edu (Postfix, from userid 19753) id D26C54ECEB; Tue, 13 Nov 2001 13:08:13 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by acmez.gatech.edu (Postfix) with ESMTP id C734A4FE72; Tue, 13 Nov 2001 13:08:13 -0500 (EST) Date: Tue, 13 Nov 2001 13:08:13 -0500 (EST) From: Michael Imamura X-Sender: gte255n@acmez.gatech.edu To: freebsd-questions@freebsd.org Cc: mercadolee@hotmail.com Subject: RE: apachectl command not found Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Quoting "mercadolee@hotmail.com": > i su to the root to make my apache server restart but it seems i > cant make > the command work. > > here's the error : > ---------------------------------------- > bash-2.05$ su > Password: > su-2.05# apachectl restart > su: apachectl: command not found > su-2.05# > ---------------------------------------- > im running 4.4Stable -- > ** also, almost all other commands that's exclusively accessed as a root > user is getting the same error. It works fine though if i > directly login as > root. ** On my box (with Apache installed from the ports collection), apachectl is in /usr/local/sbin, which probably isn't in the path of your normal user account. Try using "su -" when su'ing to root or use "/usr/local/sbin/apachectl". - Michael Imamura mimamura@resnet.gatech.edu LUG@GT Web Guy http://www.lugatgt.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message