Click to See Complete Forum and Search --> : PHP4, PWS and Win98


Anon
09-20-2000, 08:27 AM
I can't believe this - I've read just about all the posts and no one seems to have had the same problem as me. Which probably means that it's all my fault :-(

I have:
- Read the manual
- Done the REG bit
- Copied the DLLs
- Switched on execute in PWS
- Rebooted my machine
- Searched this support forum

But:

1. When I access a file in my browser (just to see phpinfo() on screen) I simply see my PHP code printed on the screen in the window (like a text file would be)

2. If I double click the file in Win Explorer it runs correctly in a DOS window cos I see the HTML code go flashing past

What have I missed out?

Please help...

Thanks
Richard

Anon
09-20-2000, 10:25 AM
Two questions.

1) Did you copy the PHP.ini file to your Windows directory?
2) When you access the file in your browser, does the URL start with http:// or file://? The former will execute the code on the server and the latter will not.

Anon
09-20-2000, 12:44 PM
Unfortunately, both suggestions you make have already been done.

The ini file is in place and the URL I use starts http://...

Any more ideas?

One point I should make is that I am currently keeping PHP3 running for some stuff I need to do. I know this may cause problems but I figured that by following the full install instructions in the manual but adjusting to suit (e.g. I use php4file instead of phpfile etc)

Anon
09-20-2000, 01:51 PM
I had problems for days getting everything going for me, I read everything on every site Icould find. I finally uninstalled everything I had used the easywindows installer from
php.weblogs.com I used it and then I reinstalled PWS and rebooted and it just suddenly worked, maybe give it a try, It might work!

Anon
09-21-2000, 05:46 AM
I have the same problem as RichardT. But instead of installing PHP4 on Win98, I installed it on WinNT 4.0.

I followed the instructions on the readme file that came with the PHP4 installation files exactly. I copied the PHP4TS.DLL file to \Winnt\system32, changed the file php.ini-dist to php.ini, edit the PWS-php4.reg and executed it (C:\\Program Files\\php\\php4isapi.dll), and updated my PWS manager (\myphp). I did all as per instructed.

Then, I created a little PHP file with the following content and saved the file as test.php under C:\Program Files\php.


<BODY>
<?PHP
echo "My first PHP installation!";
?>
</BODY>


However, when I tried to execute this file (http://localhost/myphp/test.php), the web browser output only this sentence: "The specified module could not be found."

So, I opened the php.ini file and remove all the semicolon (";") in front of all the extensions. When I rebooted my system, it still gave me the same error message.

What should I do?

Anon
09-21-2000, 11:25 AM
Eugene,

On Win NT, aren't you running IIS instead of PWS? The readme file outlines a different set of steps for IIS than PWS.

I found when installing on Win 2000 that executing the registry update screwed up an otherwise good install. I had to install through the IIS Administration tool.

Maybe you can run PWS instead of the full-blown IIS on NT, but I don't know why you would want to.

Anon
09-21-2000, 09:56 PM
Well, I'm running PWS instead of IIS on WinNT 4.0 (workstation version). I presume that we cannot install IIS on a workstation but on a server, right? Correct me if I'm wrong.

Anyway, is there any solution to my problem?

Anon
09-22-2000, 10:17 AM
I'm running IIS on Win2000 workstation version (not server). It came as part of my installation CD as an option in the custom install, but it was not part of the typical install. I have worked with people who had IIS for Win NT 4 workstation, so I didn't think there were any difference (except maybe the version of IIS) but I haven't run it on my own system, so I'm not 100% sure.