Click to See Complete Forum and Search --> : phplib on Win 2000 page_open problem


Anon
02-22-2001, 12:34 AM
Hi! I would really appreciate some help. I developed a phplib application on a Win98/Apache/PHP/MySQL setup using sess, auth and perm. And it was working beautifully. But when I tried to install it on a Win2000/IIS, I only got Page Cannot Be Displayed errors. So I uninstalled IIS and put in Apache. I know PHP is working because phpinfo() works with both webservers. And MySQL is working with the setup because phpMyAdmin works fine under both. But when I open my phplib application pages that call the page_open function, the browser coughs up this error:

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

It's doesn't show any errors from the PHP processor. The browsers just won't bring up the page. When I add intentional errors in the page, then PHP shows an error.

Is the problem that phplib's session functions don't work with Win2000? Or did I forget an installation step?

Anyway, I'm just stumped. I would be very grateful for your help!

Thank you,
Truman Leung

Anon
02-27-2001, 10:44 PM
Just a guess but I would imagine this is a permissions error of some kind. I am just now looking at getting PHP and IIS5 and Win2k working together, I am normally a straight IIS5/ASP guy, but I have a potential client with PHP investment. But anyhow to your question, generally Win2k is much more anal about security than 98 is ( this is usually a good thing :) but you need to see if your website is running w/ anonymous connection the user will be IUSR_<MachineName> this user must a) have access to the files in question ( probably has this ) and more importantly that the OS will allow the user to execute anything from the phplib. My understanding is PHP only runs as cgi, which means the IUSR must have exec capability. Hope this helps narrow down your problems, start by looking at the dependencies to run the PHP and my guess is you'll find it fairly quickly if you know what you are looking for.