• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

I Like Kill Nerds

The blog of Australian Front End / Aurelia Javascript Developer & brewing aficionado Dwayne Charrington // Aurelia.io Core Team member.

  • Home
  • Aurelia 2
  • Aurelia 1
  • About
  • Aurelia 2 Consulting/Freelance Work

How To Enable Automatic Updates and Automatic Installs in WordPress On A Linode Box

General · October 13, 2012

So you’ve just installed a shiny new copy of WordPress via command line on your even shinier Linode box and the helpful guides Linode provide for setting up a database and your initial WordPress install went well. If you’re used to installing plugins from within WordPress instead of manually you most likely would have run into the issue of WordPress asking you for FTP connection details to install the plugin.

Why? The reason is because the files on your server aren’t owned by the Apache instance owner but rather owned as the user currently logged in (most likely root or another user you’ve created). The fix for this is simple and shouldn’t cause any security issues. Some people prefer to manually upload and install plugins but sometimes having everything done automatically is a lot simpler — not to mention when it comes time to installing updates it’s easier to click an update link than delete and override old plugin files or WordPress core files.

Anyways, enough talking. Login to your Linode box as a sudo user or user with appropriate permissions and go into the root directory of your WordPress install if you’re running Ubuntu (which you most likely are) then your site is most likely in /var/www — once you’re in the root of your site where the wp-content, wp-admin and wp-config.php file is run the below command and you should now be able to perform updates and install plugins/themes automatically without needing to enter any information.

 chown -R www-data:www-data *

Basically the above command will change all files and folders (hence the -R part which means recursive) to be owned by the same user and group as the Apache instance is being run by. Simple.

Dwayne

Leave a Reply Cancel reply

0 Comments
Inline Feedbacks
View all comments

Primary Sidebar

Popular

  • I Joined Truth Social Using a VPN and Editing Some HTML to Bypass the Phone Verification
  • Testing Event Listeners In Jest (Without Using A Library)
  • How To Get The Hash of A File In Node.js
  • Thoughts on the Flipper Zero
  • Waiting for an Element to Exist With JavaScript
  • How To Paginate An Array In Javascript
  • How To Mock uuid In Jest
  • How To Decompile And Compile Android APK's On A Mac Using Apktool
  • How To Get Last 4 Digits of A Credit Card Number in Javascript
  • Wild Natural Deodorant Review

Recent Comments

  • CJ on Microsoft Modern Wireless Headset Review
  • Dwayne on Microsoft Modern Wireless Headset Review
  • CJ on Microsoft Modern Wireless Headset Review
  • john on Microsoft Modern Wireless Headset Review
  • Dwayne on Why You Should Be Using globalThis Instead of Window In Your Javascript Code

Copyright © 2023 · Dwayne Charrington · Log in

wpDiscuz