Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting Apache2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
salk
n00b
n00b


Joined: 05 Aug 2003
Posts: 37
Location: Johannesburg, South Africa

PostPosted: Fri Jan 09, 2004 8:08 am    Post subject: Starting Apache2 Reply with quote

Hi all,

One for the guru's

Code:

/etc/init.d/apache2 start


This starts the process. However ... why does it take at least 5 minutes to start child processes?

Suggestions ?
_________________
Steven Mac Intyre

http://steven.macintyre.name
Back to top
View user's profile Send private message
feliperal
Apprentice
Apprentice


Joined: 09 Mar 2003
Posts: 168

PostPosted: Fri Jan 09, 2004 8:30 am    Post subject: Reply with quote

If it is not properly configured, for example you didn't specify the hostname in the httpd.conf file, the apache would not start properly. This could be where it is trying to resolve the address. I had this problem on my router. All I had to do was to put the server outside of what is called a DMZ, thus the router doesn't protect it behind the firewall. You can also activate port forwarding.

You can try these commands. I am using openbsd for my server, but I believe it should be simular.

Let's see if httpd started correctly. Apachectl or apache2 (Apache 2.0+) is just a symlink to httpd.
Code:
$ sudo apachectl start
/usr/sbin/apachectl start: httpd started
[sancho@molodetz:~]$ ps auxwww |grep httpd
www      13791  0.0  0.0  1108  1436 ??  Ss     9:12AM    0:00.02 httpd:
parent [chroot /var/www] (httpd)
www      29845  0.0  0.0  1108   456 ??  S      9:12AM    0:00.01 httpd:
child (httpd)
www       2989  0.0  0.0  1108   456 ??  S      9:12AM    0:00.01 httpd:
child (httpd)
www      21149  0.0  0.0  1108   456 ??  S      9:12AM    0:00.01 httpd:
child (httpd)
www       8784  0.0  0.0  1108   456 ??  S      9:12AM    0:00.01 httpd:
child (httpd)
www      30524  0.0  0.0  1108   456 ??  S      9:12AM    0:00.01 httpd:
child (httpd)


Okay, lets see if it your system is listening through ports 80 and if something is bound to port 80:
Code:
netstat -apn | grep 80


I hope this helps.

Good Luck,
Felipe
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Fri Jan 09, 2004 1:28 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?p=763775#763775

:-)
Back to top
View user's profile Send private message
salk
n00b
n00b


Joined: 05 Aug 2003
Posts: 37
Location: Johannesburg, South Africa

PostPosted: Fri Jan 09, 2004 3:20 pm    Post subject: Reply with quote

Brilliant :)

I am happy now... didnt need that module so its ok.

Thanks meyerm
_________________
Steven Mac Intyre

http://steven.macintyre.name
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum