• Resolved Wes Chyrchel

    (@weschyrchel)


    I am running into an issue with this Multisite install and even though I’ve done them before, I have to install it on this Centos server and they have it locked down pretty good. The admin is not helpful. Anyway, I thought I might be able to bounce some of the things I’m going through off you guys to see if it triggers any possible solutions. So here it goes,

    The problem I am having is for the sub-sites, images are not writing to the “blogs.dir” directory when I try to add an image to a post.

    Here is the setup

    Add to hosts file to view:
    66.45.51.110 ? ?ctec2.net

    Browse to: https://ctec2.net/ to see the primary and https://ctec2.net/kinderconnect/ to see one of the subfolder sites.

    Centos box
    Multisite subfolder install
    AllowOverride All
    mod_rewrite is active
    running php 5
    WP 3.2.1
    Permalinks are working
    uploads and blogs.dir permissions are set to 775
    All plugins disabled
    images are written to database, but show broken images on site.
    .htaccess contents:

    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]

    If you have any suggestions please let me know.

    Thanks,

    Wes

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What error are you getting when you try to upload an image?

    Thread Starter Wes Chyrchel

    (@weschyrchel)

    Sorry, there isn’t an error at all and the file name gets added to the database. It’s just not getting written to the blogs.dir

    Thread Starter Wes Chyrchel

    (@weschyrchel)

    I had a colleague suggest that the php.ini file might contain settings that could affect writing to directories. Is that possible?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Wow. I’ve never seen that before… What do you see in the media page? Is the image shown?

    Thread Starter Wes Chyrchel

    (@weschyrchel)

    No, Ipstenu, if I go to a page and try to upload an image, it shows a broken image in the image uploader. It will save it though, with all of the parameters and add it to the database.

    The other thing is, the main blog works just fine. All of the files uploaded to the uploads folder work great, it just seems to have issues with the blogs.dir.

    It just won’t upload files to blogs.dir, but the names of the files appear in the database with the correct path!

    Also, the upload path for the sites in the subfolders is, “wp-content/blogs.dir/2/files”

    Don’t know if that helps.

    Thread Starter Wes Chyrchel

    (@weschyrchel)

    Okay, geez, it’s always the easy stuff you have to go back and look at, but sometimes I guess it takes talking it out with someone to figure it out.

    So, the problem was that I develop locally, so my .htaccess file was configured for my local directory setup. I didn’t think of that and when I copied the .htaccess file to the new server environment, their directory structure is different and WordPress detects that. So, when you move a multisite to a new server environment other than your own development setup, re-copy the .htaccess information in “Network Setup” inside the admin of WordPress and re-paste it in that file. That should help with the path issues.

    Really, if the permissions are set up correctly on the directories that most likely it has to be a path going in or out and from what I read a lot about multisite, the .htaccess file usually is the culprit. Either it’s not set up right or it’s not reading it.

    Hopefully that helps someone. Thanks for quick help Ipstenu, it got me thinking and asking more questions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multisite images not being written to blogs.dir’ is closed to new replies.