Solved

PHP issue ( need ASAP Please)

Posted on 2014-02-18
7
230 Views
Last Modified: 2014-03-06
we had a project running very well in the testing server, once we move to the production server it says 500 internal server error.

site details:
php 5.5
codeignter
iis 7.5

there is no errors in php error log
in the iis we got this

2014-02-18 16:34:39 10.0.20.10 POST /McIntosh/Authentication - 80 - 54.209.40.209 Mozilla/5.0+(compatible;+MSIE+10.0;+Windows+NT+6.1;+WOW64;+Trident/6.0) 200 0 0 218

let me know if you need any details
0
Comment
Question by:romeiovasu
[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
7 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39867955
Make sure you have error reporting enabled in your php pages

error_reporting(E_ALL);
ini_set( 'display_errors','1');


A 500 error could be anything in your code
0
 

Author Comment

by:romeiovasu
ID: 39867969
I will check it in the ini file and reload the page again.
0
 
LVL 4

Expert Comment

by:artsec
ID: 39869131
Please follow instructions here http://mvolo.com/troubleshoot-iis7-errors-like-a-pro/ to enable full error report in ISS to find out where is the problem.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 39869421
It might be URL rewriting issue due to Apache mod rewrite module not configured in IIS windows.  more details, http://ellislab.com/forums/viewthread/91954

For this, you could install this, http://www.isapirewrite.com/
0
 
LVL 9

Expert Comment

by:rinfo
ID: 39869771
My experience with CodeIgniter is there are a number of factors that causes 500 Internal server error.
Most prominent is bug in php script. Maybe if you are moving from windows to linux server
problem with file name - being case sensitive in linux.
Problem with database - incorrect database credentials, incorrect queries or query failing.
Try running a script page directly without CI convention you will get error for not being allowed but you can be ascertained that there is nothing wrong with configuration and it has
something to do with url redirect.
If i were you i would recheck  configuration files , router and database included.
This is a monster of an error message with no clue.
Best of luck.
0
 

Author Comment

by:romeiovasu
ID: 39870546
Thanks a lot for your help.
It suddenly worked fine after I enabled the display error in php.ini.
I don't know the actual reason. but it is up and  running now.

Thanks again
0
 
LVL 27

Expert Comment

by:skullnobrains
ID: 39881950
if this is actually what helped, you probably have accidentally solved a credentials problem with that file while editing it.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

749 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