Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2003
    Posts
    92

    Cannot create temporary file (image upload)

    Hello,

    I'm on a new server (CentOS) and I can't seem to do image uploads through php because it cannot create the temp file... my php.ini is set to use the default directory...

    Does anyone know how I might be able to fix this?

  2. #2
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,345
    What is the error you get?

    Is your tmp directory writable, does it have the correct permissions.

    Peace,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  3. #3
    Join Date
    Dec 2003
    Posts
    92
    The error I get is "Can't create the temporary file", I think it's a custom error message though, it also says cannot write to /tmp, and I chmod it to 777

  4. #4
    Join Date
    Mar 2004
    Location
    USA
    Posts
    4,345
    Check the rights on the /tmp folder, the group/ownership should be set to root.

    Peace,
    Testing 1.. Testing 1..2.. Testing 1..2..3...

  5. #5
    Join Date
    Dec 2003
    Posts
    92
    Quote Originally Posted by azizny View Post
    Check the rights on the /tmp folder, the group/ownership should be set to root.

    Peace,
    I set it to 777 as root user...

  6. #6
    Join Date
    Jun 2004
    Location
    Ann Arbor, MI
    Posts
    119
    Can you paste the exact errors you're getting in the error log?
    Greg Swaney [gswaney - at - nexcess.net]
    NEXCESS.NET Internet Solutions [Detroit DC]
    EliteRAX ● Dedicated Servers, Clusters & Co-location
    MaxVPS ● Virtual Private & Virtual Dedicated Servers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •