Solved

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

Posted on 2013-10-25
4
1,106 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

738 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