Have to su root to restart apache
I need help. I'm new to linux but when I have to restart httpd I have to su as root
su root /etc/init.d/httpd restart
If I don't I get a "Command not Found" error message. I also tried using this command " service httpd restart" and pretty much get the same message.
I am log in as root and have root privileges to my linux machine.
Please provide a very descriptive answer to my question.
Thanks a bunch.
I guess I have to correct myself here. I'm already logged in as root so I shouldn't do su or sudo root to restart my apache. But unless I su or sudo root : su root /etc/init.d/httpd restart I'm getting this error message :
env: /etc/init.d/cmsd: No such file or directory
What do I need to change or what should I do so I only have to do /etc/init.d/http restart or do service httpd restart without having to enter su or sudo root.
Thanks again.
Last edited by mmfcecil; 10-09-2007 at 11:14 AM.
|