Internet Disconnecting After a Few Hours

If you have inadequate PHP memory, you can increase the memory allocated to PHP: