Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-29-2009, 02:31 AM   #1
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Where is apache running?

I have couple of web servers mostly apache running on numerous Linux Machine.The ex-system administrator has put web server running on different folder location in linux boxes.
How can I know where the conf/httpd.conf file is located.
the find command consumes lot of time.
Is there any way i can know what httpd processes are running and which location?

If I do :
ps -auxf | grep httpd
it shows only processes running.
Old 11-29-2009, 02:50 AM   #2
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
locate command also can (if updatedb updated)

ps ax | grep http
31046 ? Ss 0:00 /usr/local/apache/bin/httpd -k start
31047 ? S 0:00 /usr/local/apache/bin/httpd -k start
31048 ? S 0:00 /usr/local/apache/bin/httpd -k start
31049 ? S 0:00 /usr/local/apache/bin/httpd -k start
31050 ? S 0:00 /usr/local/apache/bin/httpd -k start
31051 ? S 0:00 /usr/local/apache/bin/httpd -k start
Here apache installed in user defined path httpd.conf should be in /usr/local/apache/etc

if you used rpm to install apache most probably the configuration file should be in /etc/httpd/etc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
How to tell what Apache is running as? cadkins Linux - Newbie 2 11-09-2004 11:06 AM
is apache running? pcdebb Programming 6 12-17-2003 02:26 AM
running apache gtgoku Slackware 1 10-29-2003 08:05 PM
Running Apache Ruth Linux - General 6 03-26-2001 06:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration