[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-devel
Subject:    Re: [SM-DEVEL] Error in file_prefs.php line 132
From:       Nate Davis <nate () askdavis ! com>
Date:       2003-03-09 19:31:11
[Download RAW message or body]

Tomas,

Thanks.  It seemed to work fine.  My Data folders were owned by root, 
so I changed them to "apache" which is that my Webserver is running as, 
and I changed all my prefs to be owned by apache and I have yet to get 
the error.   Thanks for your help.

Nate


On Sunday, March 9, 2003, at 11:08 AM, Tomas Kuliavas wrote:

>> Hello List,
>>
>> When I goto save any Preferences in my 1.4.0 RC2a I get the following
>> error...
>>
>> Warning :  chmod failed: Operation not permitted in
>> /www/vhosts/askdavis.com/webmail/functions/file_prefs.php on line 132
>>
>> That line reads...      chmod($filename, 0600);
>>
>> I am not to familiar with PHP yet, but from what I can tell it doesn't
>> have access to do the chmod command.  Who would that be?  Would that 
>> be
>> the user my apache is running under?  Or is there another user that
>> Squirrelmail uses for this function?  I made sure just to test it, by
>> making my data directory chmod -R 666 *.  Full access to all prefs, 
>> but
>> I still get the error.  It does seem to save the prefs though.  Just a
>> little unclear on how to fix this before I take it live.
>
> Looks like you have messed some permissions with chmod|chown -R
> Or you have put all data files in fat filesystem.
>
> 1. data and temp directories must be writable by webserver's user. 
> Apache
> usualy runs on nobody, www-data or www. check your httpd.conf.
>
> directory must have execute bit too.
>
> 2. user pref files must belong to webserver user.
>
> ----
> # ls -ld data
> drwx------    2 www-data www-data     4096 Mar  9 19:30 data
> # ls -l data/tomas.*
> -rw-------    1 www-data www-data      151 Mar  4 15:49 data/tomas.pref
> #
> ----
>
> --
> Tomas
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The 
> debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost 
> and
> disoriented. TotalView can help you find your way. Available on major 
> UNIX
> and Linux platforms. Try it free. www.etnus.com
> --
> squirrelmail-devel mailing list
> List Address: squirrelmail-devel@lists.sourceforge.net
> List Archives: 
> http://sourceforge.net/mailarchive/forum.php?forum_id=7139
> List Info: 
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
>



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
--
squirrelmail-devel mailing list
List Address: squirrelmail-devel@lists.sourceforge.net
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=7139
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic