Jump to content



Latest News: (loading..)

- - - - -

Probable timeout error on the server - how to fix.

timeout session php oscomm

  • Please log in to reply
4 replies to this topic

#1   brochure

brochure
  • Members
  • 109 posts
  • Real Name:Richard
  • Gender:Male

Posted 11 July 2012 - 06:16 PM

Dear friend.

I have what I believe is a timeout issue on my shared hosting.

I believe the solution lies in adding some code to the php.ini file but I'm not sure exactly what to ad, hence this post.

I've already done some Google and searches here on this forum for the answer and perhaps it lies in adding this to the php.ini file -

session.gc_maxlifetime = 1440

Maybe this is just for a user session?
(BTW my php.ini file does not contain this line of code at all. It's not a big file and the closest thing I see to any sort of timing is this `max_input_time = 60', but I tried changing it to 600 but I still get the same message when backing-up).

Please help and confirm if this is correct.

The reason why I believe it's a timeout issue is because of two things -

1.
When I try to backup the database in Oscommerce admin I get this error message after a while -
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

2.
And when I send an email to all my users (again via Oscommerce admin) I think it's also timing out because not everyone (myself included) receives the email.

Your technical help is appreciated!

#2 ONLINE   DunWeb

DunWeb
  • Members
  • 12,713 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 11 July 2012 - 06:47 PM

@brochure

session.gc_maxlifetime = 1440 is the admin area session time out and is found in the session.php file.

If your server is timing out, ask your hosting provider to look into the issue.  Often, shared servers are over-crowded and shared resources just aren't available all of the time to your customers.  Perhaps changing hosts would correct the issue or you may want to consider VDS or DS services.


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)  for more information and to contact me for professional osCommerce support that includes custom templates, add ons as well as cart leasing and support plans.

#3   brochure

brochure
  • Members
  • 109 posts
  • Real Name:Richard
  • Gender:Male

Posted 11 July 2012 - 06:57 PM

Thanks for the reply Chris but I'm not sure if it is a timeout error (I'm just assuming it is).

Is a `500 Internal Server Error' like I mentioned in my first post a timeout error?

#4 ONLINE   DunWeb

DunWeb
  • Members
  • 12,713 posts
  • Real Name:Chris
  • Gender:Male
  • Location:Ontario, Canada

Posted 11 July 2012 - 07:05 PM

@brochure

Can you post the contents of your .htaccess file and the php.ini file ?



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)  for more information and to contact me for professional osCommerce support that includes custom templates, add ons as well as cart leasing and support plans.

#5   brochure

brochure
  • Members
  • 109 posts
  • Real Name:Richard
  • Gender:Male

Posted 11 July 2012 - 10:07 PM

PM sent.