Page 1 of 1
PHP WS2k3
Posted: Thu Jun 12, 2003 9:30 pm
by Dak
Hello everyone,
I'm not sure if this is in the right forum, but i'll just try it anyways. Right now i'm running Windows Server 2003. I beileve im running IIS 6.0 or so. And I tried to install PHP from
http://www.php.net. I have installed the Windows Installer version and I have configured it on my IIS server
http://24.226.94.14 but the PHP won't load.
http://24.226.94.14/first.php will not load for me. I've set up the correct permissions and I have added it to my executibles under server properties in my inetmgr. Has anyone had a simular problem with WinS2K3? Or just in general can anyone tell me what im doing wrong? I would really appreciate that help, thank you.
Posted: Thu Jun 12, 2003 11:50 pm
by Dak
Wow this forum is dead. IS there like another programming language out there or something? Is Perl Dead allready?
Posted: Fri Jun 13, 2003 1:37 am
by Paddy
Shhh...everyone is asleep.

Posted: Fri Jun 13, 2003 8:33 am
by Dak
Ok, I will be very quiet. Pssssst *whispers* Do you know what's wrong?
Posted: Fri Jun 13, 2003 9:14 am
by caseymanus
I really dont know if anyone has tried to install PHP on Win2k3 yet, I havent. I would guess the problem would be with the IIS config though one way to prove it is to go the command line, navigate to the folder containing your page first.php and then type
C:\php\php.exe first.php
if it spits out the html you would expect to see then PHP works, if not it may be a problem with PHP on 2k3. Let me know what output that gives you.
Posted: Fri Jun 13, 2003 9:15 am
by caseymanus
That and I suspect this should be in the Normal forum, not client side...
Posted: Fri Jun 13, 2003 9:24 am
by twigletmac
It's a cross-post anyway:
viewtopic.php?t=9698
Mac
Posted: Fri Jun 13, 2003 9:30 am
by Dak
Sorry, I didn't know which forum to post it on. I asked, no one replied, so I assumed it was in the wrong forum.
Anywho, I do get the correct HTML when I do it.
Content-type: text/html
X-Powered-By: PHP/4.3.2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<h1>Hello!</h1>uyoboo
</body>
</html>
Is works just fine. I don't get why it's not working on my server.
Posted: Fri Jun 13, 2003 9:33 am
by Dak
Hmm, for some reason, I just re-installed the server on a standard settings in the installer, and it somewhat worked. At least I get an error message this time:
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.
For more information as to why this behaviour exists, see the manual page for CGI security.
For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit the manual page.
At least it's better than nothing. IT's saying something I don't quite understand. My guess is that php.ini is set up incorrectly. ?
Posted: Fri Jun 13, 2003 9:45 am
by caseymanus
I am going to have to defer to twig or Jason on this one.
Posted: Fri Jun 13, 2003 10:38 am
by Dak
Actually Nevermind. I got it working, finally!
I was obviously reading the wrong posts. Most posts that I read never told me to go to my INETMGR and allow unkown Isapi extensions. I did that, using the .zip from php.net. I moved my php4isapi.dll to my windows directory and enabled read and execute for guests. I also went into my php.ini in the Windows directory and turned off cgi.force_redirect. After doing that, it all worked.
http://24.226.94.14/first.php yay. Finally.