Downloading File from Server 0/kb

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.
LVL 12
Nathan RileyFounderAsked:
Who is Participating?
 
LinuxGuruLinux Server AdministratorCommented:
You should be able to locate php.ini using the following command.

php -i | grep php.ini

Open in new window


Cheers!!!
0
 
Ess KayEntrapenuerCommented:
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
 
Nathan RileyFounderAuthor Commented:
Where would I check that?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Nathan RileyFounderAuthor Commented:
Also I'm running plesk panel.
0
 
LinuxGuruLinux Server AdministratorCommented:
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
 
Nathan RileyFounderAuthor Commented:
Tried #1 still didn't fix.

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

Any other ideas?
0
 
LinuxGuruLinux Server AdministratorCommented:
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
 
Nathan RileyFounderAuthor Commented:
Yes I have full access.

Nope small files less than 1 meg, images, excel, word docs ect....
0
 
LinuxGuruLinux Server AdministratorCommented:
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
 
grahamnonweilerCommented:
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
 
Nathan RileyFounderAuthor Commented:
Where is the php log file?
0
 
grahamnonweilerCommented:
Check your PHP.INI file for the location of the log file.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.