Web Hosting Talk







View Full Version : Cannot create temporary file (image upload)


GeXus
12-24-2007, 05:52 PM
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?

azizny
12-24-2007, 09:44 PM
What is the error you get?

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

Peace,

GeXus
12-25-2007, 03:29 AM
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

azizny
12-25-2007, 03:01 PM
Check the rights on the /tmp folder, the group/ownership should be set to root.

Peace,

GeXus
12-25-2007, 11:59 PM
Check the rights on the /tmp folder, the group/ownership should be set to root.

Peace,

I set it to 777 as root user...

NEXCS-Greg
12-29-2007, 12:10 PM
Can you paste the exact errors you're getting in the error log?