Changing VA server ownership? Cant edit WP files..changing file owner SSH?

Discussion in 'Site & Server Administration' started by cluongo18, Mar 2, 2012.

  1. #1
    We recently switched from a normal server to a virtual server. We transferred our WordPress blog to it and now are having some issues in the WP backend.

    It first started when I tried to auto update WordPress to 3.3, it askes for my FTP info, which I entered, and it accepted. It then went on with the update and said complete. Yet it is still asking me to install WP 3.3. So basically it never installed.

    Same thing with plugins, I can't add new ones or delete them. They dont go away or add no matter if I enter the write FTP info or not.

    I was told I need to change the ownership of my files on the server (using CHOWN command) but I'm not sure how to do that as I don't have much experience using SSH. Or which "user" to give ownership to, so I can edit files on my WordPress blog.

    Thanks!
     
    cluongo18, Mar 2, 2012 IP
  2. samirj09

    samirj09 Well-Known Member

    Messages:
    335
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Do you have cPanel installed on this VPS?

    If you do, then this is what you need to do. The username you will need to change the ownership to is the cPanel username. Below are the commands to be executed from root. (This is assuming that ownership is really what is causing the issue.)

    chown -R cpanelusername.cpanelusername /home/cpanelusername/public_html
    chown cpanelusername.nobody /home/cpanelusername/public_html
    chmod 750 /home/cpanelusername/public_html

    You will need to run all of those commands in that order to fix the permissions. Please PM me if you need assistance with this.

    Also, if you are not too familiar with SSH, I would not recommend you doing this due to the amount of damage that can be caused when executing commands from root. I would suggest that you contact somebody who is familiar with SSH to do this for you.

    Also, it might be in your best interest to purchase a managed VPS instead of a unmanaged so that your host can help you out with this. (If you are looking for a managed VPS, PM me for details as I have some available.)


    Please PM me if you need help with any of this.
     
    samirj09, Mar 2, 2012 IP