PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Debian 4.0: Leere httpd.conf



Seiten : [1] 2 3

Odin3011
03.05.07, 22:10
Hallo,
ich habe vor ein paar tagen debian 4.0 etch / testing auf meinem p3 server installiert. Wollte nun gucken ob der webserver funktioniert (apache testpage) aber nach kurzem suchen: Die httpd.conf ist leer :eek: wie kann das kommen? Wie kann man das beheben? apache2 ist installiert.

Gruß


Odin3011

eule
03.05.07, 22:26
Die httpd.conf ist leer :eek: wie kann das kommen?

Weil das jemand so vorkonfiguriert hat?


Wie kann man das beheben?

Indem man was reinschreibt:)

Schau dich mal in /etc/apache2/sites-available/ und /etc/apache2/sites-enabled um.

dingeling
03.05.07, 22:27
Macht doch nichts - die Konfigurationen sind auf einzelne Dateien in sites-enabled/ und auf die apache.conf unter /etc/apache2/ aufgeteilt.

Aber das ist schon seit Sarge so...

Odin3011
04.05.07, 06:51
Aha, schon mal danke. Das Problem war da nur immer: Ich tippe die IP des Servers im firefox ein und dann lädt er einfach nur und nichts passiert, also wird die testdatei nicht geladen, oder? Weil wenn ich apache 2 starten will, kommt:

./apache 2 restart :
Forcing reload of web server (apache2) ...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
httpd (no pid file) not running
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
.

marce
04.05.07, 06:58
... und dann? Laufen Apache-Prozesse, was steht im Error-Log, was sagt ein apachectl configtest, ...?

sharke
04.05.07, 14:03
probiert ?


Fehlermeldung Debian Apache Webserver :
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for Server Name
Lösung: Rechnernamen festlegen
Debian 4.0 : # echo DOMAIN > /etc/hostname
Debian 4.0 : # /bin/hostname -F /etc/hostname

mex604
04.05.07, 14:12
./apache 2 restart :
Forcing reload of web server (apache2) ...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
httpd (no pid file) not running
.


restart => versuchs mal mit start

wenn du local auf der kiste bist, geht dann http://127.0.1.1

was sagt netstat -plt (lokal) / portscan auf die kiste (von aussen)??


mex

Odin3011
04.05.07, 14:42
Hallo,
bei apache2 start kommt:
Starting Web Server (apache2)...apache2: Could not reliably determine's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:
(98)Address already in use: make_sock: could not bind to address 0.0.0
Unable to open logs
failed!

und netstat -plt:
server:/home/sven# netstat -plt
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:2208 *:* LISTEN 2432/hpiod
tcp 0 0 *:imaps *:* LISTEN 2969/inetd
tcp 0 0 *:nfs *:* LISTEN -
tcp 0 0 *:afpovertcp *:* LISTEN 2915/afpd
tcp 0 0 *:3269 *:* LISTEN 3111/rpc.statd
tcp 0 0 *:swat *:* LISTEN 2969/inetd
tcp 0 0 localhost:4617 *:* LISTEN 2435/python
tcp 0 0 localhost:mysql *:* LISTEN 2524/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 2978/smbd
tcp 0 0 *:pop3 *:* LISTEN 2969/inetd
tcp 0 0 *:imap2 *:* LISTEN 2969/inetd
tcp 0 0 *:sunrpc *:* LISTEN 2109/portmap
tcp 0 0 *:auth *:* LISTEN 2969/inetd
tcp 0 0 noname:domain *:* LISTEN 2375/named
tcp 0 0 localhost:domain *:* LISTEN 2375/named
tcp 0 0 localhost:ipp *:* LISTEN 2719/cupsd
tcp 0 0 *:1240 *:* LISTEN -
tcp 0 0 localhost:postgresql *:* LISTEN 2600/postmaster
tcp 0 0 localhost:smtp *:* LISTEN 2856/exim4
tcp 0 0 localhost:953 *:* LISTEN 2375/named
tcp 0 0 *:1018 *:* LISTEN 2959/rpc.mountd
tcp 0 0 localhost:4700 *:* LISTEN 2917/cnid_metad
tcp 0 0 *:microsoft-ds *:* LISTEN 2978/smbd
tcp6 0 0 *:www *:* LISTEN 3207/apache2
tcp6 0 0 *:domain *:* LISTEN 2375/named
tcp6 0 0 *:ssh *:* LISTEN 3010/sshd
tcp6 0 0 ip6-localhost:953 *:* LISTEN 2375/named
server:/home/sven#

