Page 1 of 1

Apache neu straten?

Posted: 2007-11-04 14:59
by totalo
Hallo ich habe eine Änderung der httpd.conf vorgenommen und nun möchte ich Apache neu straten damit diese Änderung in Kraft tritt.

Ich gebe folgendes ein:

Code: Select all

/etc/init.d/apache(2) restart
Dann kommt diese Fehlermeldung:

Code: Select all

Debian-40-etch-64-LAMP:~# /etc/init.d/apache(2) restart
-bash: syntax error near unexpected token `2'
Weiß jemand woran das liegt?

Danke im Vorraus!

Re: Apache neu straten?

Posted: 2007-11-04 15:17
by oxygen
das ist einfach falsch.
/etc/init.d/apache restart bzw. /etc/init.d/apache2 restart sollte gehen.

Re: Apache neu straten?

Posted: 2007-11-04 15:19
by sonnenrot

Code: Select all

shutdown -P
manuell lesen ?

falls Nein
syntax error

Re: Apache neu straten?

Posted: 2007-11-04 15:21
by totalo

Code: Select all

Debian-40-etch-64-LAMP:~# /etc/init.d/apache2 restart 
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using xx.xx.xx.xx for ServerName
 waiting apache2: Could not reliably determine the server's fully qualified domain name, using xx.xx.xx.xx for ServerName

Re: Apache neu straten?

Posted: 2007-11-05 09:13
by sledge0303
totalo wrote:

Code: Select all

Debian-40-etch-64-LAMP:~# /etc/init.d/apache2 restart 
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using xx.xx.xx.xx for ServerName
 waiting apache2: Could not reliably determine the server's fully qualified domain name, using xx.xx.xx.xx for ServerName
Also diese Meldung ist schon ein Wink mit dem Zaunpfahl samt Zaun...

Re: Apache neu straten?

Posted: 2007-11-05 11:57
by floogy
Bitte lies mal folgende Artikel/Bücher:

http://www.debiananwenderhandbuch.de/
http://www.jfranken.de/homepages/johann ... he.de.html

http://de.wikipedia.org/wiki/FQDN#Fully ... .28FQDN.29
http://httpd.apache.org/docs/2.2/de/
http://httpd.apache.org/docs/2.0/de/mod ... servername
http://httpd.apache.org/docs/2.2/de/vho ... based.html

$ man grep
$ grep -n ServerName /etc/apache2/apache2.conf
In der angegebenen Zeilennummer trägst Du dann die fqdn Deines servers ein.

Hilfreich kann auch eine Googlesuche sein:
apache web server debian Einführung
apache web server debian HOWTO
apache web server debian FAQ

http://www.pro-linux.de/forum/viewtopic ... +literatur
http://www.debianhowto.de/
http://www.howtoforge.org/taxonomy_menu/1/1/46