PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mein Indianer kann nicht mehr laufen!



rupe
14.10.08, 12:11
Hallo Leute,

ich hab hier einen Server stehen der neben: squid, mysql, nagios auch apache am laufen hat.
Der Server läuft schon seit Monaten ohne Probleme.

Jetzt funktioniert apache nicht mehr.
Wenn ich versuche den Apache zu starten, schreibt er in die httpd error.log die beiden Einträge:


Setuid/gid script is writable by world.
perl_parse: Inappropriate ioctl for device

Ansonsten findet sich in keinen Log ein Hinweiß wo das Problem liegen könnte.
Wie gesagt die Einstellungen sind seit min. 2 Monate unverändert. Daher verstehe ich nicht wie es plötzlich zu dem Problem kommen konnte und auch nicht wirklich wo ich ansetzen sollte.

Vielleicht hat jemand einen kleinen Tip für mich!?

Dank im vorraus,
glg

marce
14.10.08, 12:16
Ein bißchen Google mit der Fehlermeldung bringt ein paar Hinweise - um die aber bewerten oder ausschließen zu können bräuchten wir ein paar Infos mehr...

-> OS, Versionen, Installationsmethode, Config, ...

rupe
14.10.08, 14:22
Das Google mein erster Ansprechpartner war, dürfte klar sein! ;-)

OS: Fedora Core 9
Apache: Version: Apache/2.2.8 (Unix)
Squid: Version 2.6.STABLE17
Nagios: Version 3.0.2
mySQL: Version 5.0.45-4

Hier alle Konfigurationen zu posten würde den rahmen sprengen!
Welche Config brauchst den genau?

Is halt a normaler Webserver. Eigentlich nix besonderes.

MiGo
14.10.08, 14:29
Setuid/gid script is writable by world.
Da sollte doch eigentlich auch noch der Name des Scriptes stehen, oder? Wie heisst es und wie sind die Rechte?

foolish
14.10.08, 14:31
hi,

vllt. anfangen schritt für schritt abzuarbeiten; irgendwo ist ein script / ausführbare Datei mit Setuid/gid // wahrscheinlich aus versehen gesetzt?


Setuid/gid script is writable by world

Edit: Upps sorry war etwas zu langsam ^^

rupe
14.10.08, 15:42
Und wo finde ich dieses Script?
Da sind ca. 500 vHosts drauf!

wir reden hier von >2 TB!!!!

In den Logs finde ich keine weiteren angaben, wo sich irgendwas befindet. bzw. wo das Problem liegen könnte!

MiGo
15.10.08, 10:41
Und wo finde ich dieses Script?
Poste bitt erstmal _komplette_ Fehlermeldungen - so schweigsam ist der apache nämlich normalerweise nicht. Zum Vergleich eine Zeile aus meinem /var/log/apache2/error_log:

[Wed Sep 17 11:07:56 2008] [error] [client 127.0.0.1] script '/srv/www/delete.php' not found or unable to stat, referer: http://localhost/ist.php

rupe
15.10.08, 15:22
Poste bitt erstmal _komplette_ Fehlermeldungen - so schweigsam ist der apache nämlich normalerweise nicht.

Das ist die KOMPLETTE Fehlermeldung, mehr steht nicht hier!



Setuid/gid script is writable by world.
perl_parse: Inappropriate ioctl for device




wenn ich "httpd -e debug -k start" ausführe kommt auch nur das hier:



[root@host ~]# httpd -e debug -k start
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module auth_basic_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module auth_digest_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authn_file_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authn_alias_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authn_anon_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authn_dbm_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authn_default_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authz_host_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authz_user_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authz_owner_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authz_dbm_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authz_default_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module ldap_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module authnz_ldap_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module include_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module log_config_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module logio_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module env_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module ext_filter_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module mime_magic_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module expires_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module deflate_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module headers_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module usertrack_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module setenvif_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module mime_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module dav_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module status_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module autoindex_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module info_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module dav_fs_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module vhost_alias_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module negotiation_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module dir_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module actions_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module speling_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module userdir_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module alias_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module rewrite_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module proxy_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module proxy_balancer_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module proxy_ftp_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module proxy_http_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module proxy_connect_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module cache_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module suexec_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module disk_cache_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module file_cache_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module mem_cache_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module cgi_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module fcgid_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module cband_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module extract_forwarded_module
[Wed Oct 15 15:41:43 2008] [debug] mod_so.c(246): loaded module perl_module
[Wed Oct 15 15:41:44 2008] [debug] mod_so.c(246): loaded module php5_module
[Wed Oct 15 15:41:44 2008] [debug] mod_so.c(246): loaded module proxy_ajp_module
[Wed Oct 15 15:41:44 2008] [debug] mod_so.c(246): loaded module python_module
[Wed Oct 15 15:41:44 2008] [debug] mod_so.c(246): loaded module ssl_module

