29.02.2012, 01:52
Sers Leute,
Ich bin ratlos. Ich habe nun 1 neuen Rootserver und wie immer fang ich an Apache zu installieren so den normalen Web-Zeug. Nunja ich hatte alles installiert und wollte Apache2 restarten und bekam folgende Meldung:
Ich bin ratlos. Ich habe nun 1 neuen Rootserver und wie immer fang ich an Apache zu installieren so den normalen Web-Zeug. Nunja ich hatte alles installiert und wollte Apache2 restarten und bekam folgende Meldung:
Code:
Starting web server: apache2
[Wed Feb 29 04:36:18 2012] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!
Ich habe dann versucht den Port zu finden der ja schon in Benutzungen ist mit netstat, grep, ps awx allerdings Ohne Erofolg es ist defintiv nicht vergeben der Port 80.
--
Betriebssystem : Debian Squeeze 6.0
--
Hab euch auch mal meine 'httpd.conf' und 'ports.conf' und die 'default' vom Ordner 'sites available' sowie die 'hosts' hochgeladen, hoffe ich könnt mir helfen.
Die Datei "httpd.conf" :
PHP-Code:
# 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
# My Virtual Hosts Config File for two Domains
ServerName localhost
NameVirtualHost *:80
Listen 80
<VirtualHost *:80>
ServerName localhost
ErrorLog "/var/log/apache2/in-error_log"
CustomLog "/var/log/apache2/in-access_log" common
</VirtualHost>
Die Datei 'ports.conf' :
PHP-Code:
# 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
ServerName localhost
NameVirtualHost *:80
Listen *:80
Listen 8080
<VirtualHost *:80>
ServerName localhost
ErrorLog "/var/log/apache2/in-error_log"
CustomLog "/var/log/apache2/in-access_log" common
</VirtualHost>
#<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
#</IfModule>
Die Hosts-Datei:
PHP-Code:
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 localhost ip6-localhost ip6-loopback
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
78.47.109.249 vm211.gsxtream-hosting.de vm211
Die Default-Datei:
PHP-Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.1/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Würde mich freuen wenn mir jemand helfen kann.
Gruß
Veritas