Project

General

Profile

Lighttpd and PHP for Windows Problem

Added by JJ about 16 years ago

I'm having a very unusual problem and I am looking for any suggestions that can help.

I have the lighttpd binaries for version 1.4.20-1 for Win32 and the php binaries for version 5.2.8 (cgi/fcgi). I have tried this on Windows XP Professional and Windows Vista Ultimate and received the same results.

First I obtained the binaries and copied them to a USB Drive following the steps posted here (http://www.legendrefamily.org/blog/archives/92). I was able to start lighttpd and reach the server on port 81. Then I created a test.php page with the phpinfo call inside and that worked as expected. I was finished building my portable development platform. Then I actually tried doing some php development. I immediately started getting 404 Page not Found errors, when I knew the pages were there. I went back to the test page and it still worked. Here is the odd part. Any page that has a call to phpinfo in the page works. Any page that does not have it does not work. I am pretty stumped by this one.

Another thing I noticed was that if the page contained simple PHP and phpinfo () it would work. This included the print command. If I used more complex code like sqlite_open call it gives the same 404 error.

I can tell you that html pages work in lighttpd. I can tell you that I updated my installation based on the comments found here (http://joshdick.net/index.php?section=article&name=lighttpd) with no luck. I can tell you that I get the same behavior on the Vista machine with PHP/Apache/MySQL already working on that machine as I do on the XP machine with none of those installed.

I just can't sort this one out. I appreciate any comments or suggestions that anyone can provide.

Thanks!


Replies (1)

RE: Lighttpd and PHP for Windows Problem - Added by JJ about 16 years ago

bump since my post fell off the list?

    (1-1/1)