Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st November 2011, 19:55
Jolman Jolman is offline
Member
 
Join Date: May 2009
Location: Kazakhstan
Posts: 34
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via Skype™ to Jolman
Default Squirrelmail "Could not move/copy file. File not attached" when trying to attach a fi

Hi, i have next problem - the Squirrelmail "Could not move/copy file. File not attached" when trying to attach a file.
1) I set 733 mode on /var/spool/squirrelmail/attach
2) I have cheked parameter in php.ini
file_uploads = On
upload_max_filesize = 30M

3) i run squirrelmail-configure, and checks:
in Folder Defaults
1. Default Folder Prefix : .
in General Options
1. Data Directory : /var/lib/squirrelmail/data/
2. Attachment Directory : /var/spool/squirrelmail/attach/

i don't know what it can be, and where find mistake

in apache log:
[Tue Nov 22 00:00:30 2011] [error] [client 95.59.2.144] PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/spool/squirrelmail/attach/QcYninwzhGjKPX0wJ6pylhzpEBh5Cemz) is not within the allowed path(s): (/usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname) in /usr/share/squirrelmail/src/compose.php on line 1464, referer: https://www.akbarys.com:8080/webmail...startMessage=1

when i add path /var/spool/squirrelmail/attach - in php.ini (open_basedir = /var/spool/squirrelmail/attach/), i have next messages in the error.log
[Tue Nov 22 00:08:20 2011] [error] [client 95.59.2.144] PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/local/ispconfig/interface/web/index.php) is not within the allowed path(s): (/var/spool/squirrelmail/attach/) in Unknown on line 0
[Tue Nov 22 00:08:20 2011] [error] [client 95.59.2.144] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Tue Nov 22 00:08:20 2011] [error] [client 95.59.2.144] PHP Fatal error: Unknown: Failed opening required '/usr/local/ispconfig/interface/web/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

after added include_path='.:/usr/share/php:/usr/share/pear' in php.ini, in error.log :
[Tue Nov 22 00:16:00 2011] [error] [client 95.59.2.144] PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/local/ispconfig/interface/web/index.php) is not within the allowed path(s): (/var/spool/squirrelmail/attach/) in Unknown on line 0
[Tue Nov 22 00:16:00 2011] [error] [client 95.59.2.144] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Tue Nov 22 00:16:00 2011] [error] [client 95.59.2.144] PHP Fatal error: Unknown: Failed opening required '/usr/local/ispconfig/interface/web/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0


please help

Last edited by Jolman; 21st November 2011 at 20:23.
Reply With Quote
Sponsored Links
  #2  
Old 21st November 2011, 20:36
Jolman Jolman is offline
Member
 
Join Date: May 2009
Location: Kazakhstan
Posts: 34
Thanks: 4
Thanked 1 Time in 1 Post
Send a message via Skype™ to Jolman
Default i have solved this problem

solution

1) create directory in /usr/share/squirrelmail/ for example attach - /usr/share/squirrelmail/attach
2) chmod 733 -R /usr/share/squirrelmail/attach
2) squirrelmail-configure
3) choose 4(General Options) and press Enter
4) choose 2(Attachment Directory) and past /usr/share/squirrelmail/attach

try should help
Reply With Quote
The Following User Says Thank You to Jolman For This Useful Post:
falko (22nd November 2011)
  #3  
Old 22nd November 2011, 06:46
ybanafa ybanafa is offline
Junior Member
 
Join Date: Jul 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Solved

Many Thanks++;
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rkhunter warnings esezako General 7 27th September 2011 07:28
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 03:15
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Dspam planet_fox General 6 20th January 2007 18:42
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 02:55.


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