Compare the results of the command

echo PATH

on both terminals.

Whenever you issue a command in a shell without using an absolute (root-relative) path to that command, like say, http instead of /usr/ local/bin/httpd, you are asking the shell to fill in the missing bits for you. The way that works is the shell takes the path, one segment at a time (segments are separated by a colon in Unix, not sure if Windows respects that precedent), and prepends each segment before your command and sees if anything happens. If nothing does, it tries the next segment in the path until something works or it runs out of segments.

I suspect that your PATH environment variable is either empty or very short in the latter terminal, so this process is ending in failure.

Walter

On Sep 17, 2010, at 9:45 AM, Amit Tomar wrote:

Walter Davis wrote:
From a shell on the server, type httpd -v and press return.

Walter

Walter i am running apche server on two different machine ,on one
machine
i am using apache that comes with XAMPP and when i type command httpd -v
,i got
Server version: Apache/2.2.11 (Win32)
Server built:   Dec 10 2008 00:10:06
but on other machine where i am using apache that comes with instantrail
2.0
i got
'httpd' is not recognized as an internal or external command,
operable program or batch file.
why is it so??

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails- [email protected]. To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en .


--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to