Getting WordPress to Run Automatic Updates on Ubuntu 

Filed in WordPress Tags: , , ,
FTP Connection Information WordPress Error

I am not a Linux person. I like Windows. It does things for me and removes my need to think about what’s going on. Unfortunately, when my pretty little Dell decided to die a slow, excruciating death, I had no choice but to run Ubuntu on my husband’s craptastic spare HP laptop.

Long story short, working with Ubuntu was a pain, especially when it came to local WordPress development. In the most recent versions of WordPress, they’ve implemented an extra security feature. If the user running Apache isn’t the same as the user that owns the directory, you need to enter FTP connection information. And even if you do enter information (assuming you have it) it won’t work.

Note that your files all need to be owned by the user under which your Apache server executes, or you will receive a dialog box asking for “connection information,” and you will find that no matter what you enter, it won’t work. [WordPress Codex]

What’s a Windows loving girl stuck in Linux hell to do? The first step is to nag her husband. The second step is to start screwing around with directory ownership until something works.

To turn off the godforsaken FTP connection information dialog, all you need to do is

  1. Open Terminal. (Applications -> Accessories -> Terminal)
  2. Navigate to the folder directly above your troublesome WordPress installation. (cd /var/www/some/other/directory)
  3. Give Apache ownership of the directory. (sudo chown -R www-data.yourusername DirectoryName)
  4. Enter your password.

Now, go back to your WordPress admin panel. Try running an automatic update on your installation or a plug-in, or install a new plug-in automatically. If all goes according to plan, you should see the beautiful successful installation screen.

Feedback

Comments

One Response to “Getting WordPress to Run Automatic Updates on Ubuntu”
  1. darcy says:

    Yeah it worked!

    I had been trying to solve this one for a while but a google search always just revealed some guy going all macho making it complicated!

    I tried it on one of my blogs and it worked instantly. What a relieve. It’s so much work downloading, unzipping and uploading files on my server all the time.

    Thanks for finding a good answer for this problem!!!!

    Darcy

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About Me


I'm Becky. I write this blog. From time to time, someone else will write this blog. I like WordPress, hiking and puppies.

You can hire me for WordPress or PHP odds n' ends on oDesk.