• I have a working installation of wordpress on my intranet. It is running on Debian. I have the MYSQL database residing on another partition that is mounted as /Data.

    What I am trying to do is move the wp-uploads folder to that partition too. I went into wordpress settings and typed in the location of the new folder to /Data/wpuploads. I can upload the images and insert them in the post however when I Preview or Publish the post nothing shows up.

    So I actually grabbed the full URL like http://ipaddress/Data/wpuploads/2011/02/imagename.jpg, and I don’t get anything. However when I ssh into the server I can see that the image is there.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Alwyn Botha

    (@123milliseconds)

    Permissions on /Data and its content (imgs) should be same as uploads folder.

    “What I am trying to do is move the wp-uploads folder to that partition too.”

    Why? To what end?

    Alwyn Botha

    (@123milliseconds)

    >>Why? To what end?

    Guessing here …

    /Data is larger
    /Data backed up and restore separately
    permissions
    auto expand partition if required
    access these images from other applications

    safely read-only mount just /data for others to access images

    and so on…

    Ahhh… I see.

    Probably the same basic thing I accomplish by using Logical Volume Management. Makes sense… I guess. Although, I can’t think of a good reason why you would want to allow other applications access to resources in “web accessible” directories not located within their own root directory confines… But we all have our peccadilloes. As long as it works for you! 🙂

    Thread Starter mali77

    (@mali77)

    Yes 123milliseconds, you are right Data is larger and gets backed up separately. I don’t want to access these images from any other application but wordpress.

    If the images in the post are being resized and you are using Timthumb, they will never show up using either an external link or virtual link… that’s the only thing I can think of…

    Thread Starter mali77

    (@mali77)

    So I guess no one has the answer to this?

    I’m guessing these instructions might imply that although you can use them to move /wp-content, /wp-content is assumed to still be located inside of your web accessible directory.

    I would have to guess that a symlink…

    [example] ln -s /Data/wp-content /var/www/html/wp-content

    ..might fail because of the settings in wp-config.php. But that’s strictly an un-qualified guess. I don’t know if there is something creative you can do with wp-config to make it work, or not.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Moving wordpress uploads folder’ is closed to new replies.