12345678910111213141516 |
- <!DOCTYPE html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><meta name="keywords" content="GNU, Emacs, Libre Software, Hurd, Guile, Guix" /><meta name="description" content="GNUcode.me is a website focusing on libre software projects, especially the GNU project." /><link type="application/atom+xml" rel="alternate" title="GNUcode.me -- Feed" href="/feed.xml" /><a rel="me" href="https://fosstodon.org/@thegnuguy"></a><link type="text/css" href="css/footer.min.css" rel="stylesheet"></link><link type="text/css" href="css/header.min.css" rel="stylesheet"></link><link type="text/css" href="css/main.min.css" rel="stylesheet"></link><title>Installing WordPress — GNUcode.me</title></head><body><header><nav><ul><li><a href="index.html">GNUcode.me</a></li><li><a href="services.html">Services</a></li><li><a href="about.html">About</a></li><li><a href="business-ideas.html">Business-ideas</a></li></ul></nav></header><h1>Installing WordPress</h1><main><section class="basic-section-padding"><article><h3>by Joshua Branson — March 13, 2018</h3><div><p>Hello, world!</p><p>Installing Wordpress from a linode account can be a bit of a chore, but I've done it again!</p><p>The main issue that I had was that WordPress wouldn't automatically update for
- me. I've remembered running into this issue before, and Wordpress has a section
- on it on their
- <a href="https://codex.wordpress.org/Upgrading_WordPress#One-click_Update">codex</a>.
- Essentially: WordPress determines what method it will use to connect
- to the filesystem of your server based on the file ownership of your WordPress
- files. If the files are owned by the owner of the current process (i.e., the
- user under which the web server is running), and new files created by WordPress
- will also be owned by that user, WordPress will directly modify the files all by
- itself, without asking you for credentials.</p><p>So all I had to do was figure out what worker process nginx was running under.
- After chatting on
- #debian or irc.freenode.net for a second, a user said that their worker process
- was <code>www-data</code>. And indeed cat <code>/etc/passwd</code> shows that there is a user <code>www-data</code>
- on my system. And <code>/etc/nginx.conf</code> said user <code>www-data</code>; All I had to do to get it
- to work was a <code>cd /var/html/www/; sudo chown -R www-data</code> . And now WordPress
- will handle updates automatically! Coolio!</p></div></article></section></main><footer><p>© 2020 Joshua Branson. The text on this site is free culture under the Creative Commons Attribution Share-Alike 4.0 International license.</p><p>This website is build with Haunt, a static site generator written in Guile Scheme. Source code is <a href="https://notabug.org/jbranso/gnucode.me">available.</a></p><p>The color theme of this website is based off of the famous <a href="#3f3f3f" target="_blank">zenburn</a> theme.</p></footer></body>
|