Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2001 13:08:13 -0500 (EST)
From:      Michael Imamura <gte255n@prism.gatech.edu>
To:        freebsd-questions@freebsd.org
Cc:        mercadolee@hotmail.com
Subject:   RE: apachectl command not found
Message-ID:  <Pine.SOL.4.21.0111131303290.6109-100000@acmez.gatech.edu>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.21.0111131303290.6109-100000>