Solved

Downloading File from Server 0/kb

Posted on 2013-01-24
12
466 Views
Last Modified: 2013-02-11
In my application I'm able to upload and download files on our development server.

Moved it to our live server and I'm still able to upload, but when downloading all the files I get are 0/kb in size.  Almost like a permissions error to download or something, but I don't get an error.

When I FTP to the server I see the file there and if I download via FTP the file opens fine.

Do I need to allow apache access or something on my live server?  I'm on CENTOS.
0
Comment
Question by:N R
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 15

Expert Comment

by:Ess Kay
ID: 38815660
sounds like you indeed do have a permission problem,

check your configurations for downloads, something there is deffinately stopping it
perhaps you have a limit enabled of 0
0
 
LVL 11

Author Comment

by:N R
ID: 38815691
Where would I check that?
0
 
LVL 11

Author Comment

by:N R
ID: 38815727
Also I'm running plesk panel.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 13

Expert Comment

by:LinuxGuru
ID: 38817102
Might be something related to firewall? Could you please stop iptables on server and give it a try ?

service iptables stop

Open in new window


Or if any other firewall is installed, just stop it and see the results.

If it doesn't help, please check the apache error logs.  Logs can be located at the following location on server.

/var/www/vhosts/domainname.com/statistics/logs/error_log

Open in new window


Cheers!!!
0
 
LVL 11

Author Comment

by:N R
ID: 38817217
Tried #1 still didn't fix.

Tried #2 and there hasn't been a new error in there in months.

Any other ideas?
0
 
LVL 13

Expert Comment

by:LinuxGuru
ID: 38817394
Thanks for the update. Just to confirm, are you trying to download large files? If yes, what is the file size? Have you tried downloading a small file?

Is this server dedicated & do you have full access?

Cheers!!!
0
 
LVL 11

Author Comment

by:N R
ID: 38817413
Yes I have full access.

Nope small files less than 1 meg, images, excel, word docs ect....
0
 
LVL 13

Expert Comment

by:LinuxGuru
ID: 38817603
Could you please list the permission of download folder & files here?

You can use the following command through shell.

cd /directory
ls -al

Open in new window


Thanks!
0
 
LVL 16

Expert Comment

by:grahamnonweiler
ID: 38817633
Have you checked your PHP error log?

It is possible that PHP is causing the error, and not Apache. For instance, if you are using "readfile()" have you checked that your PHP scripts have the correct path information?

Is the PHP implementation and configuration on your test server the same as your production server?
0
 
LVL 11

Author Comment

by:N R
ID: 38819383
Where is the php log file?
0
 
LVL 16

Expert Comment

by:grahamnonweiler
ID: 38821419
Check your PHP.INI file for the location of the log file.
0
 
LVL 13

Accepted Solution

by:
LinuxGuru earned 500 total points
ID: 38823725
You should be able to locate php.ini using the following command.

php -i | grep php.ini

Open in new window


Cheers!!!
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question