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 RileyFounder/CTOAsked:
Who is Participating?
 
LinuxGuruConnect With a Mentor Linux 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 RileyFounder/CTOAuthor Commented:
Where would I check that?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Nathan RileyFounder/CTOAuthor 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 RileyFounder/CTOAuthor 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 RileyFounder/CTOAuthor 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 RileyFounder/CTOAuthor Commented:
Where is the php log file?
0
 
grahamnonweilerCommented:
Check your PHP.INI file for the location of the log file.
0
All Courses

From novice to tech pro — start learning today.