Re: Problem with php-fcgi and special URLS

"Ben Chabot" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Someone may have a better solution, I had the same problem.  For me, it was
convert params's to variables file.php4?param1=param1&param2=param2

Or use mod_rewrite, so file.php/param1/param2 rewrites to
file.php4?param1=param1&param2=param2 so it's invisible to the client.  I
didn't look into it heavily, because I just used GET variables and
mod_rewrite on the few sites that had a problem.

Later,
Ben

On 6:48:24 am 09/11/06 Marco Weber <[email protected]> wrote:
> Hi @All,
>
> I'm using SuSE10 with apache2, fastcgi, php5 (fcgi-version) and php4
> (as module).
> ( I'm using php with fcgi for 1,5 years on many hosts. )
>
> When i load the following special url:
> http://my.host.tld/file.php4/param1/param2 everything works as it
> should.
>
> But when i load the following special url:
> http://my.host.tld/file.php5/param1/param2 i get an "No input file
> specified." messsage.
> ( Directly loading the URL works... http://my.host.tld/file.php5 )
>
> Here is my configuration:
> ( i've just extracted the important parts from my apache
> configuration... )
>
> <IfModule mod_fastcgi.c>
>         FastCgiWrapper /usr/sbin/suexec2
> </IfModule>
>
>
>     Action application/x-httpd-php5-fcgi /fcgi-bin/php5-fcgi
>     AddType application/x-httpd-php5-fcgi .php .php5
>     # user and directory settings
>     SuexecUserGroup usr1002 wwwusers
>     ScriptAlias /fcgi-bin/ /srv/fcgi/usr1002/fcgi-bin/
>     <Directory "/srv/fcgi/usr1002/fcgi-bin">
>         AllowOverride None
>         Options ExecCGI -MultiViews +SymLinksIfOwnerMatch -Indexes
> -Includes         Order allow,deny
>         Allow from all
>     </Directory>
>
>
> My starter script is located under: /srv/fcgi/usr1002/fcgi-bin/php5-fc
> gi
> #!/bin/sh
> PHPRC="/srv/fcgi/usr1002/php5/"
> export PHPRC
> PHP_FCGI_CHILDREN=4
> export PHP_FCGI_CHILDREN
> exec '/srv/fastcgi/php5/bin/php'
>
>
> I know the problem is, that fastcgi tries to call:
> /file.php5/param1/param2 instead of calling /file.php5
>
> What can i do, so that those special URLs work with php-fcgi?
>
>
> Thanks in advance for any help.
>
> See you Marco
> ___________________________________
> fastcgi-developers mailing list
> http://fastcgi.com/fastcgi-developers/

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.