Page 1 of 1

apache2ctl status - Object not found!

Posted: 2007-03-19 16:34
by tomotom
Ich verstehe nicht was mir diese Meldung sagen will. Ich habe so etwas wie "server running" erwartet und dann kommt "Object not found!" und der Rest. was bedeutet das was wird nicht gefunden?

Code: Select all

server01:/# apache2ctl status

                               Object not found!

   The requested URL was not found on this server. If you entered the URL
   manually please check your spelling and try again.

   If you think this is a server error, please contact the [1]webmaster.

Error 404


    [2]localhost
    Mon Mar 19 16:25:18 2007
    Apache/2.0.54 (Debian GNU/Linux) mod_fastcgi/2.4.2 mod_ssl/2.0.54
    OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4

References

   1. mailto:webmaster@localhost
   2. http://localhost/

Re: apache2ctl status - Object not found!

Posted: 2007-03-19 18:23
by Roger Wilco
Hast du mod_status geladen und unter http://localhost/status oder http://localhost/server-status verfügbar gemacht?

Re: apache2ctl status - Object not found!

Posted: 2007-03-19 19:11
by tomotom
Roger Wilco wrote:Hast du mod_status geladen und unter http://localhost/status oder http://localhost/server-status verfügbar gemacht?
Nein, es scheint auch in mods-available/mods-enabled nicht mehr vorhanden zu sein. Ich muss es wohl neu installieren. Es war aber schon mal da. Wie kann das weg sein?

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 13:06
by tomotom
tomotom wrote:
Roger Wilco wrote:Hast du mod_status geladen und unter http://localhost/status oder http://localhost/server-status verfügbar gemacht?
Nein, es scheint auch in mods-available/mods-enabled nicht mehr vorhanden zu sein. Ich muss es wohl neu installieren. Es war aber schon mal da. Wie kann das weg sein?
Habe nicht richtig nachgesehen. Es ist fest einkommpeliert:

Code: Select all

server01:/# apache2ctl -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_log_config.c
  mod_logio.c
  mod_env.c
  mod_setenvif.c
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_negotiation.c
  mod_dir.c
  mod_alias.c
  mod_so.c
Der apache error.log bekommt nach apache2ctl folgenden Eintrag:

Code: Select all

[Wed Mar 21 13:31:00 2007] [error] [client 127.0.0.1] File does not exist: /var/www/server-status
Die Frage bleibt die selbe: Warum wird der Status nicht angezeigt?

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 16:22
by Roger Wilco

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 17:10
by tomotom
Aha, danke. Ich habe das getan und jetzt:

Code: Select all

server01:/# apache2ctl status

                               Access forbidden!

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 17:18
by Roger Wilco
Du musst localhost den Zugriff erlauben...

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 17:25
by tomotom
Roger Wilco wrote:Du musst localhost den Zugriff erlauben...
In diesem Container

Code: Select all

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from .localhost
</Location>
das probiert:

Code: Select all

  
...
Allow from .localhost
  Allow from localhost
  Allow from .testdomain.top
...
und das sowohl vom Browser wie von der Konsole aus aber immer :

Code: Select all

Access forbidden!

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 17:36
by Roger Wilco
Probiers mit "Allow from 127.0.0.1".

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 17:46
by tomotom
Roger Wilco wrote:Probiers mit "Allow from 127.0.0.1".
Deine Phantasie hat geholfen. Danke. Nun kann ich den Status über die Konsole abfragen

Nebenbei: wie lass ich mir noch mal die child prozesse des apache im Baum anzeigen?

Re: apache2ctl status - Object not found!

Posted: 2007-03-21 17:52
by Roger Wilco

Code: Select all

man ps
man pstree