php.de

Zurück   php.de > Webentwicklung > Server, Hosting und Workstations

Server, Hosting und Workstations Server-Konfigurationsdateien (.htaccess/httpd.conf) und Arbeiten auf Serverebene

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 09.06.2011, 08:09  
Erfahrener Benutzer
 
Benutzerbild von dreamcatcher
 
Registriert seit: 28.12.2010
Beiträge: 603
PHP-Kenntnisse:
Anfänger
dreamcatcher wird schon bald berühmt werden
Standard [Erledigt] VirtualHosts - Apache 2 (Zend + Debian Squeeze)

Es soll ein VirtualHost angelegt werden für ein Zend Projekt.

Debian Squeeze, PHP 5.3.3-7+squeeze1, Apache 2.2.16.

Wenn ich das Projekt per localhost aufrufe, klappt es wunderbar.

Wenn ich es allerdings versuche per quickstart.local aufzurufen, erhalte ich einen Internal Server Error.

In der Error.log steht folgendes:

PHP-Code:
[Thu Jun 09 07:59:24 2011] [error] [client 127.0.0.1Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace
Gesagt getan, nachdem ich LogLevel auf debug gestellt habe kommt folgendes heraus:

PHP-Code:
[Thu Jun 09 07:59:24 2011] [debugcore.c(3063): [client 127.0.0.1r->uri = /cgi-bin/php5/index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /cgi-bin/php5/index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /cgi-bin/php5/index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /cgi-bin/php5/index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /cgi-bin/php5/index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /index.php
[Thu Jun 09 07:59:24 2011] [debugcore.c(3069): [client 127.0.0.1redirected from r->uri = /favicon.ico
[Thu Jun 09 07:59:24 2011] [debugmod_deflate.c(615): [client 127.0.0.1ZlibCompressed 620 to 382 URL /cgi-bin/php5/index.php 
Daher dachte ich, dass das Problem vllt. in folgendem Abschnitt meiner apache2/sites-enabled/default Datei liegt:

PHP-Code:
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <
Directory "/usr/lib/cgi-bin">
        
AllowOverride All
        Options 
+ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow
,deny
        Allow from all
    
</Directory
Diesen habe ich gelöscht, Webserver neu gestartet... hat auch nichts gebracht.


Virtual Hosts Datei (apache2/sites-enabled/default):
PHP-Code:
<VirtualHost *:80>
    
ServerAdmin webmaster@localhost

    
# This should be omitted in the production environment
    
SetEnv APPLICATION_ENV development

    DocumentRoot 
/var/www
    
<Directory />
        
Options Indexes MultiViews FollowSymLinks
         AllowOverride All
         Order allow
,deny
        Allow from all
    
</Directory>
    <
Directory /var/www/>
        
Options Indexes MultiViews FollowSymLinks
         AllowOverride All
         Order allow
,deny
        Allow from all
    
</Directory>

    
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <
Directory "/usr/lib/cgi-bin">
        
AllowOverride All
        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 debug

    CustomLog 
${APACHE_LOG_DIR}/access.log combined

    Alias 
/doc"/usr/share/doc/"
    
<Directory "/usr/share/doc/">
        
Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order deny
,allow
        Deny from all
        Allow from 127.0.0.0
/255.0.0.0 ::1/128
    
</Directory>
</
VirtualHost>

<
VirtualHost *:80>
    
ServerName quickstart.local
    DocumentRoot 
/var/www/projects/projectname/public
 
    
SetEnv APPLICATION_ENV "development"
 
    
<Directory /var/www/projects/projectname/public>
       
Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order allow
,deny
       Allow from all
    
</Directory>
</
VirtualHost
projectname/public/.htaccess
PHP-Code:
RewriteEngine On
RewriteCond 
%{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule 
^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L
/etc/hosts
PHP-Code:
127.0.0.1    localhost
127.0.1.1    debian
.speedport.ip    debian
127.0.0.1    quickstart
.local

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00
::0 ip6-localnet
ff00
::0 ip6-mcastprefix
ff02
::1 ip6-allnodes
ff02
::2 ip6-allrouters 
Per google fand ich Leute die das gleiche Problem haben, aber meist umständlichere .htaccess Dateien hatten worin dann der Fehler bestand.

Meine ist die "Standard" Zend .htaccess.

Woran kann es noch liegen, erkennt jemand den Fehler oder hat Tipps zum weiteren debuggen ?
dreamcatcher ist offline   Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 09.06.2011, 08:14  
Erfahrener Benutzer
 
Benutzerbild von dreamcatcher
 
Registriert seit: 28.12.2010
Beiträge: 603
PHP-Kenntnisse:
Anfänger
dreamcatcher wird schon bald berühmt werden
Standard

Nachdem ich meinen eigenen Post durchgelesen habe kam mir die Idee.

PHP-Code:
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin
    <
Directory "/usr/lib/cgi-bin"
        
AllowOverride All 
        Options 
+ExecCGI -MultiViews +SymLinksIfOwnerMatch 
        Order allow
,deny 
        Allow from all 
    
</Directory
Sollte nich gelöscht werden sondern wird (wahrscheinlich wegen dem automatisch installieren Suhosin ?) in jedem virtual host benötigt !

Lösung ist also :

PHP-Code:

<VirtualHost *:80>
    
ServerName quickstart.local
    DocumentRoot PFAD
 
    SetEnv APPLICATION_ENV 
"development"
 
    
<Directory PFAD>
       
Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order allow
,deny
       Allow from all
    
</Directory>

    
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <
Directory "/usr/lib/cgi-bin">
        
AllowOverride All
        Options 
+ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow
,deny
        Allow from all
    
</Directory>

</
VirtualHost
Thats it
dreamcatcher ist offline   Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Windows + Apache + PHP + Imagick Chriz Tutorials 23 19.09.2011 16:15
[Erledigt] PHPINIDir takes one argument |Error| - PHP 5.3.6 + Apache 2.2 + Win7 x64 dreamcatcher Server, Hosting und Workstations 3 21.04.2011 12:36
Apache mit PHP 5 und Mysql Makenshi Server, Hosting und Workstations 9 08.07.2010 18:16
Xampp -> Apache Server High Loaded! Jabbo Server, Hosting und Workstations 4 14.06.2010 00:13
Apache und Php installieren bumer2006 Server, Hosting und Workstations 17 13.01.2010 11:18
Apache - PHP - eAccelerator - Problem M*I*B Server, Hosting und Workstations 0 09.06.2009 09:20
Apache 2.2 & PHP 5.x freq.9 Server, Hosting und Workstations 26 25.03.2009 21:41
Apache 2.2.4 mit PHP 5 MerlinderZauberer Server, Hosting und Workstations 4 29.03.2007 15:59
[Erledigt] Zu blöd um MySQL in PHP einzurichten? Apache Server PHP Tipps 2006 18 30.01.2006 23:39
Apache und IIS? lomtas Server, Hosting und Workstations 1 23.11.2005 13:44
[Erledigt] PHP5 mit Apache zum Laufen bringen... PHP Tipps 2005-2 11 22.10.2005 17:52
php Warnung nach Apache Update PHP Tipps 2005 2 07.02.2005 13:38
Mehrere Benutzer und private Verzeichnisse mit Apache fantast Server, Hosting und Workstations 19 18.01.2005 13:59
[Erledigt] Apache Hilfe Server, Hosting und Workstations 16 31.12.2004 17:18
Apache - php - Mysql Problem Server, Hosting und Workstations 4 15.07.2004 17:09

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
zend debian, debian squeeze apache, apache2 debian squeeze, debian squeeze virtualhost, debian squeeze vhost, debian squeeze apache2 virtual hosts, debian squeeze apache vhost einrichten, debian squeeze apache2 virtualhost, zend debian squeeze, debian squeeze zend, apache php index.php, debian 6 virtual hosts, squeeze virtual host erstellen, virtual host debian squeeze, apache2 debian squeeze virtualhost, limitinternalrecursion virtualhost, vhost debian squeeze, squeeze zend, \redirected from r->uri\ \zend\, debian squeeze htaccess

Alle Zeitangaben in WEZ +2. Es ist jetzt 22:07 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum