Apache 2 installation - Problem mit httpd.conf
Apache 2 installation - Problem mit httpd.conf
Hallo,
ich habe ein Problem, das ich überhaupt nicht nachvollziehen kann, ich habe eben ein Update auf Apache 2 gemacht (von 1.3.33) das lief soweit auch ganz gut, nun häng ich aber an der httpd.conf.
Ich dachte er übernimmt die der 1.3er Version nur war das nicht der Fall.
Ich habe überhaupt keine Ahnung wo er sich die config herholt die er gerade geladen hat.
Man sieht z. B. hier: http://213.133.110.218/ oder hier http://bm.lifferth.de das er immer ein redirectmatch auf apache2-default macht.
Ich hab nun ca. 3 stunden nach dieser config gesucht, allerdings konnte ich sie einfach nicht finden.
Daher meine Frage wo finde ich die aktuell geladene httpd.conf?
Der Ordner /etc/apache2 ist bis phpmyadmin.conf leer.
Ich hoffe ihr könnt mir helfen.
In den Logs konnte ich nichts finden, es geht um Debian 3.1
Vielen Dank
EDIT: Eine info.php funktioniert aber trotzdem, das ist aber auch alles was geht: http://bm.lifferth.de/info.php
ich habe ein Problem, das ich überhaupt nicht nachvollziehen kann, ich habe eben ein Update auf Apache 2 gemacht (von 1.3.33) das lief soweit auch ganz gut, nun häng ich aber an der httpd.conf.
Ich dachte er übernimmt die der 1.3er Version nur war das nicht der Fall.
Ich habe überhaupt keine Ahnung wo er sich die config herholt die er gerade geladen hat.
Man sieht z. B. hier: http://213.133.110.218/ oder hier http://bm.lifferth.de das er immer ein redirectmatch auf apache2-default macht.
Ich hab nun ca. 3 stunden nach dieser config gesucht, allerdings konnte ich sie einfach nicht finden.
Daher meine Frage wo finde ich die aktuell geladene httpd.conf?
Der Ordner /etc/apache2 ist bis phpmyadmin.conf leer.
Ich hoffe ihr könnt mir helfen.
In den Logs konnte ich nichts finden, es geht um Debian 3.1
Vielen Dank
EDIT: Eine info.php funktioniert aber trotzdem, das ist aber auch alles was geht: http://bm.lifferth.de/info.php
Re: Apache 2 installation - Problem mit httpd.conf
Code: Select all
locate httpd.confRe: Apache 2 installation - Problem mit httpd.conf
debian:/# locate httpd.conf
/etc/apache/httpd.conf
/usr/share/apache/default-configs/apache/httpd.conf
/usr/share/apache/default-configs/apache-perl/httpd.conf
/usr/share/apache/default-configs/apache-ssl/httpd.conf
/usr/share/doc/apache-common/examples/httpd.conf-dist
/usr/share/doc/apache/examples/httpd.conf
debian:/#
erstere ist es definitiv nicht, nur welche davon könnte es sein?
Hab den Apache 1 heruntergefahren, ihn per apt-get remove apache entfernt und Apache 2 mit apt-get install apache2 installiert.
Vielen Dank
EDIT: Ich hab jetzt mal alle gefundenen Dateien nach apache2-defaults durchsucht, nirgendwo wurde dieser Eintrag gefunen.
/etc/apache/httpd.conf
/usr/share/apache/default-configs/apache/httpd.conf
/usr/share/apache/default-configs/apache-perl/httpd.conf
/usr/share/apache/default-configs/apache-ssl/httpd.conf
/usr/share/doc/apache-common/examples/httpd.conf-dist
/usr/share/doc/apache/examples/httpd.conf
debian:/#
erstere ist es definitiv nicht, nur welche davon könnte es sein?
Hab den Apache 1 heruntergefahren, ihn per apt-get remove apache entfernt und Apache 2 mit apt-get install apache2 installiert.
Vielen Dank
EDIT: Ich hab jetzt mal alle gefundenen Dateien nach apache2-defaults durchsucht, nirgendwo wurde dieser Eintrag gefunen.
Re: Apache 2 installation - Problem mit httpd.conf
Ich glaub nun hab ich dir korrekte httpd.conf (heißt apache2.conf, das soll mal einer wissen :roll: ) gefunden.
Ich hab in der Datei mal Server Root verändert und das wird dann in der phpinfo auch widergegeben, scheint also die richtige config zu sein.
Allerdings bekomme ich das Problem nicht gelöst das er immer auf /apache2-default/ will, in der config steht weder ein redirect noch ein alias.
Danke
Ich hab in der Datei mal Server Root verändert und das wird dann in der phpinfo auch widergegeben, scheint also die richtige config zu sein.
Allerdings bekomme ich das Problem nicht gelöst das er immer auf /apache2-default/ will, in der config steht weder ein redirect noch ein alias.
Danke
Re: Apache 2 installation - Problem mit httpd.conf
Gibt es bei Debian noch andere Konfigurationsdateien (wie z.B. bei Gentoo /etc/conf.d/ oder bei SuSE /etc/sysconfig/)? Mit welchen Optionen wird Debians Apache2 gestartet?
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Apache 2 installation - Problem mit httpd.conf
So also die apache2.conf ist definitiv korrekt, wenn ich Ã?nderungen darin ausführe werden diese widergegeben, verstelle ich daran was fährt der Apache nicht wieder hoch.
Nun habe ich wirklich "nurnoch" das Problem das er immer alles auf /apache2-default/ umleitet.
Hier mal die apache2.conf:
http://213.133.110.218/apache2-default/apache2.conf
Vielen Dank
Nun habe ich wirklich "nurnoch" das Problem das er immer alles auf /apache2-default/ umleitet.
Hier mal die apache2.conf:
http://213.133.110.218/apache2-default/apache2.conf
Vielen Dank
Re: Apache 2 installation - Problem mit httpd.conf
Jetzt komm ich der Sache langsam näher
Hab unter /etc/apache2 zwei Ordner gefunden:
sites-available
sites-enabled
Darin liegt jeweils eine Datei, diese ist so aufgebaut:
So langsam komm ich nicht mehr weiter :roll:
Danke
Hab unter /etc/apache2 zwei Ordner gefunden:
sites-available
sites-enabled
Darin liegt jeweils eine Datei, diese ist so aufgebaut:
Darin hab ich nun endlich den redirect gesehen und auskommentiert, nun bekomme ich beim restart des Apaches, diese Meldung:<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</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 /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
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.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
Nun wollte ich im Apachen einen virtuellen Server anlegen, danach geht garnichts mehr und ich bekomme nurnoch einen Internal Server Error.debian:~# /etc/init.d/apache2 restart
Forcing reload of web server: Apache2[Sun Nov 13 19:11:19 2005] [warn] NameVirtualHost 213.133.110.218:0 has no VirtualHosts
[Sun Nov 13 19:11:20 2005] [warn] NameVirtualHost 213.133.110.218:0 has no VirtualHosts
So langsam komm ich nicht mehr weiter :roll:
Danke
Re: Apache 2 installation - Problem mit httpd.conf
Dein Problem residiert irgendwo in:
Code: Select all
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include generic snippets of statements
Include /etc/apache2/conf.d/[^.#]*
# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/[^.#]*
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Apache 2 installation - Problem mit httpd.conf
Also das problem mit dem Internal Server Error habe ich gefunden, lag an einer .htaccess die bei dem 1.3.33er wunderbar funktionierte.
Mehr als eine weiße Seite bekomme ich allerdings nun nicht zu sehen bm.lifferth.de
Mehr als eine weiße Seite bekomme ich allerdings nun nicht zu sehen bm.lifferth.de
Re: Apache 2 installation - Problem mit httpd.conf
Ich werd bald wahnsinnig mit dem Ding.
Unter Virtuelle Server habe ich nun:
Standard Server:
Adresse: Beliebig
Port: Beliebig
Server-Name: 213.133.110.218
Dokument-Root: /var/www
Und:
Adresse: bm.lifferth.de
Port: Beliebig
Server-Name: bm.lifferth.de
Dokument-Root: /var/kunden/webs/bmc
So nun hab ich unter /var/www/syscp, Syscp installiert, diese müsste ich ja nun über 213.133.110.218/syscp erreichen, tue ich aber nicht, stattdessen sucht er unter /var/kunden/webs/bmc/syscp nach syscp aber nicht unter /var/www/syscp
EDIT: Wenn ich den vHost dann lösche funktioniert der Standard Server wieder
Unter Virtuelle Server habe ich nun:
Standard Server:
Adresse: Beliebig
Port: Beliebig
Server-Name: 213.133.110.218
Dokument-Root: /var/www
Und:
Adresse: bm.lifferth.de
Port: Beliebig
Server-Name: bm.lifferth.de
Dokument-Root: /var/kunden/webs/bmc
So nun hab ich unter /var/www/syscp, Syscp installiert, diese müsste ich ja nun über 213.133.110.218/syscp erreichen, tue ich aber nicht, stattdessen sucht er unter /var/kunden/webs/bmc/syscp nach syscp aber nicht unter /var/www/syscp
Woran könnte das nun wieder liegen?[Sun Nov 13 21:00:09 2005] [error] [client 213.6.194.84] File does not exist: /var/kunden/webs/bmc/syscp
EDIT: Wenn ich den vHost dann lösche funktioniert der Standard Server wieder
Re: Apache 2 installation - Problem mit httpd.conf
das hängt an der Reihenfolge der Vhosts. Einen bestimmten nimmt er, wenn er keinen eindeutig zuordnen kann. Normalerweise definiert man den Standard als erstes, der dann auch angesprochen wird.
