xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Das sieht soweit eigentlich gut aus. Steht irgendwas in den Logdateien?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 7795
|
Hi, keine Meldung von heute: | grpc@grpc-MS-7658:/var/log/apache2$ cat error.log
[Tue Apr 30 16:58:21 2013] [notice] caught SIGTERM, shutting down
[Tue Apr 30 16:58:22 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.6 with Suhosin-Patch configured -- resuming normal operations
[Tue Apr 30 19:06:44 2013] [notice] caught SIGTERM, shutting down
|
. | rpc@grpc-MS-7658:/var/log/apache2$ cat access.log
127.0.0.1 - - [30/Apr/2013:16:28:01 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - - [30/Apr/2013:16:28:01 +0200] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - - [30/Apr/2013:16:28:42 +0200] "GET /server-status HTTP/1.1" 200 1400 "http://www.linux-club.de/viewtopic.php?f=22&t=64576" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0"
127.0.0.1 - - [30/Apr/2013:16:44:11 +0200] "GET /vnstat HTTP/1.1" 404 496 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0"
|
Sind das alle *.log, die du benötigst ❓ im Anhang ist das Ergebnis, wenn ich im Firefox http:/localhost/vnstat eingebe. ein Ping auf den Localhost geht. grpc@grpc-MS-7658:~$ ping -c 4 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=0.023 ms
64 bytes from 127.0.0.1: icmp_req=2 ttl=64 time=0.025 ms
64 bytes from 127.0.0.1: icmp_req=3 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_req=4 ttl=64 time=0.028 ms
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.023/0.026/0.029/0.004 ms
- Bilder
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Hast Du noch andere Logdateien eingerichtet? Was gibt Dir grep -irn log /etc/apache2 aus? Was passiert, wenn Du sudo service apache2 stop && sudo service apache2 start ausführst?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 7795
|
Hi,
Was gibt Dir grep -irn log /etc/apache2 aus
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 | grpc@grpc-MS-7658:~$ grep -irn log /etc/apache2
/etc/apache2/apache2.conf:24:# Configuration and logfile names: If the filenames you specify for many
/etc/apache2/apache2.conf:27:# with "/", the value of ServerRoot is prepended -- so "foo.log"
/etc/apache2/apache2.conf:29:# server as "/etc/apache2/foo.log".
/etc/apache2/apache2.conf:41:# configuration, error, and log files are kept.
/etc/apache2/apache2.conf:185:# HostnameLookups: Log the names of clients or just their IP addresses
/etc/apache2/apache2.conf:194:# ErrorLog: The location of the error log file.
/etc/apache2/apache2.conf:195:# If you do not specify an ErrorLog directive within a <VirtualHost>
/etc/apache2/apache2.conf:197:# logged here. If you *do* define an error logfile for a <VirtualHost>
/etc/apache2/apache2.conf:198:# container, that host's errors will be logged there and not here.
/etc/apache2/apache2.conf:200:ErrorLog ${APACHE_LOG_DIR}/error.log
/etc/apache2/apache2.conf:203:# LogLevel: Control the number of messages logged to the error_log.
/etc/apache2/apache2.conf:207:LogLevel warn
/etc/apache2/apache2.conf:221:# a CustomLog directive (see below).
/etc/apache2/apache2.conf:224:LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
/etc/apache2/apache2.conf:225:LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
/etc/apache2/apache2.conf:226:LogFormat "%h %l %u %t \"%r\" %>s %O" common
/etc/apache2/apache2.conf:227:LogFormat "%{Referer}i -> %U" referer
/etc/apache2/apache2.conf:228:LogFormat "%{User-agent}i" agent
/etc/apache2/mods-available/log_forensic.load:1:LoadModule log_forensic_module /usr/lib/apache2/modules/mod_log_forensic.so
/etc/apache2/mods-available/ssl.conf:32:# Pass Phrase Dialog:
/etc/apache2/mods-available/ssl.conf:34:# The filtering dialog program (`builtin' is a internal
/etc/apache2/mods-available/ssl.conf:35:# terminal dialog) has to provide the pass phrase on stdout.
/etc/apache2/mods-available/ssl.conf:36:SSLPassPhraseDialog exec:/usr/share/apache2/ask-for-passphrase
/etc/apache2/conf.d/other-vhosts-access-log:1:# Define an access log for VirtualHosts that don't define their own logfile
/etc/apache2/conf.d/other-vhosts-access-log:2:CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
/etc/apache2/sites-available/default-ssl:25: ErrorLog ${APACHE_LOG_DIR}/error.log
/etc/apache2/sites-available/default-ssl:29: LogLevel warn
/etc/apache2/sites-available/default-ssl:31: CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
/etc/apache2/sites-available/default:24: ErrorLog ${APACHE_LOG_DIR}/error.log
/etc/apache2/sites-available/default:28: LogLevel warn
/etc/apache2/sites-available/default:30: CustomLog ${APACHE_LOG_DIR}/access.log combined
/etc/apache2/apache2.conf~:24:# Configuration and logfile names: If the filenames you specify for many
/etc/apache2/apache2.conf~:27:# with "/", the value of ServerRoot is prepended -- so "foo.log"
/etc/apache2/apache2.conf~:29:# server as "/etc/apache2/foo.log".
/etc/apache2/apache2.conf~:41:# configuration, error, and log files are kept.
/etc/apache2/apache2.conf~:185:# HostnameLookups: Log the names of clients or just their IP addresses
/etc/apache2/apache2.conf~:194:# ErrorLog: The location of the error log file.
/etc/apache2/apache2.conf~:195:# If you do not specify an ErrorLog directive within a <VirtualHost>
/etc/apache2/apache2.conf~:197:# logged here. If you *do* define an error logfile for a <VirtualHost>
/etc/apache2/apache2.conf~:198:# container, that host's errors will be logged there and not here.
/etc/apache2/apache2.conf~:200:ErrorLog ${APACHE_LOG_DIR}/error.log
/etc/apache2/apache2.conf~:203:# LogLevel: Control the number of messages logged to the error_log.
/etc/apache2/apache2.conf~:207:LogLevel warn
/etc/apache2/apache2.conf~:221:# a CustomLog directive (see below).
/etc/apache2/apache2.conf~:224:LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
/etc/apache2/apache2.conf~:225:LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
/etc/apache2/apache2.conf~:226:LogFormat "%h %l %u %t \"%r\" %>s %O" common
/etc/apache2/apache2.conf~:227:LogFormat "%{Referer}i -> %U" referer
/etc/apache2/apache2.conf~:228:LogFormat "%{User-agent}i" agent
/etc/apache2/sites-enabled/000-default:24: ErrorLog ${APACHE_LOG_DIR}/error.log
/etc/apache2/sites-enabled/000-default:28: LogLevel warn
/etc/apache2/sites-enabled/000-default:30: CustomLog ${APACHE_LOG_DIR}/access.log combined
/etc/apache2/envvars:15:# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
/etc/apache2/envvars:21:# Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
/etc/apache2/envvars:22:export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
grpc@grpc-MS-7658:~$
|
Was passiert, wenn Du sudo service apache2 stop && sudo service apache2 start ausführst?
| grpc@grpc-MS-7658:~$ sudo service apache2 stop && sudo service apache2 start
[sudo] password for grpc:
* Stopping web server apache2
* Starting web server
apache2
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Und was sagt sudo netstat -tlpen ?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 7795
|
1
2
3
4
5
6
7
8
9
10
11
12
13 | grpc@grpc-MS-7658:~$ sudo netstat -tlpen
[sudo] password for grpc:
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 0 1713 817/smbd
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 0 423009 3522/apache2
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 0 12610 1550/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 9517 894/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 0 1711 817/smbd
tcp6 0 0 :::139 :::* LISTEN 0 1709 817/smbd
tcp6 0 0 ::1:631 :::* LISTEN 0 9516 894/cupsd
tcp6 0 0 :::445 :::* LISTEN 0 1706 817/smbd
grpc@grpc-MS-7658:~$
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Ändere die Listen Option in /etc/apache2/conf.d/ports.conf mal auf Listen *:80 , damit die Angabe mit Deinen virtuellen Hosts übereinstimmt.
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 7795
|
ok, erfogt siehe nachfolgend. 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | # If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen *:80
# siehe : http://wiki.ubuntuusers.de/Apache#Auf-lokales-System-beschraenken
Listen localhost:80
# NameVirtualHost *
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
|
der Restart zeigt das hier: | grpc@grpc-MS-7658:~$ sudo service apache2 restart
* Restarting web server apache2
(98)Address already in use: make_sock: could not bind to address 127.0.0.1:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Das irritiert mich jetzt. Welche Ausgabe gibt Dir denn sudo netstat -tulpen , nachdem Du den Apache mit sudo service apache2 stop angehalten hast?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 7795
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | grpc@grpc-MS-7658:~$ sudo service apache2 stop
[sudo] password for grpc:
* Stopping web server apache2 [ OK ]
grpc@grpc-MS-7658:~$ sudo netstat -tulpen
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 0 1713 817/smbd
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 0 12610 1550/dnsmasq
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 0 9517 894/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 0 1711 817/smbd
tcp6 0 0 :::139 :::* LISTEN 0 1709 817/smbd
tcp6 0 0 ::1:631 :::* LISTEN 0 9516 894/cupsd
tcp6 0 0 :::445 :::* LISTEN 0 1706 817/smbd
udp 0 0 192.168.1.255:137 0.0.0.0:* 0 11025 1648/nmbd
udp 0 0 192.168.1.106:137 0.0.0.0:* 0 11024 1648/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 0 11021 1648/nmbd
udp 0 0 192.168.1.255:138 0.0.0.0:* 0 11027 1648/nmbd
udp 0 0 192.168.1.106:138 0.0.0.0:* 0 11026 1648/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 0 11022 1648/nmbd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 107 8096 870/avahi-daemon: r
udp 0 0 0.0.0.0:45012 0.0.0.0:* 107 8097 870/avahi-daemon: r
udp 0 0 127.0.0.1:53 0.0.0.0:* 0 12609 1550/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 9476 1475/dhclient
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Sieht alles okay aus? Wie hast Du die Listen Option denn eingetragen? Zeig am besten mal den kompletten Inhalt der Datei.
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 7795
|
Sry,
Zeig am besten mal den kompletten Inhalt der Datei
Ich bin gemäß Wiki vorgegangen, da habe ich nichts entsprechendes gefunden.
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Ich meinte /etc/apache2/conf.d/ports.conf, aber die hattest Du ja oben schon gepostet. Im Moment ist die Listen Option da doppelt. Du musst deswegen die in Zeile 10 entfernen.
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 7795
|
Sry, 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | # If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen *:80
# siehe : http://wiki.ubuntuusers.de/Apache#Auf-lokales-System-beschraenken
# Listen localhost:80
# NameVirtualHost *
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
|
Der Restart sieht jetzt so aus: | grpc@grpc-MS-7658:~$ sudo service apache2 restart
[sudo] password for grpc:
* Restarting web server apache2
... waiting [ OK ]
|
Sry ist ist wieder die Zeit wo der Rechner angeweitig benutz wird. Ggf bis morgen . Danke
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Das sieht doch schon mal gut aus. Immerhin startet der Apache jetzt. Was bekommst Du denn nun für Fehlermeldungen, wenn Du das Frontend nutzen willst?
|