Solved

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

Posted on 2013-10-25
4
1,088 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
ID: 39600829
Check permissions on the folders/files
Have you checked the log files to see what they say?
0
 
LVL 2

Author Comment

by:splanton
ID: 39600853
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
ID: 39605871
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
ID: 39611633
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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

828 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