Hello, I run a server (Windows 2003 R2) and I'm trying to get PHP to function properly.
I have installed PHP (thread safe or something), and the FastCGI that I think I was supposed to download alongside (from reading the documentation). I can connect to the server but I have two major issues on hand:
The server doesn't want to run from index.php, it just loads the directory browser which is odd.
The server wont execute the .php file, it makes the client download it instead. I have done a setting via cmd to add .PHP file to hook to the correct executable (php-cgi.exe in /PHP)
Can anyone please help me resolve these issues? I would be very grateful.
Some simple specs:
- OS: Windows Server 2003 (R2)
- Web server: SSII or SSI or SII I can't remember anymore ._.
- Ram: 512MB
- 86bit (? or 64, I don't know. All I know is that it's something about i864 or something...)
Thank you!
[editline]3rd March 2011[/editline]
Shameless self bump, sorry! :( I need this server and HTTP software done ASAP.
You need to set up the Apache handler for the PHP files so it knows what to do with them.
Even though I don't use Apache and I use SII or SSI or something?
This microsoft site actually has the functionality to install PHP into IIS for you.
[url]http://php.iis.net/[/url]
However, there is also a tutorial here:
[url]http://learn.iis.net/page.aspx/248/configuring-the-fastcgi-extension-for-iis-60/[/url]
And last but no least, I haven't tried this one myself, is the Microsoft WebPlatform installer, which is probably the same thing as my first link but I don't know.
[url]http://www.microsoft.com/web/gallery/install.aspx?appsxml=www.microsoft.com%2Fweb%2Fwebpi%2F2.0%2FWebProductList.xml%3Bwww.microsoft.com%2Fweb%2Fwebpi%2F2.0%2FWebProductList.xml%3Bwww.microsoft.com%2Fweb%2Fwebpi%2F2.0%2FWebProductList.xml&appid=201%3B202%3B203[/url]
Give one of those a try and tell us how it works out.
Hmm... Double post...
Tried the php.iis.net, same problem. I've looked into the services on (in the management) and PHP is ticked and allowed.
I'll run you through what is happening to the main problem:
I connect via a desktop on the network, it lists all the files under the directory (where index.php is), I click on index.php (or even just go straight to it) and it downloads the php file instead of loading it up in the browser.
D:
[editline]3rd March 2011[/editline]
Hm, solved one half. I moved it to port 80 (changed it since I might of needed it).
Now I'm getting a 500 ERROR? Hm..
[editline]3rd March 2011[/editline]
OH SHIT! Let me look into this. It might just be the page that I'm using as index.
Any how the PHP you can install using the Web Platform install "always" works :) Atleast for me.
Why are you using that terrible webserver known as IIS? It's shit, full of bugs and full of even more nasty exploits that never get fixed, especially on older versions of Windows.
Install Apache instead, it's easier to use and easier to get PHP working with.
It's not for an entire webserver though. It's only to handle gamecp, not much.
Sorry, you need to Log In to post a reply to this thread.