Warning! – Failed to move file (Joomla 1.0.x, Joomla 1.5.x)

I came across this problem(“Warning! – Failed to move file”) when trying to install some components in a freshly installed joomla 1.5 Version site. Solution to this is either to change permissions to 777 for tmp directory / enable the legacy mode.

However, after I changed permissions to 777 for tmp folder, I came across another strange problem “Unable to write entry”

& after long time, I found the solution : Its to disable PHP SafeMode & Everything will work alright.

March 9, 2008   Posted in: Joomla

View Comments

  1. raj - March 25, 2008

    how do u disable php safemode ?

  2. admin - March 25, 2008

    ask ur hosting provider

  3. solybarr - March 26, 2008

    Thanks for this, also, I had to change permissions on the components folder and administrator/components folder as well, in order for everything to work.

  4. daniel - July 7, 2008

    thanks for your comment

  5. smithveg-backpack - October 30, 2008

    Thank for your great post. Eventually i can install the joomla component.

  6. marina - November 11, 2008

    Your post is great and really clear but probably I forgot something else because I disable PHP SafeMode and I came also across the problem “Unable to write entry”.
    What do you mean as “Everything will work alright”?

  7. kamal - December 18, 2008

    Not working, I still have the same message after I change safe mode to OFF and change folder permission also could not help

  8. Steve Lander - March 1, 2009

    Thanks a lot, your tip helped me

  9. amar - March 7, 2009

    how to disable php safemode..

  10. Pat - March 12, 2009

    Safe mode was already turned off. Thanks for providing a possible solution though!

  11. tomiis - March 14, 2009

    i had the same problem but i solved it by changing the
    chown -R www-data “adminstrator/components”
    chown -R www-data tmp
    chown -R www-data components
    and it worked

  12. Aang - March 31, 2009

    I found the same problem, I can not install via admin for template, module, etc and always : WARNING – FAILED TO MOVE. Please help me, Thank

  13. meeya - May 6, 2009

    Login to your joomla administrator panel.

    go to Help->System Info
    then click on Directories Permissions Tab and check which directories are still unwriteble, just set the permission/CHMOD to 777 of those directories which are unwriteable through ftp access.Now install any component/module it will works 110%.

  14. Tushar - May 18, 2009

    Thanks everyone, was very usefull

  15. Ikhwan - May 26, 2009

    thanks, it was very useful article

  16. Alberto - June 10, 2009

    wait,wait,wait! I’m on a localhost…

    “go to Help->System Info
    then click on Directories Permissions Tab and check which directories are still unwriteble, just set the permission/CHMOD to 777 of those directories which are unwriteable through ftp access.”
    Mine are ALL unwritable!
    How do I do it without FTP?

  17. admin - June 11, 2009

    You have to either use ‘File Manager’ if you are having a CPanel / Try to Install some File manager extension from the Joomla extension resource http://extensions.joomla.org

    hope that helps!

  18. Alberto - June 11, 2009

    I should have mentioned I’m on a Mac, so it’s a little different.
    I’ll give it a try…Thank you very much!
    I’ll let you know how it turns out…

    Alberto
    Venice Beach, CA

  19. Alberto - June 11, 2009

    I down loaded a file manager. Soooo, what do I do with it?
    I can’t install anything.

    Do you know another way around this? Another way to install it or a folder to put it in?

    I’m capable, but not proficient…make it simple please.

    -A

  20. Alberto - June 11, 2009

    Is this a .php issue?

  21. admin - June 11, 2009

    Download SmartFTP, login to ur site using that. Click on the two folders that might be lying in public_html / root folder.

    Then right click -> Properties -> Chmod to 777 & click ok…

    then upload to the site. It shld help

  22. Alberto - June 11, 2009

    It’s a localhost. (localhost/joomlabeta/administrator.)

    That’s my problem…I have to put it in a Joomla desktop folder or figure out a way to upload it through “extensions/upload.”

    -A

  23. yoyleo - July 2, 2009

    I did all the suggestion above and I face the following problem.

    Please help!

    * Unable to write entry

    Warning: file_put_contents() [function.file-put-contents]: SAFE MODE Restriction in effect. The script whose uid is 19777 is not allowed to access /www/99k.org/e/d/u/education/htdocs/tmp/install_4a4c719390bee owned by uid 2001 in /www/99k.org/e/d/u/education/htdocs/libraries/joomla/filesystem/file.php on line 298

    Warning: file_put_contents(/www/99k.org/e/d/u/education/htdocs/tmp/install_4a4c719390bee/com_avreloaded.xml) [function.file-put-contents]: failed to open stream: No such file or directory in /www/99k.org/e/d/u/education/htdocs/libraries/joomla/filesystem/file.php on line 298
    Unable to find install package

  24. Quit Smoking Today - July 19, 2009

    thanks.. it worked :)

  25. illusions - July 29, 2009

    Thank for solution. I had this problem.

  26. david - August 7, 2009

    i had the same problem but i solved it by changing the
    chown -R www-data “adminstrator/components”
    chown -R www-data tmp
    chown -R www-data components
    and it worked

  27. M T Pamir - August 16, 2009

    thanks Sai Bharadwaj. it really helped me.

  28. yogesh - August 24, 2009

    Yes i done it
    thanks for grat suggetions!

  29. Anibute - September 5, 2009

    I was tryin to find the solution for a week. At last, i’ve found it. Thanks sai for such a wonderful post. I followed meeya’s tip.

  30. ramyalaxmi - September 17, 2009

    where is php safemode???? where is it located?

  31. zaur - October 3, 2009

    where i can disable php safe mode
    ?

  32. walla - November 26, 2009

    very good, tks

  33. walla - November 27, 2009

    very good, tks

  34. Servicesseo - December 27, 2009

    Tell us how to disable php safe mode?

  35. Sai Bharadwaj - December 27, 2009

    you can use .htaccess

    just put a .htaccess file in that dir then the content of the .htaccess file should be

    php_value safe_mode “1″

    (OR)

    on the php.ini file which you upload to the directory enter this command:

    safe_mode = Off

  36. Paprika - February 9, 2010

    disabling safemode is not always the best way to go about doing a quick fix. You leave yourself open for all sorts of vulnerabilities. Also, not everyone has access to the php.ini file on their servers.

  37. Paprika - February 9, 2010

    the editing of htacess doesn't work.

  38. joomla newbie - February 24, 2010

    fuckin thanks mate

  39. Shofawaty - June 12, 2010

    thanks so much.. good solution.. :)

  40. Douche - June 16, 2010

    @ramyalaxmi:

    Read up a little!

Leave a Reply

blog comments powered by Disqus