Author Topic: download.php issue  (Read 4637 times)

0 Members and 1 Guest are viewing this topic.

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
download.php issue
« on: December 03, 2012, 07:34:51 PM »
Hello,

Today I was having some issue with my server, I contacted support believe me they are awesome people I mean they are very hard working and take the problems very seriously. Well my ticket related to problem was assigned to senior admin, after reviewing here is what he suggested.

****************
For the most part, I would go through your script and make sure it is not having issues serving files. Most people that do file downloads don't process the download via PHP to serve static content as long running downloads can take forever to process:
 
root@server [/home/user/public_html]# ps aux |grep download
user 14732  0.0  0.2 225172 18280 ?        S    23:10   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 15164  0.0  0.2 225172 18280 ?        S    23:11   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 15646  0.0  0.2 226456 19496 ?        S    23:12   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 16213  0.0  0.2 225172 18152 ?        S    23:14   0:00 /usr/bin/php /home/user/public_html/apps/download.php
user 16877  0.0  0.2 225532 18628 ?        S    23:15   0:00 /usr/bin/php /home/user/public_html/themes/download.php
user 16960  0.0  0.1 218856 13304 ?        S    23:15   0:00 /usr/bin/php /home/user/public_html/games/download.php
user 17606  0.0  0.1 218856 13320 ?        S    23:16   0:00 /usr/bin/php /home/user/public_html/games/download.php
user 17664  0.1  0.2 225532 18616 ?        S    23:17   0:00 /usr/bin/php /home/user/public_html/themes/download.php
root     17771  0.0  0.0  61192   768 pts/0    S+   23:17   0:00 grep download
root@server [/home/user/public_html]# date
Mon Dec  3 23:17:24 PKT 2012
 
I am not sure what your site is letting them download through this script but they have been running for a long time (7min on the top process) so if they have a slow connection (like downloading them to their phone with bad reception/data) this could lead to long running PHP processes on your server. It is far better to let Apache serve static content rather than streaming it through PHP. This is something to take up with your developers.
*********************

Can anybody please help on this?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: download.php issue
« Reply #1 on: December 07, 2012, 03:59:16 AM »
You forgot to explain what is the problem...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)