• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1159
  • Last Modified:

Server 2008r2 IIS 7 - 500 error with PHP info problem...

I have installed php 5.4.21 on a windows 2008 R2 server running IIS7.
I have followed everything for configuration in the IIS and in the php.ini according to the guides and now have the following issue:

If I create a test.php file with the classic:
<?php phpinfo();?>

Open in new window

It runs fine on my development machine (I've installed PHP before!)
I upload it to the server and I get a 500 Error.

If I run the same test.php file from the command line on the server (running php-cgi.exe) I get the output just fine (I am piping the output into a text file and then pasting that text file into a html page to display the contents correctly formatted).

Where can I start looking? Suggestions?

Regards,
0
splanton
Asked:
splanton
  • 2
1 Solution
 
GaryCommented:
Check permissions on the folders/files
Have you checked the log files to see what they say?
0
 
splantonAuthor Commented:
Permissions all seem fine - users and system have read/execute etc.
Log files (iis) aren't saying much...
0
 
Sanjay SantokiCommented:
Hello,

I would suggest; configure IIS to give you detailed error message on the website where you have put phpinfo file. Also, make sure that your browser is set to show detailed error message.

Addition to you can see event viwer for the detailed error.

Regards,
Sanjay Santoki
0
 
splantonAuthor Commented:
I have had awful problems getting any browser to show decent errors! I got round it by loading firefox onto the web server and running the page on there - low and behold a 'set locale' error was causing the failure. Set the time and date locale to London and all now works.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now