Subscribe via RSS Feed

Solution for “Missing a temporary folder” Problem in Wordpress

Missing a Temporary Folder

Recently i got this (Missing a temporary folder) weird problem in media uploader of wordpress 2.7.1 after 3 weeks of installation in Linux Server with Cpanel Hosting. This happens to my all wordpress blogs of 2.7.1 version. So i googled for 2 days to find the solution.

Here is the solution i got from Dwightjack.

You need to edit php.ini located in etc/ folder, uncommenting the line upload_tmp_dir (by deleting the semi-colon “;”) and pointing the variable to a folder using an absolute path. In Linux possible steps are:

  • open a terminal
  • create a temporary folder for all apache tasks in your user folder and grant all right to all users:
    mkdir wwwtmp && chmod 0777 wwwtmp
  • edit php.ini with your text editor and set the temporary folder (you must switch to root user)
    su
    vim /opt/lampp/etc/php.ini
    upload_tmp_dir = /home/my_user/wwwtmp/

    Remeber to remove preceding “;”

  • save the file (in vim type :wq an press enter) and restart xampp
  • /opt/lampp/./lampp restart

    It will work if everything followed correctly.After completion login & log out repeatedly for a couple of times.

    This is completely related to server configuration.so this is not so easy for a regular users using shared hosting lacks full control over server configuration.My blog also in shared servers.But you may ask your support to do this.My support did this for me.

    Credit & Special thanks to Dwight Jack.

    Tags: , ,

    Category: Troubleshooting

    Comments (3)

    Trackback URL | Comments RSS Feed

    1. Millus says:

      Hi!
      I’m in the same situation. Everytime I try to upload images, it reads:

      /vservers/h267740wp/htdocs/wp-admin

      I login to my FTP server, went to the ETC folder and access to the php.ini file.
      The line goes like this:

      upload_tmp_dir = /vservers/h282184wp/tmp /vservers/h267740wp/tmp

      I just don’t know what I have to change. i’ve created “tmp” folders everywhere, but nothing works.

      Please, pretty please, help me! What do I have to change and where? what should I put on “Store uploads in this folder”???

      Thanx a lot for your help

    2. admin says:

      don’t worry about that,ask your host to do this … my host did this for me.

    3. Trisha A. says:

      I really like this blog good job.

    Leave a Reply




    If you want a picture to show with your comment, go get a Gravatar.