Solved

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

Posted on 2013-10-25
4
1,070 Views
Last Modified: 2013-10-30
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
Comment
Question by:splanton
  • 2
4 Comments
 
LVL 58

Expert Comment

by:Gary
Comment Utility
Check permissions on the folders/files
Have you checked the log files to see what they say?
0
 
LVL 2

Author Comment

by:splanton
Comment Utility
Permissions all seem fine - users and system have read/execute etc.
Log files (iis) aren't saying much...
0
 
LVL 11

Accepted Solution

by:
Sanjay Santoki earned 500 total points
Comment Utility
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
 
LVL 2

Author Closing Comment

by:splanton
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This article discusses four methods for overlaying images in a container on a web page
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now