HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   Can't upload files using php file upload: Debian Sarge (

tsmaudio 6th April 2007 19:38

Can't upload files using php file upload: Debian Sarge
Hi guys
I have a strange problem that I hope someone might be able to help with.
My new server is running Debian Sarge and IspConfig, set up using falkos perfect set up guide. For some reason I can't upload files to the server using a PHP upload form/script.

I have been working with the same form/script on a different server which is configured with fedora core 5, using again falkos perfect set up, (thanks falko) and it works fine.

The reason I have switched to Debian is because that is what the hosting company provide. I have made sure everything is at least set the same in the php.ini and apache2.conf files and made sure PHP safe mode is turned off.

Is there something else I can check or do?


falko 7th April 2007 15:14

Are there any error messages? Is there anything related to this in Apache's error log?

tsmaudio 7th April 2007 19:51

The only error in the /var/log/apache2/error.log
is repeated lines like this one below.

[Sat Apr 07 17:17:26 2007] [error] an unknown filter was not added: PHP

I had this before on the fedora box and I think I know what to do to get rid of this error message, thanks to this forum, but does it have anything to do with my problem?

Is my problem something to do with access permissions with debian sarge.
I am sorry, I am still a newbie who is keen to learn.


Hans 8th April 2007 10:01

You can try to change the line:

$go_info["server"]["apache2_php"] = 'both';


$go_info["server"]["apache2_php"] = 'addtype';

in the file /home/admispconfig/ispconfig/lib/

to avoid these "filter was not added" warnings.

Please verify the
memory_limit and post_max_size values within your php.ini file.

If you change something within your php.ini file, you need to restart Apache as well with:

/etc/init.d/apache2 restart

tsmaudio 12th April 2007 12:12

Thanks Hans,
I think I have fixed it.


tsmaudio 12th April 2007 15:03

Hi again
I now have the opposite problem. I have uploaded an avi file 98meg to the server no problem but.. when I go to retrieve the download it downloads an empty 0kb file. Smaller file sizes up to say 20 meg download ok.

I am going mad with this, as I said everything works on the fedora box and I have uploaded and downloaded 2Gb files with it. I can't see what's causing the problem with this Debian Sarge install.

Any help from anyone would be very much appreciated.


Ps: I have checked that the file on the server is actually 98meg and it is.
I have also checked the error log, and nothing shows up either.

falko 13th April 2007 15:45

Is this an FTP or HTTP download? Do you link the file directly, or is the download handled by some PHP script?
Any errors in Apache's error log?

tsmaudio 13th April 2007 17:03

Hi falko

It's a HTTP download, and the PHP script handles the link generated to download the file. This all works on the fedora set up, which is why I am at a loss ?

Cheers again


falko 14th April 2007 15:00

Is there anything related to this problem in your Apache error log? Maybe you must increase the memory_limit in your php.ini?

tsmaudio 25th April 2007 13:53

I have done a clean install and succesfully upgraded to debian Etch and everything is now working also.

Thanks for your help

All times are GMT +2. The time now is 18:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.