+ Reply to Thread
Results 1 to 3 of 3

Thread: During upload I get a message: could not rename file from /tmp to public/1/17/ggg.jpg

Share/Bookmark
  1. #1

    Bash the Wall! During upload I get a message: could not rename file from /tmp to public/1/17/ggg.jpg

    So I got this error, the solution was to chmod 777 directory 1/17 under images.

    However, my question is: will this happen frequently now? how come this happens at all?

    Do I need to change permissions?
    Who is the user who is doing the upload file? maybe all I need is to change that?

  2. #2

    Default

    Checking the file, it seems that the user that uploads the file is: nobody
    Can that be changed?

  3. #3
    Site Owner hoggwild is a jewel in the rough hoggwild is a jewel in the rough hoggwild is a jewel in the rough hoggwild's Avatar
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    1,788
    Rep Power
    7

    Default

    Quote Originally Posted by saariko View Post
    So I got this error, the solution was to chmod 777 directory 1/17 under images.

    However, my question is: will this happen frequently now? how come this happens at all?

    Do I need to change permissions?
    Who is the user who is doing the upload file? maybe all I need is to change that?
    You are getting this error because the permissions on the "images" directory, where the uploaded images are stored, are not correct. The web server has to be able to write to the images directory in order to move the "temporary" file created when a file is uploaded through a web interface to its permanent home in the images directory. Changing the permissions on the "images" directory so that the web server can write to the directory will alleviate the problem.

    Checking the file, it seems that the user that uploads the file is: nobody
    Can that be changed?
    "Nobody" is the web user designated in the apache configuration file, and has nothing to do with your MediaWiki users. Every application in a Unix environment has to belong to a system user, whether that user is 'root' or another user. "Nobody" is a frequently used system-designatd user/group name in apache configuration files that designates the system "user" that Apaches runs under. It is Apache (and, as such, the Apache user) that is responsible for processing the file upload request, which is why you see that the uploaded file belongs to the system user "nobody".
    Last edited by hoggwild; December 14th, 2009 at 13:56.
    User: Hoggwild/aka Lhridley (site owner and administrator)
    MediaWiki: the latest version (under development), PHP: 5.2.12, MySQL: 5.0.67, Apache ver 2.2.14, CentOS (Linux)
    Host: http://www.VPSNext.com
    Web application developer/programmer/php developer
    http://wiki.chattamac.org

    BEFORE POSTING QUESTIONS, PLEASE READ:
    http://www.mwusers.com/forums/conten...MW-Users-Forum

    The forums are for questions -- please don't submit questions via PM -- they will be ignored.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Upload File: could not rename file
    By StephenSheng in forum MediaWiki General Discussion
    Replies: 1
    Last Post: August 11th, 2009, 05:15
  2. Error Message on File Uploads Out of Memory
    By Kevin Danko in forum Customizing MediaWiki
    Replies: 11
    Last Post: July 23rd, 2009, 18:44
  3. File Upload blocked even though file type is allowed
    By Lyuokdea in forum MediaWiki General Discussion
    Replies: 6
    Last Post: June 23rd, 2009, 01:50
  4. The upload directory (public) is not writable by the webserver.
    By Paul_kingtiger in forum Configuration
    Replies: 3
    Last Post: April 11th, 2009, 03:49
  5. Replies: 3
    Last Post: August 3rd, 2008, 19:01

Bookmarks

Posting Permissions

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