WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fresh WPMU image upload issues (15 posts)

  1. Travillian
    Member
    Posted 1 year ago #

    Hey all.
    I'm new to WP.org and learning a lot. Luckily I don't have much to lose if I've totally screwed everything up.

    angelatravillian.com is my main site. I can upload images here just fine.

    I am using Laughing Squid and trying to use subdirectories for a class project at angelatravillian.com/acme.

    I modified my .htaccess file per the instructions. I added a blogs.dir file to wp-content. Everything seems fine until I try to upload an image. *I can upload an image to the original site.

    My .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    When trying to upload, I get the error: Unable to create directory wp-content/blogs.dir/2/files/2012/11. Is its parent directory writable by the server?

    Yes. blogs.dir is there. I changed the permissions to allow changes.

    I don't know what else to do. Can anyone help?

    Thanks in advance!!!

  2. Yes. blogs.dir is there. I changed the permissions to allow changes.

    What permissions? :)

  3. Travillian
    Member
    Posted 1 year ago #

    All have permission to read and the owner has write permissions. Is that good?

    I'm learning this for a college class, but the book doesn't help with details for me, since I have multi-site set up.

    Thanks!!

  4. For a test, make it 777. Yes I know.

  5. Travillian
    Member
    Posted 1 year ago #

    I changed it to 777 and still got this...

    “bits.png” has failed to upload due to an error
    Unable to create directory wp-content/blogs.dir/2/files/2012/11. Is its parent directory writable by the server?

  6. dgilmour
    Member
    Posted 1 year ago #

    I don't remember ever having to create blogs.dir, but I have been using Multisite since earliest WPMU days, and maybe it wasn't needed.

    Could the file ownership of blogs.dir be the problem? That could happen if you created the blogs.dir directory from a terminal session, when logged on as root.

  7. I don't remember ever having to create blogs.dir, but I have been using Multisite since earliest WPMU days, and maybe it wasn't needed.

    It was needed, and it was magically created for you. ;)

    Folder ownership is my guess.

    blogs.dir is a *folder* - not a file.

  8. Travillian
    Member
    Posted 1 year ago #

    How do I check the ownership? I'm on my phone and can't include a link, but I followed the instructions on the WP.org site. I just created blogs.dir like it said. I don't really know anything about it. As I said, I'm new to all of this.

  9. Travillian
    Member
    Posted 1 year ago #

    And thanks for your help! My teacher hasn't offered any solutions. He's probably busy helping the other students with their typical installs. I'm glad I'm learning how to do this, though.

  10. I just created blogs.dir like it said.

    Did you make it a *folder*?

  11. Travillian
    Member
    Posted 1 year ago #

    No, it's a .dir file.

    How do I make it a folder? What would be inside of the folder?

    Thanks again!!

  12. Frank
    Laughingsquid Rep.
    Posted 1 year ago #

    You can create a folder using your FTP client. Usually it's a right click -> Create New Folder or something similar. Just leave it empty and WordPress should know what to do with it. If you're still having trouble feel free to open a support ticket and we can help you out further there:

    http://laughingsquid.us/support

  13. Travillian
    Member
    Posted 1 year ago #

    Thanks, Frank! You guys have been really helpful. I just changed it, tested it and it worked.

    It would help if the WP.org setup instructions said that it was a folder :) Then, I could have set it up correctly the first time!

  14. It does, Travillian. It actually says to make a folder named blogs.dir

    The problem is many people read 'blah DOT foo' and they're used to seeing that as a filename.

  15. Travillian
    Member
    Posted 1 year ago #

    Ah, ok. Well, I feel silly. That's exactly what I did.

Topic Closed

This topic has been closed to new replies.

About this Topic