PHP WS2k3
Moderator: General Moderators
PHP WS2k3
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.
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.
- caseymanus
- Forum Commoner
- Posts: 34
- Joined: Wed Nov 20, 2002 10:32 pm
- Contact:
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.
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.
- caseymanus
- Forum Commoner
- Posts: 34
- Joined: Wed Nov 20, 2002 10:32 pm
- Contact:
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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.
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.
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. ?
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. ?
- caseymanus
- Forum Commoner
- Posts: 34
- Joined: Wed Nov 20, 2002 10:32 pm
- Contact:
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.
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.