rupe
16.10.08, 07:03
Bitte helft mir doch, es ist ein kommerziell genutzter Server.
Da sind viele Kunden drauf. Und der Apache steht jetzt schon seit 3 Tagen.

Ich bin verzweifelt! :(

Was muss ich euch posten, damit Ihr im Bilde seid und mir weiterhelfen könnt?

marce
16.10.08, 07:08
wieso suchst Du nicht einfach nach dem Script mit z.B. find?

meinereinerseiner
16.10.08, 07:54
was liefert denn:

find / \( -perm -004000 -o -perm -002000 \) -type f -print


tom

MiGo
16.10.08, 08:21
Das ist die KOMPLETTE Fehlermeldung, mehr steht nicht hier!
In welcher Logdatei schaust du genau? Noch nichtmal Datum und Uhrzeit im Log, das ist ungewöhnlich (und macht das Logging ja nun auch fast Sinnlos).
Gibt's eventuell noch andere Logs (z.B. für jeden VHost eigene)?

marce
16.10.08, 08:23
bzw. wie ist die Config des Logs?

rupe
20.10.08, 09:51
Erst mal danke für eure mühen!

Hier meine httpd.conf (abschnitt für die Log):


ErrorLog logs/error_log
LogLevel debug

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

CustomLog logs/access_log common

CustomLog logs/referer_log referer
CustomLog logs/agent_log agent

CustomLog logs/access_log combined



Es gibt nur in der error_log Einträge beim Missglückten Start vom Apache:


Setuid/gid script is writable by world.
perl_parse: Inappropriate ioctl for device




"find / \( -perm -004000 -o -perm -002000 \) -type f -print" bekommt folgendes Ergebnis:



/bin/ping
/bin/ping6
/bin/umount
/bin/fusermount
/bin/mount
/bin/su
/lib/dbus-1/dbus-daemon-launch-helper
/dev/null
/sbin/mount.nfs
/sbin/pam_timestamp_check
/sbin/netreport
/sbin/unix_chkpwd
/usr/bin/Xorg
/usr/bin/sudo
/usr/bin/at
/usr/bin/gpasswd
/usr/bin/write
/usr/bin/chage
/usr/bin/pulseaudio
/usr/bin/lockfile
/usr/bin/wall
/usr/bin/ssh-agent
/usr/bin/locate
/usr/bin/rcp
/usr/bin/rsh
/usr/bin/chfn
/usr/bin/newgrp
/usr/bin/chsh
/usr/bin/crontab
/usr/bin/passwd
/usr/bin/rlogin
/usr/bin/sudoedit
/usr/kerberos/bin/ksu
/usr/lib/nspluginwrapper/plugin-config
/usr/lib/nagios/plugins/check_ide_smart
/usr/lib/nagios/plugins/check_dhcp
/usr/lib/nagios/plugins/check_icmp
/usr/lib/vte/gnome-pty-helper
/usr/lib/mailman/mail/mailman
/usr/lib/mailman/cgi-bin/options
/usr/lib/mailman/cgi-bin/roster
/usr/lib/mailman/cgi-bin/edithtml
/usr/lib/mailman/cgi-bin/admin
/usr/lib/mailman/cgi-bin/confirm
/usr/lib/mailman/cgi-bin/private
/usr/lib/mailman/cgi-bin/listinfo
/usr/lib/mailman/cgi-bin/create
/usr/lib/mailman/cgi-bin/rmlist
/usr/lib/mailman/cgi-bin/subscribe
/usr/lib/mailman/cgi-bin/admindb
/usr/lib/squid/ncsa_auth
/usr/lib/squid/pam_auth
/usr/sbin/userhelper
/usr/sbin/suexec
/usr/sbin/fping6
/usr/sbin/userisdnctl
/usr/sbin/ccreds_validate
/usr/sbin/sendmail.sendmail
/usr/sbin/usernetctl
/usr/sbin/lockdev
/usr/sbin/mgnokiidev
/usr/sbin/fping
/usr/libexec/polkit-grant-helper-pam
/usr/libexec/polkit-grant-helper
/usr/libexec/utempter/utempter
/usr/libexec/openssh/ssh-keysign