Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The execution of my php script doing database queries is interrupted by a "Error: timeout on server" message or something like that after 30s, though I already made the following changes to avoid such timeouts:
1. inserted 'set_time_limit(360)' at the beginning of the script,
2. set 'max_execution_time=300' and 'max_input_time=600' in php.ini,
3. set 'Timeout 300' in httpd.conf, and restarted apache (apachectl restart)
Is there something I missed? Why my requests keep timing out?
I do not think so, since I could not find any timeout settings in postgresql.conf.
Besides, if there were any limitation on the runtime of a query or PostgreSQL connection, I do not think it would be as short as 30s (I think an SQL query is reasonably allowed to run for several minutes by default).
I tried it from within the LAN, and there is no 30s timeout!
So the timeout I experienced from home was either due to the fact that I connected to the server from the outside of our LAN, or maybe my efforts to sighup apache took effect after some hours of delay.
When I connect to the server from the outside I do it through a natd port forward on the firewall, and a stunnel between the http and https ports. I already checked stunnel, there is no 30s timeout (only a 300s one). A 30s timeout in natd seems unlikely, too.