WordPress.org

Support

Support » Multisite » [Resolved] Cannot upload to blogs.dir – Permissions already set to 777

[Resolved] Cannot upload to blogs.dir – Permissions already set to 777

  • emily.stooksberry
    Member

    @emilystooksberry

    Hello,
    I’ve been using WordPress for quite some time and am now venturing into the Network (MultiSite) region. My install worked fine and I’ve created 6 test blogs, but with the creation of each blog, there is not an accompanying uploads or blogs.dir/#/files directory being created.

    I can manually create the /#/files directories myself and while this solves the problem, it is not ideal.

    This is the error I get.

    Unable to create directory /var/www/vhosts/testinfinity.com/httpdocs/agent-sites/wp-content/blogs.dir/6/files. Is its parent directory writable by the server?

    I have checked, using FileZilla, and the blogs.dir directory is a folder and has it’s permission’s set to 777. I have also searched the support forum and the common answer of set permissions to 777 and make sure blogs.dir is a folder and not a file are no help to me.

    I am on a Shared Host Godaddy Server, administered through Parallels Plesk.

    Please help! Thanks!

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

    @ipstenu

    What’s 6 set to? And who owns it?

    emily.stooksberry
    Member

    @emilystooksberry

    6 does not exist yes. I think it should be created when the 6th blog was created, automatically, but it is not being created.

    For blogs 1-5 I have had to manually create the /#/ folder and the /files/ folder and set the permissions to 777.

    Moderator Ipstenu (Mika Epstein)
    Keymaster

    @ipstenu

    Ahhh, who owns the blogs.dir folder?

    Depending on your PHP setup, it may need to be changed.

    Compare the ownership of blogs.dir to the /blogs.dir/1/files folder.

    emily.stooksberry
    Member

    @emilystooksberry

    How do I check ownership?

    I created blogs.dir during the installation process for WordPress. I changed it’s permissions to 777.

    Moderator Ipstenu (Mika Epstein)
    Keymaster

    @ipstenu

    If you use FTP, you can right-click and see the owners. In SSH an ‘ll’ will show you somethign like ‘ipstenu:ipstenu’

    emily.stooksberry
    Member

    @emilystooksberry

    blogs.dir Owner/Group 10021 2524
    /1/ is Owner/Group 10021 2524
    /2/ – /4/ is Owner Group 48 45

    Going into Parallels Plesk Panel I can see that
    blogs.dir & /1/ User is test_admin (test_admin is the ftp username) and group is psacln

    /2/ – /4/ User is apache and group is apache

    Moderator Ipstenu (Mika Epstein)
    Keymaster

    @ipstenu

    Try making apache/apache the owner of blogs.dir

    emily.stooksberry
    Member

    @emilystooksberry

    Thanks for the advice, the server admin had set PHP to safe mode – which was restricting the folder creation.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Cannot upload to blogs.dir – Permissions already set to 777’ is closed to new replies.