LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where is apache running? (https://www.linuxquestions.org/questions/linux-newbie-8/where-is-apache-running-772225/)

your_shadow03 11-29-2009 02:31 AM

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.

kirukan 11-29-2009 02:50 AM

locate command also can (if updatedb updated)

Quote:

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


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