>% Doing a quick search on google for "SSH commands" and "SSH help" returned
>% quite a lot
>% of crap that really didnt help me learn.
>
>>Good enough.  What do you want to do?
>
>Basically stop/restart apache when i make changes to the httpd.conf file.
>But then thinking of it I realize that if I stop apache from a script,
>once apache is stopped I cant run any php to restart it...right?

Right. And you wouldn't be able to stop it in the first place, unless
youre system was so insecure that Apache ran as a privileged user.


>So I guess my question gets cut down to basically "any good place/program
>to learn/use SSH?"

I think that learning SSH isn't really what you're after - you want to
learn how to use the command line interface, which is a whole different
thing (SSH is just the intermediary program you use to access the remote
machine). It depends on the shell you're using, the operating system
you're on, the location of Apache binaries, your $PATH, and a wide range
of other factors.

In the normal case (unix OS, you have sudo or root permissions, and
everything is within your path) it's a simple one-liner, like so:

        sudo apachectl graceful


-mike.

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to