• Hi,
    I’ve followed articles and set up my Ubuntu 12.04 server. Everything is working fine so far.

    I have installed WordPress and I can see my basic WordPress installation working ok in my browser. However, when I try to upgrade something (a plugin, a theme, etc), I get sent to a page requesting my Connection Information:
    Hostname – localhost
    FTP username – username I use in Filezilla (SFTP mode)
    FTP password – password I use in Filezilla (SFTP mode)
    Connection Type – FTP or FTPS (SSL), I choose FTPS (SSL)

    All my development so far has been on a local WAMP server so I never got sent to this page before.

    When I fill out my connection information details, I get the following error:
    Failed to connect to FTP Server localhost:21

    Any ideas? I’m hoping someone has had the same problem as me.
    I’m a novice at servers and linux, but I’m learning as I go along.
    Thanks 😀

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, check the file permission for the plugins folder make sure the web server can write in them.
    to check the permissions:
    open terminal and use the command:
    ls -lah /var/www/.../wp-content/
    you’ll probably have to repeat this for more folders like
    ls -lah /var/www/.../wp-content/themes or
    ls -lah /var/www/.../wp-content/plugins/
    now if you want to keep the site on your localhost just for development then you can give access write for the web-server to all the folders that you have in your site (this can cause security issues if anybody else has access to the website).
    so the fast solution: give write permission to all the folders in your website is:
    sudo chown -Rv www-data:www-data /var/www/"path to your site"
    Hope this helps.
    Regards

    Thread Starter arbzilla

    (@arbzilla)

    Thanks for the reply jnhghy 🙂
    After I did the chown command, everything worked perfectly. Is this a secure way to leave things, or do I need to change it back to what it originally was?

    Hi,I checked my sites and all of them have www-data as owner of the folders and files so I think it’s ok to leave it like that.
    Glad to see this was the issue.

    Thread Starter arbzilla

    (@arbzilla)

    Ok. Thanks again for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress auto upgrade can't connect’ is closed to new replies.