PHP as CGI - Redirect Problem

Alles, was PHP betrifft, kann hier besprochen werden.

PHP as CGI - Redirect Problem

Postby rethus » 28. April 2014 08:57

This is my vhost-file:

Code: Select all
<VirtualHost *:80>
  ServerName project.xx
  DocumentRoot /home/samuel/Projects/app/webroot
  <Directory "/home/samuel/Projects/app/webroot">
    DirectoryIndex index.php
    Options All
    AllowOverride All
    Require all granted


#    AddHandler php-cgi .php
    Action php-cgi /php-fcgi/php5328.fcgi
    <FilesMatch "\.php$">
    SetHandler php-cgi
    </FilesMatch>
  </Directory>
#LogLevel rewrite:trace3
    LogLevel debug

    CustomLog /home/samuel/Projects/access.log combined
    ErrorLog /home/samuel/Projects/error.log

</VirtualHost>


And this is the Debug-Message I've got, if I try to open a php File with just phpinfo() inside:


Code: Select all
[Mon Apr 28 09:33:43.060285 2014] [core:debug] [pid 16801] core.c(3513): [client 127.0.0.1:33664] AH00121: r->uri = /php-fcgi/php5328.fcgi/index.php
[Mon Apr 28 09:33:43.060302 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /index.php
[Mon Apr 28 09:33:43.060308 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /php-fcgi/php5328.fcgi/index.php
[Mon Apr 28 09:33:43.060312 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /index.php
[Mon Apr 28 09:33:43.060317 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /php-fcgi/php5328.fcgi/index.php
[Mon Apr 28 09:33:43.060322 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /index.php
[Mon Apr 28 09:33:43.060326 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /php-fcgi/php5328.fcgi/index.php
[Mon Apr 28 09:33:43.060331 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /index.php
[Mon Apr 28 09:33:43.060336 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /php-fcgi/php5328.fcgi/index.php
[Mon Apr 28 09:33:43.060342 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /index.php
[Mon Apr 28 09:33:43.060346 2014] [core:debug] [pid 16801] core.c(3520): [client 127.0.0.1:33664] AH00122: redirected from r->uri = /favicon.ico


If i comment out the CGI-Part, system run nice with php 5.5.
May there be a mistake in my vohost config ?
rethus
 
Posts: 1
Joined: 28. April 2014 08:52
Operating System: Linux

Return to PHP

Who is online

Users browsing this forum: No registered users and 2 guests