Internal server error problem?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kalpesh
Forum Commoner
Posts: 54
Joined: Sun Sep 21, 2008 5:04 am

Internal server error problem?

Post by kalpesh »

hi,
I am getting 500 Internal Server Error in shared web hosting when i try to insert records in database.
It is not coming regularly but after insertion or updation of 10 or 12 records.
I am using linux based in shared web hosting with apache 2.5.6 and php 5.2.6 .
After internal server error occurs when i try to insert same record then at that time it inserted successfully.
I am not getting why i get that error sometimes.
Please help me.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Internal server error problem?

Post by Chris Corbyn »

You shouldn't ever get these errors, and doing so usually indicates a fault with the server itself.

You might get a 500 error in the case of a segmentation fault in PHP/Apache (should never happen). I've seen it happen when memory limits have been exhausted through massive recursion too, but again, the 500 error should not be the result, it's usually a faulty PHP installation.

If you have access to your error logs, check them for anything odd.
Post Reply