Reputation: 1096
I have an Apache server running a PHP website.
When I am uploading a file or downloading a file from/to my server via the website, my whole website cannot respond to any other queries the time the download finishes.
It looks like my Apache has only 1 thread and cannot serve any other queries while my download is not finished.
My server has Debian, on a Pentium4 3Ghz CPU with 1Go RAM.
Question
How can I fix this issue so I can serve queries while Apache uploads or downloads a file to another client?
Upvotes: 2
Views: 2647
Reputation: 360742
Have you tried directly accessing an image or some non-PHP resource on the server? I doubt Apache would freeze from a file upload, but PHP scripts might.
If you've configured PHP to auto-start sessions, the default file-based session handler locks the session file for the lifetime of the script, which means your upload will lock out all other PHP scripts for the duration of the upload.
So, try directly hitting an image, or some text, etc... something that isn't PHP and see if the server responds. If it does, then it's your PHP configuration, and the session handler is the most likely culprit.
Upvotes: 1
Reputation: 16055
I'd recommend reading this http://httpd.apache.org/docs/current/mod/core.html#keepalive and providing the right settings for Your apache server...
Upvotes: 1