Das mit dem DOMAIN und kopieren da, habe ich schon gemacht. vor den ausgaben oben.
Gruß

Odin3011

marce
04.05.07, 14:46
dann mach mal ein

grep -ri listen *
grep -ri port *
im VZ mit den Konfigdateien...

Das mit dem Servernamen ist übrgigens nur eine Warning - es dürfte den Server nicht am Starten hindern... - ansonsten gibt's evtl. noch ein Rechteproblem mit den Logfiles...

Du solltest mal die komplette Konfig analysieren...

Odin3011
04.05.07, 15:09
dann mach mal ein

grep -ri listen *
grep -ri port *
im VZ mit den Konfigdateien...

Das mit dem Servernamen ist übrgigens nur eine Warning - es dürfte den Server nicht am Starten hindern... - ansonsten gibt's evtl. noch ein Rechteproblem mit den Logfiles...

Du solltest mal die komplette Konfig analysieren...

Und wie analysiere ich die Konfig?
hier mal die LOG Datei: error.log:

[Tue May 01 16:42:13 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue May 01 16:42:13 2007] [notice] mod_python: using mutex_directory /tmp
[Tue May 01 16:42:13 2007] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-8+etch2 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
[Tue May 01 16:43:56 2007] [notice] caught SIGTERM, shutting down
[Tue May 01 16:53:04 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue May 01 16:53:04 2007] [notice] mod_python: using mutex_directory /tmp
[Tue May 01 16:53:04 2007] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-8+etch2 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
[Tue May 01 17:54:22 2007] [notice] caught SIGTERM, shutting down
[Tue May 01 17:54:30 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue May 01 17:54:30 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: mime_magic: type search/400\t\\\\input\t\ttext/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400\t\\\\section\ttext/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400\t\\\\setlength\ttext/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400\t\\\\documentstyle\ttext/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400\t\\\\chapter\ttext/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400\t\\\\documentclass\ttext/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type regex\t\t[Cc]onstant[[:space:]]+[Ss]tory\ttext/x-inform invalid in Unknown on line 0
[Tue May 01 17:54:32 2007] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-9 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
[Tue May 01 19:09:00 2007] [notice] caught SIGTERM, shutting down
[Tue May 01 19:09:09 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue May 01 19:09:09 2007] [notice] mod_python: using mutex_directory /tmp
[Tue May 01 19:09:12 2007] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-10 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
[Tue May 01 19:10:12 2007] [notice] caught SIGTERM, shutting down
[Tue May 01 19:10:22 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue May 01 19:10:22 2007] [notice] mod_python: using mutex_directory /tmp
[Tue May 01 19:10:23 2007] [notice] Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-10 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
[Tue May 01 20:33:07 2007] [notice] caught SIGTERM, shutting down
[Tue May 01 20:41:29 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Tue May 01 20:41:29 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Wed May 02 16:17:29 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed May 02 16:17:29 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Wed May 02 17:18:22 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed May 02 17:18:22 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Wed May 02 19:50:08 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed May 02 19:50:08 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Wed May 02 19:54:45 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed May 02 19:54:45 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Wed May 02 20:03:24 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed May 02 20:03:24 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Wed May 02 20:09:44 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed May 02 20:09:44 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Wed May 02 20:22:06 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed May 02 20:22:06 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Thu May 03 15:05:06 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu May 03 15:05:07 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Thu May 03 17:31:02 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu May 03 17:31:02 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Thu May 03 17:58:50 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu May 03 17:58:50 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Fri May 04 14:32:16 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri May 04 14:32:16 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav
[Fri May 04 15:03:35 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri May 04 15:03:35 2007] [notice] mod_python: using mutex_directory /tmp
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: cl_load: failed\n in Unknown on line 0
PHP Fatal error: Unable to start clamav module in Unknown on line 0
LibClamAV Error: cl_loaddbdir(): Can't get status of /var/lib/clamav

Odin3011
05.05.07, 12:52
Hallo, hat keiner noch eine Idee für mich??? :confused: :(

marce
05.05.07, 16:44
ähm, wie wäre es, wenn Du erst mal die bisher erwünschten Infos lieferst?

Odin3011
05.05.07, 16:52
ähm, wie wäre es, wenn Du erst mal die bisher erwünschten Infos lieferst?

Welche denn? Ich hab doch zu allen beiträgen geantwortet nur das mit der konfig analysieren da... das habe ich nicht kapiert :o

marce
05.05.07, 18:33
also ehrlich gesagt finde ich hier noch einige Fragen und Bitten um Ausgaben, die Du noch nicht geliefert hast...

MiGo
05.05.07, 20:06
dann mach mal ein

grep -ri listen *
grep -ri port *
im VZ mit den Konfigdateien...



Und wie analysiere ich die Konfig?


Will heissen: geh' in das Verzeichnis (VZ) /etc/apache2 und fuehr' da die Befehle aus.

urias
05.05.07, 20:18
doofe Frage, aber hast Du schonmal einen Neustart, nach dem was Du oben als ausgaben postest sieht es danach aus, das etwas Deinen Port 80 blockiert.

namentlich ein Prozess namens apache2


(98)Address already in use: make_sock: could not bind to address [::]:
(98)Address already in use: make_sock: could not bind to address 0.0.0

daher auch das.

alternativ, was passiert wenn Du per links und via localhost drauf zuzugreifen versuchst?

was sagt
ps -A

Odin3011
05.05.07, 21:06
Hallo,
befehle ausgeführt. Hier das Ergebnis:

server:/etc/apache2# grep -ri listen *
mods-available/bt.conf:# Set up the port we want to listen on
mods-available/bt.conf: Listen 6969
ports.conf:Listen 80


server:/etc/apache2# grep -ri port *
apache2.conf:# Include ports listing
apache2.conf:Include /etc/apache2/ports.conf
apache2.conf: # information on the fly. Note: Not all browsers support this.
apache2.conf: # Norwegian (no) - Polish (pl) - Portugese (pt)
apache2.conf: # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
apache2.conf:# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
apache2.conf: # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
apache2.conf: # Allow server status reports generated by mod_status,
apache2.conf: # Allow remote server configuration reports, with the URL of
mods-available/dav_svn.conf: #<LimitExcept GET PROPFIND OPTIONS REPORT>
mods-available/bt.conf:# Set up the port we want to listen on
mods-available/bt.conf:# ServerName is important if you're running other vhosts
mods-enabled/dav_svn.conf: #<LimitExcept GET PROPFIND OPTIONS REPORT>


@urias:

server:/etc/apache2# ps -A
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 events/0
5 ? 00:00:00 khelper
6 ? 00:00:00 kthread
9 ? 00:00:00 kblockd/0
10 ? 00:00:00 kacpid
75 ? 00:00:00 kseriod
110 ? 00:00:00 pdflush
111 ? 00:00:00 pdflush
112 ? 00:00:00 kswapd0
113 ? 00:00:00 aio/0
632 ? 00:00:00 khubd
929 ? 00:00:00 kjournald
1107 ? 00:00:00 udevd
1386 ? 00:00:00 kpsmoused
1476 ? 00:00:00 kgameportd
1782 ? 00:00:00 kmirrord
2115 ? 00:00:00 portmap
2353 ? 00:00:00 syslogd
2363 ? 00:00:00 klogd
2381 ? 00:00:00 named
2395 ? 00:00:00 lwresd
2438 ? 00:00:00 hpiod
2441 ? 00:00:00 python
2491 ? 00:00:00 mysqld_safe
2530 ? 00:00:09 mysqld
2531 ? 00:00:00 logger
2596 ? 00:00:00 postmaster
2598 ? 00:00:00 postmaster
2599 ? 00:00:00 postmaster
2600 ? 00:00:00 postmaster
2692 ? 00:00:00 acpid
2715 ? 00:00:02 cupsd
2723 ? 00:00:00 dbus-daemon
2731 ? 00:00:04 hald
2732 ? 00:00:00 hald-runner
2738 ? 00:00:00 hald-addon-acpi
2742 ? 00:00:00 hald-addon-keyb
2767 ? 00:00:00 hald-addon-stor
2775 ? 00:00:00 dhcdbd
2782 ? 00:00:00 NetworkManager
2797 ? 00:00:00 avahi-daemon
2798 ? 00:00:00 avahi-daemon
2805 ? 00:00:00 NetworkManagerD
2852 ? 00:00:00 exim4
2882 ? 00:00:00 thinkpad-keys
2883 ? 00:00:00 dhclient
2893 ? 00:00:00 hald-addon-keyb
2909 ? 00:00:00 papd
2911 ? 00:00:00 afpd
2913 ? 00:00:00 cnid_metad
2941 ? 00:00:00 nfsd4
2942 ? 00:00:00 nfsd
2943 ? 00:00:00 nfsd
2944 ? 00:00:00 nfsd
2945 ? 00:00:00 nfsd
2946 ? 00:00:00 nfsd
2947 ? 00:00:00 nfsd
2948 ? 00:00:00 nfsd
2949 ? 00:00:00 nfsd
2950 ? 00:00:00 lockd
2951 ? 00:00:00 rpciod/0
2955 ? 00:00:00 rpc.mountd
2965 ? 00:00:00 inetd
2972 ? 00:00:01 nmbd
2974 ? 00:00:00 smbd
2981 ? 00:00:00 shibd
2983 ? 00:00:00 smbd
2988 ? 00:00:00 sshd
3038 ? 00:00:00 winbindd
3059 ? 00:00:00 winbindd
3094 ? 00:00:00 gdm
3100 ? 00:00:00 gdm
3103 tty7 00:09:00 Xorg
3106 ? 00:00:00 rpc.statd
3119 ? 00:00:00 rpc.idmapd
3141 ? 00:00:00 atd
3148 ? 00:00:00 cron
3200 ? 10:41:50 apache2
3213 tty1 00:00:00 getty
3214 tty2 00:00:00 getty
3215 tty3 00:00:00 getty
3216 tty4 00:00:00 getty
3217 tty5 00:00:00 getty
3218 tty6 00:00:00 getty
3231 ? 00:00:00 x-session-manag
3274 ? 00:00:00 ssh-agent
3277 ? 00:00:00 dbus-launch
3278 ? 00:00:00 dbus-daemon
3280 ? 00:00:00 gconfd-2
3283 ? 00:00:00 gnome-keyring-d
3285 ? 00:00:00 bonobo-activati
3287 ? 00:00:01 gnome-settings-
3289 ? 00:00:00 esd
3295 ? 00:00:01 metacity
3306 ? 00:00:02 gnome-panel
3308 ? 00:00:04 nautilus
3311 ? 00:00:00 gnome-volume-ma
3313 ? 00:00:00 vino-session
3315 ? 00:00:00 bluetooth-apple
3318 ? 00:00:00 update-notifier
3323 ? 00:00:00 nm-applet
3326 ? 00:00:00 gnome-vfs-daemo
3331 ? 00:02:02 gnome-cups-icon
3338 ? 00:00:01 wnck-applet
3341 ? 00:00:00 gnome-power-man
3349 ? 00:00:00 mapping-daemon
3363 ? 00:00:00 gnome-screensav
3366 ? 00:00:00 notification-ar
3368 ? 00:00:00 clock-applet
3370 ? 00:00:01 mixer_applet2
3398 ? 00:00:02 gksu
3405 pts/0 00:00:00 su
3411 pts/0 00:00:00 gksu-run-helper
3416 pts/0 00:00:23 gnome-terminal
3418 pts/0 00:00:00 gconfd-2
3422 ? 00:00:00 bonobo-activati
3423 pts/0 00:00:00 gnome-pty-helpe
3424 pts/1 00:00:00 bash
5722 ? 00:00:00 winbindd
22131 ? 00:00:20 epiphany
22263 pts/1 00:00:00 ps
Und bei localhost kommt das selbe. jetzt gibt man die adresse ein und dann lädt er nur und nichts passiert...

EDIT:
Wenn ich apachectl configtest eintippe kommt: Command not found! Welche Pakete muss ich denn installieren damit der Befehl geht?
Zur Zeit sind von apache2 folgene Pakete installiert:
libapache2-mod diverse, apache2-perfork-dev, apache2-src, apache2-doc, apache2, apache2-mpm-prefork, apache2-utils, apache2.2-common, php5-apache2-mod-bt.

so, nun mal apache2ctl configtest aufgerufen. Antwort: Syntax OK


Und wenn ich jetzt nach /usr/sbin gehe, ./apache2 -k start eintippe kommt:

(98)Address already in use: make_sock: could not bind to adress [::]:80
(98)Address already in use: make_sock: could not bind to adress 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs Die Logs haben aber chmod 777!

Odin3011
06.05.07, 11:00
Hallo,
das waren jetzt alle antworten die ihr wolltet. und was ist jetzt die diagnose? Ich suche ja selbst die ganze zeit aber ohne erfolg :( es wäre sehr schön wenn der server so schnell wie möglich wieder läuft. ich habe aber 0 plan :confused: :(

Svenny
06.05.07, 11:07
Wenn ich apachectl configtest eintippe kommt: Command not found!

Du hast ja auch apache2 installiert.
Und wieso haben die Logfiles Chmod 777? Das würde ich aber ganz ganz schnell ändern.

Odin3011
06.05.07, 12:30
Du hast ja auch apache2 installiert.
Und wieso haben die Logfiles Chmod 777? Das würde ich aber ganz ganz schnell ändern.

Und auf welches CHMOD?

bla!zilla
06.05.07, 13:39
Auf 0644 oder 0600, je nach Paranoialevel.

Odin3011
06.05.07, 14:36
Auf 0644 oder 0600, je nach Paranoialevel.

So, hab ich gemacht, und was ist nun mit meinem ServerProblem?
Gruß

Odin3011

bla!zilla
06.05.07, 14:41
Ja einfach mal das richtige Kommando verwenden: apache2ctl configtest.

Odin3011
06.05.07, 14:50
so, nun mal apache2ctl configtest aufgerufen. Antwort: Syntax OK


Und wenn ich jetzt nach /usr/sbin gehe, ./apache2 -k start eintippe kommt:

(98)Address already in use: make_sock: could not bind to adress [::]:80
(98)Address already in use: make_sock: could not bind to adress 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs Die Logs haben aber chmod 777!


Ja einfach mal das richtige Kommando verwenden: apache2ctl configtest.

Was steht da bei meinem beitrag? apache2ctl configtest: Syntax OK

bla!zilla
06.05.07, 14:56
Was steht da bei meinem beitrag? apache2ctl configtest: Syntax OK

Ja schön, und?



(98)Address already in use: make_sock: could not bind to adress [::]:80
(98)Address already in use: make_sock: could not bind to adress 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs


Deine Logs sind erstmal das kleinere Problem. Nicht immer ist die Lösung für eine Fehlermeldung "unable to open logs" das Ändern der Rechte.

Poste bitte mal die Ausgabe von

netstat -an | grep 80

Odin3011
06.05.07, 15:09
Ja schön, und?



Deine Logs sind erstmal das kleinere Problem. Nicht immer ist die Lösung für eine Fehlermeldung "unable to open logs" das Ändern der Rechte.

Poste bitte mal die Ausgabe von

netstat -an | grep 80

Die Ausgabe:

server:/var/log/apache2# netstat -an | grep 80
tcp 1 0 192.168.178.27:3604 213.30.246.173:80 CLOSE_WAIT
tcp 1 0 192.168.178.27:3603 213.30.246.173:80 CLOSE_WAIT
tcp6 0 0 :::80 :::* LISTEN
unix 2 [ ACC ] STREAM HÖRT 9319 /tmp/orbit-sven/linc-d05-0-218053cc9cc71
unix 2 [ ACC ] STREAM HÖRT 9380 /tmp/.esd/socket
unix 2 [ ACC ] STREAM HÖRT 10115 /tmp/orbit-root/linc-dde-0-77f5804a54a52
unix 3 [ ] STREAM VERBUNDEN 10119 /tmp/orbit-root/linc-dde-0-77f5804a54a52
unix 3 [ ] STREAM VERBUNDEN 9880
unix 3 [ ] STREAM VERBUNDEN 9808 /tmp/orbit-sven/linc-d50-0-35d49994de873
unix 3 [ ] STREAM VERBUNDEN 9807
unix 3 [ ] STREAM VERBUNDEN 9806 /tmp/orbit-sven/linc-d69-0-5d7f00cf421a1
unix 3 [ ] STREAM VERBUNDEN 9805
unix 3 [ ] STREAM VERBUNDEN 9780 /tmp/orbit-sven/linc-d70-0-1c5336f73daca
unix 3 [ ] STREAM VERBUNDEN 9480
unix 3 [ ] STREAM VERBUNDEN 9366 /tmp/orbit-sven/linc-d05-0-218053cc9cc71
unix 3 [ ] STREAM VERBUNDEN 9323 /tmp/orbit-sven/linc-d05-0-218053cc9cc71
unix 3 [ ] STREAM VERBUNDEN 7980
server:/var/log/apache2#

bla!zilla
06.05.07, 15:13
Zumindest IPv6 technisch scheint da was zu horchen:



tcp6 0 0 :::80 :::* LISTEN


Beende den Prozess mal.

Odin3011
06.05.07, 15:21
Zumindest IPv6 technisch scheint da was zu horchen:



Beende den Prozess mal.

Und wie beende ich den? Bin nicht so erfahren mit kill. ich tippe kill -9 ein. Und wie kriege ich die JOB ID raus???

marce
06.05.07, 15:28
3200 ? 10:41:50 apache2
hast Du doch selbst gepostet...

Also ehrlich gesagt: Der Apache sagt, er läuft bereits. ps -A sagt, es läuft bereits ein Apache. Netstat sagt, es läuft bereits ein Apache. Und Du wunderst Dich über Fehlermeldungen beim Start?

Odin3011
06.05.07, 15:31
hast Du doch selbst gepostet...

Also ehrlich gesagt: Der Apache sagt, er läuft bereits. ps -A sagt, es läuft bereits ein Apache. Netstat sagt, es läuft bereits ein Apache. Und Du wunderst Dich über Fehlermeldungen beim Start?

bei kill -9 3200 kommt: kein passender prozess gefunden.
Wenn ich am server sitze und localhost oder 127.0.0.1 eintippe lädt er stunden und nichts passiert! Und das versuche ich ja mit eurer hilfe zu beheben.!