Web Hosting Talk







View Full Version : Restarting Apache on a RaQ4i


aura9
05-25-2001, 01:15 PM
I'm having trouble restarting apache. For some reason
I get a 'command not found' error when I do the following:

/etc/rc.d/init.d/httpd start

Can anyone help me with this?

aura9
05-25-2001, 01:26 PM
I got it to work but I had to be at the root directory to issue the command.

WORKED:
[root /]# /etc/rc.d/init.d/httpd stop
[root /]# /etc/rc.d/init.d/httpd start

ERROR:
[root init.d]# httpd stop
[root init.d]# httpd start

Before I'd cd into the init.d directory and try to issue the command and it didn't work. Technically, what is the difference? Why would one way work and not another?

windchill
05-25-2001, 01:40 PM
ERROR:
[root init.d]# httpd stop
[root init.d]# httpd start

If you entered "./httpd stop¦start", it would have worked.

The problem is that, although you are in the correct directory, this dir isn't in the default path, so the shell doesn't find the init-scripts but rather the httpd binary in "/usr/sbin/"


hope that helped
Marc

jtan15
05-25-2001, 01:42 PM
The reason you got the error was because you need a "./" in front of httpd. If you do not have that, it doesn't know where to find "httpd", so it looks in your $PATH. If it doesn't find it there, it errors out. Putting the "./httpd" tells it to look in the current directory. :)

aura9
05-25-2001, 01:43 PM
Great...

Thanks a lot for the help. Much Appreciated!;)

jtan15
05-25-2001, 01:44 PM
LOL. You beat me to it Marc. :)

windchill
05-25-2001, 01:46 PM
I'm trying hard, you know ;)