Alan D. Salewski on 6 Feb 2009 13:45:35 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] rookie question


On Fri, Feb 06, 2009 at 04:34:56PM -0500, Ron Kaye spake thus:
> how do i know apache is installed?
> 
> rk

Do you simply want to know whether or not the package (DEB or RPM) is
installed? Or do you also want to know if the server is running?

To answer the first, try:

    $ rpm -qa | grep -e apache -e httpd

or

    $ dpkg -l | grep -e apache -e httpd

(depending, of course, on your distro).


To answer the second:

    $ ps auxww | grep -e apache -e httpd

HTH,
-Al

-- 
a l a n   d.   s a l e w s k i             salewski@worldnet.att.net
--------------------------------------------------------------------
                     Can't change the channel
                     Life with a broken remote
                       Home shopping all day
--------------------------------------------------------------------
Generated from Haiku-O-Matic:           www.smalltime.com/haiku.html
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug