LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-07-2007, 03:35 PM   #1
FrankBlourtango
LQ Newbie
 
Registered: Aug 2007
Location: Philly
Distribution: Ubuntu 7.04
Posts: 6

Rep: Reputation: 0
Where is httpd?


I'm going through the article on apache.org about making sure you have the web server locked down for security.

But in ubuntu, I can't locate that actual httpd executive. I know it's somewhere because I have the webserver running.

Anyone know?
 
Old 08-07-2007, 03:43 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
If you run which httpd in a console, it will tell you where it is.
 
Old 08-07-2007, 03:47 PM   #3
FrankBlourtango
LQ Newbie
 
Registered: Aug 2007
Location: Philly
Distribution: Ubuntu 7.04
Posts: 6

Original Poster
Rep: Reputation: 0
I got nothing. which httpd gives me nothing, even when entered from the console in the root directory by root.

This is most odd.

I tested which and locate using a file called test.cpp that I know the location of: locate finds it but which = nada.

Last edited by FrankBlourtango; 08-07-2007 at 04:02 PM.
 
Old 08-07-2007, 04:00 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
I'll say that's odd. You could try running the find command (find / -name httpd) or with locate (locate httpd) and those will search the hard drive for it. On my system it is in /usr/sbin, but Slackware tends to be a bit different in where it puts stuff.

The other thing to do would be look in the apache startup script and see if it give the full path.

And just in case.....Are you sure you're running Apache? There are other web servers and maybe you're running one of those.
 
Old 08-07-2007, 04:36 PM   #5
FrankBlourtango
LQ Newbie
 
Registered: Aug 2007
Location: Philly
Distribution: Ubuntu 7.04
Posts: 6

Original Poster
Rep: Reputation: 0
nothing with find.

now check this out.

root@ube:/# ps aux | grep httpd


root 15546 0.0 0.2 2880 752 pts/1 R+ 16:28 0:00 grep httpd

so it's running somewhere....
 
Old 08-07-2007, 04:57 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,240
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Did you consider the process might not be named httpd in Ubuntu ?

This is from my Debian Etch box..
Code:
it-etch:~# netstat -anp | grep ::80
tcp6       0      0 :::80                   :::*                    LISTEN     3114/apache2

it-etch:~# which apache2
/usr/sbin/apache2
whatever the process name that comes back on the far right, search for that.. in my case it's apache2






All your ps command returned was the grep process searching for httpd.... without actually returning any valid results
Code:
it-etch:~# ps aux | grep apache2
root      3114  0.0  0.2   9468  2452 ?        Ss   16:55   0:00 /usr/sbin/apache2 -k start
www-data  3115  0.0  0.1   9468  1952 ?        S    16:55   0:00 /usr/sbin/apache2 -k start
www-data  3116  0.0  0.1   9468  1952 ?        S    16:55   0:00 /usr/sbin/apache2 -k start
www-data  3117  0.0  0.1   9468  1952 ?        S    16:55   0:00 /usr/sbin/apache2 -k start
www-data  3119  0.0  0.1   9468  1952 ?        S    16:55   0:00 /usr/sbin/apache2 -k start
www-data  3120  0.0  0.1   9468  1952 ?        S    16:55   0:00 /usr/sbin/apache2 -k start
root      3235  0.0  0.0   2852   724 pts/0    S+   16:58   0:00 grep apache2

Last edited by farslayer; 08-07-2007 at 05:00 PM.
 
Old 08-07-2007, 05:44 PM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by FrankBlourtango
nothing with find.

now check this out.

root@ube:/# ps aux | grep httpd


root 15546 0.0 0.2 2880 752 pts/1 R+ 16:28 0:00 grep httpd

so it's running somewhere....
Your ps found the grep that is running. It seems that it is not running at all. If "find / -name httpd" did not find anything then you don't have apache installed.
 
Old 08-07-2007, 06:07 PM   #8
FrankBlourtango
LQ Newbie
 
Registered: Aug 2007
Location: Philly
Distribution: Ubuntu 7.04
Posts: 6

Original Poster
Rep: Reputation: 0
I found it. It is called apache, not httpd.
I should have known that, since to find the PID you look up /var/run/apache.pid and you can start and stop it with apachectl .

Hey there is a reason I'm in the newbie forum. I'm pretty clueless.


Thanks for the help!
 
  


Reply


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
httpd problem and caused my httpd to shut-down golpemortal Linux - Server 2 04-08-2007 04:44 AM
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 06:07 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 11:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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