Welcome to WebmasterWorld Guest from 100.26.182.28

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

apachectl command not found

     
5:02 am on Mar 8, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts:240
votes: 0


I'm trying to restart apache on a linux system, but when I use 'apachectl graceful' it tells me that the command was not found. I'm SUing to root...

Any ideas?

3:40 pm on Mar 9, 2007 (gmt 0)

New User

10+ Year Member

joined:May 2, 2005
posts:11
votes: 0


You're probably just using "su", use "su -" instead to get a shell or else your PATH won't be set up properly.
2:05 am on Mar 10, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11822
votes: 236


you can always try "whereis apachectl" and use the complete path for the command.
2:08 am on Mar 11, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts: 240
votes: 0


Okay, I tried "su -" but got the message: warning: maxclients of 25 exceeds serverlimit value of 10 servers, lowering maxclients to 10. to increase, please see the serverlimit directive.

What does that mean?

When I did "whereis apachectl", I got something kind of confusing -
apachectl: /usr/sbin/apachectl /usr/share/man/man8/apachectl.8.gz
and I couldn't run the command from either folder.

2:51 am on Mar 11, 2007 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


Which versions of linux and Apache? Try:

apache[b]2[/b]ctl
4:39 am on Mar 11, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts: 240
votes: 0


apache2ctl cannot be found either. I'm running apache 2.0, but not sure what version of Linux I have.
8:26 am on Mar 11, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11822
votes: 236


When I did "whereis apachectl", I got something kind of confusing -
apachectl: /usr/sbin/apachectl /usr/share/man/man8/apachectl.8.gz
and I couldn't run the command from either folder.

if you type "/usr/sbin/apachectl" what happens?

1:55 pm on Mar 13, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts: 240
votes: 0


When I type /usr/sbin/apachectl I get this:
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
and it shows me options for usage.

/usr/sbin/apachectl graceful gives:
WARNING: MaxClients of 25 exceeds ServerLimit value of 10 servers, lowering MaxClients to 10. To increase, please see the ServerLimit directive.

3:47 pm on Mar 13, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11822
votes: 236


what are the settings for MaxClients and ServerLimit in your apache config file?
11:26 pm on Mar 13, 2007 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts: 240
votes: 0


MaxClients is set to 25 and ServerLimit is set to 10
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members