PDA

View Full Version : Getting 500 Internal Server Error



pavi99
12-21-2007, 01:06 PM
Hi to All,
Ours is a Matrimony website. When the user registers, he can upload his photograph as well as thumbnail. But it will be showned in the site after approving by Admin only. The site will totally monitor with Database using MySQL. Here the image path will be stored in Database.

Whenever, the user snap/photo approved by the admin... in the next second.. the site is getting error... 500 internal server error (Suspended)... etc...

If i go to the Database (phpmyadmin) and delete snaps paths from the database... again the site is working... what may be the problem... i could not understand and resolve...

If any body knows please help me out... where the problem exactly arising..

The code and everything is fine according to our knowledge.. there is no problem in code.

Regards
Pavan

shadmego
12-21-2007, 02:02 PM
Is there any other messages being given to you other than a 500 error? Have you looked at the error pages inside CPanel? You should find a more detailed explaination of the error there.

I don't know how much help we can be until we see exactly what the error is. I know you said there isn't a problem with the code, but that would be my first guess. It sounds like there is a problem in the approval process for pictures. It might be in the MySQL code or something, but I suggest you look at the Error logs in CPanel and either post those messages here, or just read them and track the problem down to a file name and line number.

~regards, and welcome to the Community!

pavi99
12-23-2007, 01:04 AM
Here is my recent log activity file....
pl. suggest me where the exact error happening...
regards
pavan

CPU Exceeded Log For Fri Dec 21 10:54:33 2007

Fri Dec 21 10:53:11 2007: used 0.04 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /admin/logout.php HTTP/1.1
Fri Dec 21 10:53:36 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:53:43 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:53:39 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:06 2007: used 0.66 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:03 2007: used 0.68 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:12 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:11 2007: used 0.70 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:15 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:16 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:16 2007: used 0.71 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:17 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:17 2007: used 0.70 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:18 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:14 2007: used 0.66 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:04 2007: used 0.68 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:05 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:06 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:53:48 2007: used 0.66 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:49 2007: used 0.67 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:50 2007: used 0.71 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:51 2007: used 0.68 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:52 2007: used 0.68 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:49:46 2007: used 0.01 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /javascript/editor.js HTTP/1.1
Fri Dec 21 10:49:39 2007: used 0.19 seconds of cpu time for HTTP Request: www.nireekshana.com : POST /admin/midlogin.php HTTP/1.1
Fri Dec 21 10:49:40 2007: used 0.26 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /admin/panel.php HTTP/1.1
Fri Dec 21 10:50:15 2007: used 0.01 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /javascript/check.js HTTP/1.1
Fri Dec 21 10:50:33 2007: used 0.23 seconds of cpu time for HTTP Request: www.nireekshana.com : POST /admin/approve_snaps.php HTTP/1.1
Fri Dec 21 10:50:19 2007: used 0.22 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /admin/getsnap.php?id=2&picid=1&typ=pic&width=100&height=100 HTTP/1.1
Fri Dec 21 10:50:06 2007: used 0.24 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /admin/approve_snaps.php HTTP/1.1
Fri Dec 21 10:50:20 2007: used 0.22 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /admin/getsnap.php?id=2&picid=1&typ=tn HTTP/1.1
Fri Dec 21 10:53:53 2007: used 0.71 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:54 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:55 2007: used 0.68 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:56 2007: used 0.70 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:57 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:53:57 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:58 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:53:13 2007: used 0.20 seconds of cpu time for HTTP Request: www.nireekshana.com : GET /admin/index.php HTTP/1.1
Fri Dec 21 10:53:45 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:46 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:47 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:53:47 2007: used 0.71 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:48 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:53:58 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:53:59 2007: used 0.70 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:00 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:00 2007: used 0.71 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:01 2007: used 0.70 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:02 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:02 2007: used 0.66 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:03 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:07 2007: used 0.68 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:12 2007: used 0.67 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:32 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:33 2007: used 1.00 seconds of cpu time for [[mysql query]]
Fri Dec 21 10:54:08 2007: used 0.68 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:09 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:10 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:13 2007: used 0.69 seconds of cpu time for /usr/bin/php index.php
Fri Dec 21 10:54:18 2007: used 0.40 seconds of cpu time for php
Fri Dec 21 10:54:19 2007: used 0.06 seconds of cpu time for PROCESS : /usr/bin/php index.php
Fri Dec 21 10:54:30 2007: used 1.00 seconds of cpu time for [[mysql query]]

Depeche
12-23-2007, 11:04 AM
Just a guess but did your CPU Exceed to its limit? I am no expert. Just a guess.