LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-01-2011, 05:59 AM   #1
paliga
Member
 
Registered: Feb 2010
Posts: 39

Rep: Reputation: 0
Confused about apache in Slackware 13.1


Hi g&g,

I'm kind of confused about if apache is running on my system or not.

netstat shows that nothing is listening on port 80
inetd config shows that theres nothing associated with port 80
ps shows that theres no webserver running
pkgtool shows that theres httpd installed

but when I go to localhost in a webbrowser... I get the standard "It works!" Page...

how come?

any ideas?

Its just a Slackware 13.1 DVD full package installation...

Thanks in advance...

cheerios...
kris
 
Old 03-01-2011, 06:01 AM   #2
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Default configuration makes Apache to work in localhost. In other words, local only.
 
Old 03-01-2011, 06:06 AM   #3
paliga
Member
 
Registered: Feb 2010
Posts: 39

Original Poster
Rep: Reputation: 0
thanks for your quick reply : )

Quote:
Originally Posted by paliga View Post
ps shows that theres no webserver running
but what about that?

How come that its running and how can I trace it?

Last edited by paliga; 03-01-2011 at 06:08 AM.
 
Old 03-01-2011, 06:09 AM   #4
DeTomasso
LQ Newbie
 
Registered: Oct 2010
Location: Elbląg
Distribution: Slackware64
Posts: 10

Rep: Reputation: 2
How do you check that apache is running?
Code:
root@darkstar:~#/etc/rc.d/rc.httpd start
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
root@darkstar:~# ps aux | grep httpd
root      6125  0.6  0.6 380516 13460 ?        Ss   12:08   0:00 /usr/sbin/httpd -k start
apache    6128  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6129  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6130  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6131  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6132  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
root@darkstar:~#
 
Old 03-01-2011, 06:11 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You need to look for httpd, not apache


Kind regards
 
Old 03-01-2011, 06:15 AM   #6
paliga
Member
 
Registered: Feb 2010
Posts: 39

Original Poster
Rep: Reputation: 0
Thanks for your answers...

I am looking for httpd... I checked with pkgtool what the sbins are... and since the packagename is also httpd there was no much space for confusion...

I do 'ps aux PIPE grep httpd' and get 'grep httpd' only!

localhost in firefox still shows "It works!"

??
 
Old 03-01-2011, 06:18 AM   #7
paliga
Member
 
Registered: Feb 2010
Posts: 39

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DeTomasso View Post
How do you check that apache is running?
Code:
root@darkstar:~#/etc/rc.d/rc.httpd start
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
root@darkstar:~# ps aux | grep httpd
root      6125  0.6  0.6 380516 13460 ?        Ss   12:08   0:00 /usr/sbin/httpd -k start
apache    6128  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6129  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6130  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6131  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
apache    6132  0.0  0.3 380516  7112 ?        S    12:08   0:00 /usr/sbin/httpd -k start
root@darkstar:~#
Thanks to you my Paranoia got fed, since my machines in question hostname is also darkstar... but its completely sealed off from the internet...

lol

 
Old 03-01-2011, 06:22 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
What happens if you run
Code:
/etc/rc.d/rc.httpd restart
Did you perhaps installed another webserver?

Kind regards
 
Old 03-01-2011, 06:43 AM   #9
paliga
Member
 
Registered: Feb 2010
Posts: 39

Original Poster
Rep: Reputation: 0
Theres no /etc/rc.d/rc.httpd...

I did installed ruby and rails... they use WEBrick as http server, but only when you start it by "rails server"... and not on port 80 but port 3000... and rails is off...

and "It works!" is typical for apache, isnt it?

Last edited by paliga; 03-01-2011 at 06:51 AM.
 
Old 03-01-2011, 02:33 PM   #10
paliga
Member
 
Registered: Feb 2010
Posts: 39

Original Poster
Rep: Reputation: 0
It turned out, that firefox keeps on loading some pages from cache, even if its not in offline mode.

Whats even more strange, it keeps on loading only some (couldnt find a pattern) of the recent pages from cache.

Thanks for your help g&g
 
  


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
Very confused over Apache / PHP issue stokes Slackware 6 02-05-2006 09:32 AM
confused by apache in debian tomj88 Debian 2 06-14-2005 12:46 PM
Confused with Apache blakeless Linux - Software 3 03-20-2005 07:43 PM
Apache and PHP: confused WiWa Linux - Software 3 06-04-2004 07:05 AM
Confused about Apache XML Fluffybunny Linux - Software 0 03-26-2003 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:45 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
Open Source Consulting | Domain Registration