473,320 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help with Lighttpd PHP PATH_INFO support...

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"
)
)
)

Aug 12 '06 #1
0 2000

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: college | last post by:
I compiled a recent version of php 4.3.8 on Suse 9.0 Pro with apache 1.3.28 that was a precompiled for Suse as an rpm. When I look at phpinfo(), I do not see the environment setting $_SERVER...
0
by: Kevin T. Ryan | last post by:
Hi All - I'm trying to develop web applications using python / Cheetah. I'm also trying to experiment with lighttpd (see www.lighttpd.net), which supports fast-cgi. So, I downloaded Robin...
0
by: venkatbo | last post by:
Hi folks, I'm trying to get lighttpd, fastcgi & python working on a 2.4.21.x i686 linux system. I tried following the steps in: ...
4
by: Chuck Anderson | last post by:
This may be more of an Apache question, but after an upgrade at my remote host (one of them being from Php4 to Php5), $_SERVER no longer contains any data. Instead, the string I am looking for is...
1
by: AvngAngl | last post by:
Hi, I'm currently a student at Ashford University and a couple of my fellow classmates are having a difficult time accessing an area of our online school. It is called What's the Rule - practice...
0
by: Csaba Gabor | last post by:
Does anyone know what the deal is on ORIG_PATH_INFO vs. PATH_INFO? I use the "real" path_info from the server (e.g. in http://webcomp.org/index.php/something/else, the path_info is...
9
by: Gilles Ganault | last post by:
Hello I was looking for a lighter web server than Apache, and installed Lighttpd on CentOS through yum. It works fine, but I now need to use SQLite from a PHP script. I seem to understand that...
2
by: Gilles Ganault | last post by:
Hello I have Lighttpd, PHP in FastCGI, and MySQL up and running on FreeBSD. Now, I'd like to find a tool to stress things, so I can check what happens when I try different things to improve...
1
by: Gilles Ganault | last post by:
Hello There's not much activity in the Lighttpd forum, so I figured maybe some people here use this web server instead of Apache, and would know the cause of the problem. PHP scripts can...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.