WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cannot upload to blogs.dir - Permissions already set to 777 (9 posts)

  1. emily.stooksberry
    Member
    Posted 2 years ago #

    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!

  2. What's 6 set to? And who owns it?

  3. emily.stooksberry
    Member
    Posted 2 years ago #

    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.

  4. 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.

  5. emily.stooksberry
    Member
    Posted 2 years ago #

    How do I check ownership?

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

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

  7. emily.stooksberry
    Member
    Posted 2 years ago #

    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

  8. Try making apache/apache the owner of blogs.dir

  9. emily.stooksberry
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic