Forum Moderators: phranque

Message Too Old, No Replies

apachectl command not found

         

sodani

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

10+ Year Member



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?

Martin Strand

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

10+ Year Member



You're probably just using "su", use "su -" instead to get a shell or else your PATH won't be set up properly.

phranque

2:05 am on Mar 10, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



you can always try "whereis apachectl" and use the complete path for the command.

sodani

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

10+ Year Member



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.

encyclo

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

WebmasterWorld Senior Member 10+ Year Member



Which versions of linux and Apache? Try:

apache[b]2[/b]ctl

sodani

4:39 am on Mar 11, 2007 (gmt 0)

10+ Year Member



apache2ctl cannot be found either. I'm running apache 2.0, but not sure what version of Linux I have.

phranque

8:26 am on Mar 11, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



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?

sodani

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

10+ Year Member



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.

phranque

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

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



what are the settings for MaxClients and ServerLimit in your apache config file?

sodani

11:26 pm on Mar 13, 2007 (gmt 0)

10+ Year Member



MaxClients is set to 25 and ServerLimit is set to 10