News:

Wondering if this will always be free?  See why free is better.

Main Menu

upgrading to PHP5 on windows = no output

Started by NoRad, August 30, 2004, 10:42:20 AM

Previous topic - Next topic

NoRad

Not sure where to post this, so if it's in the wrong spot I'm sorry.

I'm running IIS 5 on windows 2000. I upgraded from PHP4 to PHP5 today and after walking through the manual installation I can't get it to work.

I run php -i and I have no errors.
I've added c:\php to my path
I've setup ISAPI filter using php5isapi.dll
and I've associated .php extension with php5isapi.dll

I enabled my required extensions (mhash, gd2, mysql)
I've copied the mysql lib to my php folder.

I hit my site running SMF and I get html and body tags. That's it. No errors. =(

NoRad

Hmmm not sure exactly what solved it, but I had to do the damn installation package afterall. Looks like it was the scriptmapping.

NoRad

#2
blah. It's using the CGI now instead of ISAPI. Which one is better?

PHP5 is running very slow.

NoRad

I love replying to myself... Anyways, it looks like I'm just hanging now on individual topic pages. It's waiting on opi.yahoo.com and icq etc... What's that all about?

[Unknown]

That means it's trying to load your online status, and can't - weird.

ISAPI is much better - I suggest you change it back ;).  PHP was probably failing because you added mysql - you need to copy all the dll files from the PHP directory into system32.

-[Unknown]

NoRad

I'm trying to avoid copying any PHP files to the windows folder. I've added c:\php\ as a path in my system paths so that it can find things.

If I change it to ISAPI I get nothing.

[Unknown]

Are you able to use the server or remote desktop into it?

-[Unknown]

NoRad

Yeah, I terminal serviced into it as admin. I tried switching it to ISAPI on home directory / configuration - all I get is that blank screen with HTML/BODY tags.

[Unknown]

So no error messages?  If it was having trouble loading dlls, you'd get something (on the server) when PHP starts - at the same time you access a page.

Well, I guess you'll have to use cgi :/.

-[Unknown]

NoRad

Yeah, no error messages at all. It looks like it just doesn't do *anything* when trying to run in ISAPI mode. I'll try scouring the web a bit more. I was working on the server this morning with only 3 hours of sleep. Around the time I made this post I was desperate for help because I couldn't stand my servers being down for more than 3 hours...

[Unknown]

Heh, sorry.

Well, I run IIS 6 with it in ISAPI mode.  How are you configuring it?  Similar to as described in my guide?

-[Unknown]

NoRad

Hmmm I followed the guide on www.php.net
What's the link to your PHP guide?

Metho

Joshua "Methonis" Frazer
Support Specialist
The Simple Machines Team

NoRad


NoRad

Here is the solution to my problem (thanks to unknown for assistance with this via pm).

Even though the PHP5 installation instructions says to AVOID using the C:\WINNT folder if possible and to add c:\php to your system paths, this method would not work for IIS 5 and PHP5 using ISAPI mode. The solution was to copy php.ini, libmysql.dll, and php5isapi.dll into the c:\WINNT folder and give them permissions for the IUSR_ account (a step you can easily forget if you've already given permissions to c:\php and files inside of it).

Once you do that, follow the steps to adding the .php extension to your IIS configuration and reboot (actually, I didn't have to reboot IIS, but it's better to be safe).

Silly PHP5. =)

NoRad

So I reboot my machine today after having this problem fixed and now it says invalid memory access at this location... So wtf? I'm back on CGI mode now. ISAPI quit working.

NoRad

Tried reinstalling. Same problem. You know, SMF is the only PHP application that I run where the cookies do not run in CGI mode.

[Unknown]

SMF isn't a PHP application :P.  Those can be found here.

What exact error do you get?  Can you set up a virtual directory and test it there?  What about just phpinfo.php, any lunk there?

-[Unknown]

NoRad

Nope, nothing on phpinfo. I think the ISAPI.dll is really buggy or something (at least that's what I've read). It's like it won't even let me access the file.

[Unknown]

Quote from: Radianation on September 16, 2004, 04:01:40 PM
Nope, nothing on phpinfo. I think the ISAPI.dll is really buggy or something (at least that's what I've read). It's like it won't even let me access the file.

I've used in on multiple servers for development and production exclusively (read: I hate CGI) without flaw.  I did encounter that problem with PHP 5 once, locally, though - but resolved it quickly.

You might try copying all related dlls to system32, not just some, and running the isapi from there.   Make sure that temp, possibly system32, and windows are all readably by IUSR_*.  As well, ensure that your website and php.ini are readable too.

Does cli work?  This means, from the command line, trying to run cli/php.exe or php-cli.exe.

-[Unknown]

Advertisement: