on 03/29/2006 10:25 AM RTS said:
>
> I am having trouble with a Fedora Core 4 box with Apache / PHP 5
> Squirrelmail ....
>
> I have all the latest updates through YUM installed.
>
> I am running selinux-targeted and it is enforcing ... I have tried this with
> and without enforcing to see if that made a difference .. No luck...
>
>
> Squirrelmail seems to function fine as far as preferences and sending mail
> except for attachments.
>
> I get the standard ERROR:
> Could not move/copy file. File not attached
>
> I also get this in my web error log file:
>
> PHP Warning: File upload error - unable to create a temporary file in
> Unknown on line 0, referer: .................................
>
> I have the following set in my PHP.ini config file:
>
> ;;;;;;;;;;;;;;;;
> ; File Uploads ;
> ;;;;;;;;;;;;;;;;
>
> ; Whether to allow HTTP file uploads.
> file_uploads = On
>
> ; Temporary directory for HTTP uploaded files (will use system default if
> not
> ; specified).
> upload_tmp_dir = /var/spool/squirrelmail/attach
>
> ; Maximum allowed size for uploaded files.
> upload_max_filesize = 2M
>
>
>
> I have the tmp dir created with the following:
>
> /var/spool/squirrelmail/attach
> drwx------ 2 apache apache 4096 Mar 29 11:43 attach
> drwxr-xr-x 3 root root 4096 Mar 24 07:19 squirrelmail
>
>
>
> Any help would be thankfull....
well, I cannot see that's wrong; details that you posted seem OK to me.
I would do 2 simple tests:
a) try to open a file in your tmp dir as apache user
$sudo -u apache touch /var/spool/squirrelmail/attach/test_file.txt
if a) is OK, then
b) write a test.php script that will open and file in your tmp_dir and
and write something there; copy test.php it to /var/www/html,
chown apache test.php, and open it in your browser
http://<hostname>/test.php
<?php
// open file for writing
$fh = fopen("/tmp/test_file.txt","w");
if ($fh) {
if ($b = fwrite($fh, "hello world\n") ) {
echo "$b bytes sussesfully written\n";
} else {
echo "Opps, there was an error\n";
}
} else {
echo "cannot open file $fh \n";
}
?>
>
> Randy
>
>
>
--
Konstantin Antselovich
mail to:[EMAIL PROTECTED]
PGP KEY B8934D97 http://kostik.orangecode.net/B8934D97.html
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users