4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 22, 2014, 11:39:48 PM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  download.php issue
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: download.php issue  (Read 1411 times)
khansahib
Full Member
***
Offline Offline

Posts: 100

Thank You
-Given: 14
-Receive: 2


View Profile
« 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?
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 556

mmm PHP...


View Profile WWW
« Reply #1 on: December 07, 2012, 03:59:16 AM »

You forgot to explain what is the problem...
Logged

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)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.105 seconds with 19 queries.
Post your comments here