LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2008, 03:34 PM   #1
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Rep: Reputation: 15
problem with squirrelmail


i post this thread after alot of searching in google and our forum linuxquestions.org but i didnt find a soltuion even if there are alot of the same questions,

when i try to attach a file in squirrelmail it gives me this error :
Could not move/copy file. File not attached

in my php.ini line upload_tmp_dir is uncommented and pointed to :
upload_tmp_dir = "/var/spool/squirrelmail/attach"
file_uploads = On

and the rights o n the directory are set to 755 and


drwx----w- 3 root root 4096 jan 28 18:13 ..
-rw-r--r-- 1 root root 14 mar 2 15:31 *
drwxr-xr-x 2 apache apache 4096 mar 2 15:31 .

is this problem caused by apache or compatibility between apache and squirrelmail ?
any help will be appreciated ...
 
Old 03-02-2008, 05:09 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I didn't have to modify php.ini to get Squirrelmail working on my system. In my squirrelmail/config/config.php I have $data_dir and $attachment_dir set. These directories look like this:
Code:
$ ls -l /var/spool/squirrelmail
total 8
drwx-wx--- 2 apache apache 4096 2008-02-06 10:14 attach
drwxr-xr-x 2 apache apache 4096 2008-02-29 12:30 data
The output of your ls command is a little confusing. Are you saying that you have permissions of 702 on /var/spool/squirrelmail? Why is that? Mine is:
Code:
$ ls -ld /var/spool/squirrelmail
drwxrwxr-x 4 root root 4096 2005-06-26 21:55 /var/spool/squirrelmail
 
Old 03-02-2008, 05:35 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What/where is the file you are trying to attach, what are the permissions of this file, and which user are you trying to attach as. Is this a system user or virtual?
 
Old 03-03-2008, 03:35 AM   #4
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
am trying for my users am using mail-server sendmail and squirrelmail for http

[root@mail attach]# ls -ld /var/spool/squirrelmail
drwxrwx--x 3 root root 4096 jan 28 18:13 /var/spool/squirrelmail
in my config.php i have :

$default_charset = 'iso-8859-1';
$data_dir = "/var/lib/squirrelmail/prefs/";
$attachment_dir = "/var/spool/squirrelmail/attach/";
$dir_hash_level = 0;
$default_left_size = '150';
$force_username_lowercase = false;
$default_use_priority = true;
$hide_sm_attributions = false;
$default_use_mdn = true;
$edit_identity = true;
$edit_name = true;
$allow_thread_sort = true;
$allow_server_sort = true;
$allow_charset_search = true;
$uid_support = true;

$plugins[0] = 'delete_move_next';
$plugins[1] = 'squirrelspell';
$plugins[2] = 'newmail';
 
Old 03-03-2008, 01:12 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Does the user that you web server (Apache?) is running as (on my system the user is called apache) have rights to the /var/lib/squirrelmail/prefs and /var/spool/squirrelmail/attach directories?
 
Old 03-04-2008, 06:27 AM   #6
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
Does the user that you web server (Apache?) is running as (on my system the user is called apache) have rights to the /var/lib/squirrelmail/prefs and /var/spool/squirrelmail/attach directories?
__________________
yes i ahve that user and has the right ...
 
Old 03-05-2008, 08:18 AM   #7
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
still waiting for reply
 
Old 03-05-2008, 09:52 AM   #8
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
I suppose you've already read this?
 
Old 03-07-2008, 12:38 PM   #9
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
yes i did read that , but still not solved
thanks
 
Old 03-10-2008, 09:59 AM   #10
mrlinux2000
Member
 
Registered: Feb 2008
Posts: 144

Original Poster
Rep: Reputation: 15
any one ??
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squirrelmail problem gubak Linux - Networking 1 03-31-2006 08:42 AM
Squirrelmail problem bharath144 Linux - Software 0 03-01-2006 03:10 AM
Squirrelmail problem ? BengtOlof Linux - Newbie 1 06-16-2005 02:01 AM
SquirrelMail problem htic22 Linux - Software 0 04-27-2004 07:46 AM
Problem with squirrelmail gallet Linux - Software 0 08-04-2003 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration