WordPress.org

Ready to get started?Download WordPress

Forums

Can't get the right permissions / ownership setup?! (1 post)

  1. seanuk
    Member
    Posted 1 year ago #

    I have a set the following permissions on my WP install:

    find /path.to/wp-install/ -type d -exec chmod 755 {} \;
    find /path.to/wp-install/ -type f -exec chmod 644 {} \;

    then

    chmod -r g+w /path.to/wp-content
    chmod g+w /path.to/.htaccess

    then added domainuser to the group (in /etc/group)

    apache:x:48:apache,domiainuser
    psacln:x:2523:apache,psaadu,psaftp

    then

    chown -r domainuser:psacln httpdocs

    this allows me to upload images thru WordPress media uploader and upload files to the ftp, but I can't update WP, or any plugins within WordPress auto updater.

    If I change ownership:

    chown -r apache httpdocs

    I can then update thru wordpress, but can't upload files thru FTP?

Topic Closed

This topic has been closed to new replies.

About this Topic