I had a similar problem on SuSE Linux 8.2 pro.

Initially, for testing I changed the permissions of /tmp to 
the same perms as apache, and it worked.

I now have the following permissions on tmp:

drwxrwxrwt    root     root       12288 Jan 23 20:15 tmp

Seems to be working OK for me.

Keith

In theory, theory and practice are the same;
In practice they are not. 

On Mon, 23 Jan 2006, Gerry Danen wrote:

> To: users@httpd.apache.org
> From: Gerry Danen <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] Uploaded files empty - Apache configuration
>     problem?
> 
> is /tmp world writable?
> 
> On 1/23/06, Niall Mullally <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > I'm in the process of moving an existing website from a shared host to
> > a dedicated server. The dedicated server is running CentOS 4, Apache
> > 2.0.52 and PHP 4.3.9.
> >
> > The site is PHP based and a few forms on the site upload files.
> >
> > The uploaded file is stored in the /tmp directory and then moved to its
> > final destination by PHP.  This is working fine on the shared hosting
> > account. But on the dedicated server, none of the file data is
> > uploading.  The final stored file has a size of 0.
> >
> > The $_FILES array in the PHP script that processes the uploaded file
> > contains the usual information e.g.
> >
> > array(1) {
> > ["file1"]=> array(5)
> > {
> > ["name"]=> string(16) "file_name_1.jpg"
> > ["type"]=> string(24) "application/octet-stream"
> > ["tmp_name"]=> string(14) "/tmp/phppaZGQm"
> > ["error"]=> int(0) ["size"]=> int(0)
> >
> > }
> > }
> >
> > But as the last value shows, the size is 0. I'm uploading an 80k jpeg
> > so there's no problem with max file size limits.
> >
> > All file upload directives are enabled in the php.ini file.  /tmp is
> > world writeable.
> >
> > I can't figure out what could be causing this. My PHP works fine on the
> > other server so I don't think that's the problem. It must be a
> > configuration issue somewhere, but I can't figure out where.
> >
> > Could it be an Apache or PHP config issue? A permissions issue? Or maybe
> > something to do with the OS config?
> >
> > Apologies if this isn't the right place for this query, but I'm at my
> > wits end and any help would be greatly appreciated.
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >    "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Gerry
> http://portal.danen.org/
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to