PHP WS2k3

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Dak
Forum Newbie
Posts: 11
Joined: Thu Jun 12, 2003 7:05 pm

PHP WS2k3

Post 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.
Dak
Forum Newbie
Posts: 11
Joined: Thu Jun 12, 2003 7:05 pm

Post by Dak »

Wow this forum is dead. IS there like another programming language out there or something? Is Perl Dead allready?
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

Shhh...everyone is asleep. :wink:
Dak
Forum Newbie
Posts: 11
Joined: Thu Jun 12, 2003 7:05 pm

Post by Dak »

Ok, I will be very quiet. Pssssst *whispers* Do you know what's wrong?
User avatar
caseymanus
Forum Commoner
Posts: 34
Joined: Wed Nov 20, 2002 10:32 pm
Contact:

Post 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.
User avatar
caseymanus
Forum Commoner
Posts: 34
Joined: Wed Nov 20, 2002 10:32 pm
Contact:

Post by caseymanus »

That and I suspect this should be in the Normal forum, not client side...
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

It's a cross-post anyway:
viewtopic.php?t=9698

Mac
Dak
Forum Newbie
Posts: 11
Joined: Thu Jun 12, 2003 7:05 pm

Post 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.
Dak
Forum Newbie
Posts: 11
Joined: Thu Jun 12, 2003 7:05 pm

Post 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. ?
User avatar
caseymanus
Forum Commoner
Posts: 34
Joined: Wed Nov 20, 2002 10:32 pm
Contact:

Post by caseymanus »

I am going to have to defer to twig or Jason on this one.
Dak
Forum Newbie
Posts: 11
Joined: Thu Jun 12, 2003 7:05 pm

Post by Dak »

Actually Nevermind. I got it working, finally!

:D

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.
Post Reply