PDA

View Full Version : Squirrelmail: "Could not move/copy file. File not attached"


benjami
9th June 2006, 05:36
Today I've solved one Squirrelmail + ISPConfig that maybe is useful for other users:

When I add one attach, I get this error: "Could not move/copy file. File not attached".

All is correct (permisions, quotas): http://www.squirrelmail.org/wiki/DirectoryPermissionsProblem

Seems that this error is due that ISPConfig changes upload parameters in /etc/apache2/vhosts/Vhosts_ispconfig.conf:

php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web1/phptmp/
php_admin_value session.save_path /home/www/web1/phptmp/

I've changed Squirrelmail configuration and now works fine with attachments:

$attachment_dir = '/home/www/web1/phptmp/';

(in /home/www/web1/web/config/config.php)

falko
9th June 2006, 13:21
Seems that this error is due that ISPConfig changes upload parameters in /etc/apache2/vhosts/Vhosts_ispconfig.conf:

php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web1/phptmp/
php_admin_value session.save_path /home/www/web1/phptmp/

This happens when you enable PHP Safe Mode for a web site.

benjami
9th June 2006, 13:43
This happens when you enable PHP Safe Mode for a web site.

Thanks for this important detail (from some PHP applications)