• Hi,
    I can’t seem to connect a wordpress via FTP to make automatic upgrades. I have tried many times and with different settings, and none seems to work.

    This site is hosted on a cloud server (that’s my first time on a cloud server). This is the only info my client sent to me:

    SSH & FTP access to VPS (CentOS 6.8)
    IP: 104.236.21.126
    user: root
    pw: ******

    In the connection page I put the following info:

    hostname: the url of the site (also tried using the ip address as well)
    FTP username: root@url of the site (already tried ‘root’ only)
    FTP password: the same password as above

    Tried both FTP and FTPS without success.

    Any ideas on how to set up this so that the site will connect?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If WordPress keeps asking you for FTP credentials see https://codex.www.ads-software.com/Updating_WordPress#Automatic_Update and https://codex.www.ads-software.com/Editing_wp-config.php#WordPress_Upgrade_Constants as well as https://v007.me/4 for forcing direct file system writes

    WordPress only asks for FTP for updates if the file system ownership and/or permissions are incorrect.

    Thread Starter nandorj78

    (@nandorj78)

    Sorry, but it just got more complicated. Thanks for the help, anyway.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    it just got more complicated

    That doesn’t sound good. What just happened?

    Thread Starter nandorj78

    (@nandorj78)

    Editing php files, adding filters, this just seems too complicated. If only I could set up the connection page in the update-core.php page

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you’re working on a theme, then using sftp is the right way to push your changes up to the site. I use an editor that makes the sftp connection, so I edit locally and then use a “save to remote” to push the change up to the site once I think it’s (probably) less buggy.

    but NEVER edit core files.

    Is your issue with WP updates or with development?

    Thread Starter nandorj78

    (@nandorj78)

    WP updates, plugins and theme updates

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Then the issue, if dashboard->updates is asking for FTP creds, is as mentioned above, a problem with the file system settings, ownership, and/or permissions.

    The web server and/or PHP process must have write access to the directory tree for the WordPress site.

    Thread Starter nandorj78

    (@nandorj78)

    Yeah, but it has access… wp-content folder and files are all 777 at the moment. Should the entire wordpress folder be 777?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No, 777 is bad

    Folders should be 755 or, at worst, 775. Files 664 or 644.

    What is the user under which PHP is running?

    Also, I just re-read your first post. A server should NEVER allow root to access via SSH or SFTP or anything else. Logins should be through a regular user ID and then the user uses sudo or su to do things as root.

    If sshd is properly configured on the server, your problem may be that you’re trying to login as root and it won’t accept root logins.

    Thread Starter nandorj78

    (@nandorj78)

    So, that’s the problem. The only info I was given was the one I mentioned above. I can’t create another FTP user on the server. What a bummer.

    Thanks for the help anyway

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Connect WordPress to the server via FTP/FTPS’ is closed to new replies.