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

Post to Twitter

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

  • raj

    how do u disable php safemode ?

  • http://www.saibharadwaj.com admin

    ask ur hosting provider

  • http://www.solybarr.com solybarr

    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.

  • daniel

    thanks for your comment

  • http://www.e-packs.com smithveg-backpack

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

  • marina

    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”?

  • kamal

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

  • http://localhost Steve Lander

    Thanks a lot, your tip helped me

  • amar

    how to disable php safemode..

  • http://www.patrickkuhl.com Pat

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

  • http://NONE tomiis

    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

  • http://ticketf1.com Aang

    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

  • http://- meeya

    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%.

  • Tushar

    Thanks everyone, was very usefull

  • http://ikhwan15.blogspot.com Ikhwan

    thanks, it was very useful article

  • Alberto

    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?

    • http://www.saibharadwaj.com admin

      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!

  • Alberto

    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

  • Alberto

    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

  • Alberto

    Is this a .php issue?

  • http://www.saibharadwaj.com admin

    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

  • Alberto

    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

  • http://www.education.99k.org yoyleo

    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

  • http://www.stopsmoking-quitsmoking.info Quit Smoking Today

    thanks.. it worked :)

  • http://illusions.org.ua/ illusions

    Thank for solution. I had this problem.

  • david

    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

  • http://mtpamir.com M T Pamir

    thanks Sai Bharadwaj. it really helped me.

  • yogesh

    Yes i done it
    thanks for grat suggetions!

  • http://www.opensourcepages.co.cc Anibute

    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.

  • ramyalaxmi

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

    • Douche

      @ramyalaxmi:

      Read up a little!

      • Dddd

        wot a twat…! no help at all…! you shouldnt even be on here you smug git

  • bob

    Great thank you for your post, appreciate it

  • zaur

    where i can disable php safe mode
    ?

    • Mbinusolutions

      You can disable the safe mode on your php.ini file which is found in your server directory,if your using localhost check your apache directory,change to    safe_mode = Off and that will fix the issue.

      Http://www.mbinusolutions.com

  • http://littersolutions.com.au/ walla

    very good, tks

  • http://littersolutions.com.au/ walla

    very good, tks

  • Servicesseo

    Tell us how to disable php safe mode?

    • http://www.saibharadwaj.com/blog Sai Bharadwaj

      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

  • Paprika

    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.

  • Paprika

    the editing of htacess doesn't work.

  • joomla newbie

    fuckin thanks mate

    • http://www.crystalictsolutions.com Morrisoh

      Very funny dude !!! Try and see if in your configuration.php file located in your joomla root directory the temp file path is correct and log file path too ….IT WORKS ! My name is Morris Muriithi Gatheru from Kenya http://www.crystalictsolutions.com

  • Shofawaty

    thanks so much.. good solution.. :)

  • Sangvan

    tell us how to disable PHP safe mode

  • davide ganz
  • Vishu9201

    when i want to installl a new module in joomla i got 2 worrning and process of installing is stop …
    may i know of this solution of it.?

    Warning: file_put_contents() [function.file-put-contents]:
    SAFE MODE Restriction in effect. The script whose uid is 10054 is not
    allowed to access
    /var/www/vhosts/hotelinshirdi.co.in/subdomains/dev/httpdocs/tmp/install_4ec34e895ba82
    owned by uid 48 in /var/www/vhosts/hotelinshirdi.co.in/subdomains/dev/httpdocs/libraries/joomla/filesystem/file.php on line 304

    Warning:
    file_put_contents(/var/www/vhosts/hotelinshirdi.co.in/subdomains/dev/httpdocs/tmp/install_4ec34e895ba82/ChronoForms_Plugin_V3.1_RC5.2.zip)
    [function.file-put-contents]: failed to open stream: Permission denied in /var/www/vhosts/hotelinshirdi.co.in/subdomains/dev/httpdocs/libraries/joomla/filesystem/file.php on line 304