Reply to Help with Lighttpd PHP PATH_INFO support...

Your name:

Reply:


Posted by fmcarol on 11/21/45 11:55

In the course of playing with my new Lighttpd
server, I ran into a problem with the PHP_SELF, PATH_INFO, and
ORIG_PATH_INFO variables - specifically, Lighty doesn't provide them to

my PHP install. Now, this isn't specifically a PHP issue, but so far no
one in the Lighty community has come up with a good fix for this -
short of doing without PATH_INFO.

Even after applying all the fixes I could find:

Adding "broken-scriptfilename" => "enable" to my PHP config in
lighttpd.conf

Set cgi.fix_pathinfo = 1 in /etc/php4/cgi/php.ini

Compiled PHP4 with ./configure --enable-fastcgi --with-ldap
--enable-ftp
--with-mysql --enable-force-redirect --enable-discard-path

Nothing works. A successful answer is one which, when applied to the
webserver hosting this, causes the PATH_INFO and related variables to
be filled correctly.

Below is some partial relevant output from my php and
lighttpd config:
>From phpinfo():
Configure Command './configure' '--enable-fastcgi' '--enable-ftp'
'--with-mysql' '--enable-force-redirect'
'--enable-discard-path'
....

_SERVER["SCRIPT_NAME"] /test/info.php
_SERVER["PATH_INFO"] no value
_SERVER["SCRIPT_FILENAME"] /var/www/test/info.php
_SERVER["DOCUMENT_ROOT"] /var/www/
_SERVER["REQUEST_URI"] /test/info.php
_SERVER["QUERY_STRING"] no value

>From lighttpd.conf:
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/local/bin/php",
"socket" => "/tmp/php4.socket",
"broken-scriptfilename" => "enable"
)
)
)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация