I restart my apache on centos, I cd the apache bin dir use
apachectl restart
It's no working but I use
/dir..../bin/apachectl restart
It's working ,why??
I restart my apache on centos, I cd the apache bin dir use
apachectl restart
It's no working but I use
/dir..../bin/apachectl restart
It's working ,why??
you type >which apachetl,
if result is such below
/usr/bin/which: no lsasd in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/turkcell/wlsadmin/bin)
you have to add its full path to PATH enviroment in order to execute command at any directory.
PATH=$PATH:/usr/local/services/apache2-2/bin