Just a guy in Vermont trying to connect all the dots...
Author's posts
Dec 02
WordPress.com Offering free .Blog subdomains for new sites
The good folks over at WordPress.com are doing something interesting - they are giving free .blog subdomains for any new sites created on WordPress.com.
Now, to be clear, this is not ANY subdomain under .blog. For instance, I was immediately curious if I could get “danyork.blog”, but no, they are giving away for free third-level subdomains under the following second-level domains:
- art.blog
- business.blog
- car.blog
- code.blog
- data.blog
- design.blog
- family.blog
- fashion.blog
- finance.blog
- fitness.blog
- food.blog
- game.blog
- health.blog
- home.blog
- law.blog
- movie.blog
- music.blog
- news.blog
- photo.blog
- poetry.blog
- politics.blog
- school.blog
- science.blog
- sport.blog
- tech.blog
- travel.blog
- video.blog
- water.blog
So I could possibly get “danyork.tech.blog”, “danyork.news.blog”, “york.family.blog”, or “Vermont.travel.blog”. Basically, a free domain underneath that set of domains.
When you create a NEW site (and that is important because this is currently NOT available to existing WordPress.com sites), you will have a chance to claim one of these subdomains in this process.
Now, for most of us who are more serious about this, we may already have a domain. Or at least will want to get our own.
But for someone just starting out, I could see this being a useful way to get started without having to buy a domain, get it set up, etc. Cool move by the Automattic team behind WordPress.com!
Dec 01
Video: Mit Docker Compose WordPress installieren
Kurz nach der Veröffentlichung meines letzten Beitrags über die Verwendung von Docker zur Installation von WordPress und MySQL, habe ich zufällig ein Video, das im Grunde den gleichen Prozess:
Der Sprecher geht durch die Schritte, die Sie tun müssen, um die Docker-compose.yml Datei, auf die ich in diesem letzten Beitrag hingewiesen habe.
Viel Spaß!
Dec 01
Video: Using Docker Compose to install WordPress
Shortly after publishing my last post about how to use Docker to install WordPress and MySQL, I happened to watch a video showing basically the same process:
The speaker walks through the steps you need to do to create the docker-compose.yml file I referenced in that last post.
Enjoy!
Nov 29
Nominations Now Open for Public Interest Registry (Operator of .ORG) Board of Directors (Featured Blog)
Nov 29
Nominations Now Open for Public Interest Registry (Operator of .ORG) Board of Directors (Featured Blog)
Nov 26
New Github repo for using WordPress with Docker
As I wrote over on my Disruptive Conversations site, I’ve been playing around with using Docker as a way to easily test new WordPress versions and plugins. As part of that testing, I was trying to use the official WordPress image found on Dockerhub.
However, I was struggling with getting started, because the WordPress container is just… WordPress. It also needs a database to work, and my Docker experience was not yet strong enough to sort out how to link various containers together. So I raised an issue on Github asking about a step-by-step tutorial.
Github user wglambert very kindly provided a simple docker-compose.yaml
file that could launch both WordPress and MySQL in separate containers and set up the necessary network and links.
It works wonderfully! And it has now been added to the instructions on DockerHub. (Thank you to the DockerHub admins for merging it in.)
Because I want to easily use the file on different systems, I put it up in a Github repo:
https://github.com/danyork/wordpress-basic-docker
Any of you are welcome to use it, too!
As I noted in my Disruptive Conversations article, I’m planning to start writing here a good bit more about using Docker. I’m rather impressed by all that can be done – and want to capture my own experiments here for my own future knowledge… and if it helps any of you all out, too, all the better!
Nov 26
How to Run WordPress in a Docker Container, Part 1
Here is a quick 3-step process for launching WordPress in a Docker container. You can use this to easily launch a new WordPress instance on your local system to test out new versions, new plugins or anything else.
First, though, you need to have Docker installed on your system. The simplest way for Mac and Windows users is to install Docker Desktop. This desktop download also gives you Docker Compose, which you will need. If you are running Docker on a Linux system, you will need to manually install Docker and Docker Compose.
To run WordPress, you also need a database running. The steps here use Docker Compose to launch TWO containers: one for WordPress and one for MySQL.
Three steps
Step 1 - Create a directory (a.k.a. "folder") and install the docker-compose.yaml
file found in this Github repository. You can get the file three ways:
- using git:
git clone https://github.com/danyork/wordpress-basic-docker.git
- direct download: https://raw.githubusercontent.com/danyork/wordpress-basic-docker/master/docker-compose.yaml
- copy / paste the text into your own file named
docker-compose.yaml
The key is to have this all in a separate directory because your WordPress installation will store some plugins there (see the notes below).
Step 2 - In a terminal window[1] type 'docker-compose up
’
This will launch the two containers and link them together. You will see logging to your terminal window. You can press Ctrl+C to stop the containers and get your command prompt back. To launch the containers in the background add a "-d" option:
docker-compose up -d
Step 3 - Connect to your new WordPress server at http://localhost:8080/
That's it!
Now you simply go through the normal WordPress installation process and within a few screens your new site will be fully active.
Next you can update WordPress to the latest version, install whatever plugins you want, etc.
For example, I installed the WordPress Beta Tester plugin, went into its settings and turned on "Bleeding edge nightlies", performed an upgrade... and now I'm running the very latest WordPress 5.0 build. Perfect for the testing I want to do.
Credit for the simplicity of this approach is due to Github user "wglambert" who answered a request I made about help using the WordPress Docker container. Thank you!
Notes
- Stopping the containers - do '
docker-compose stop
'. This will stop the containers from running. Doing 'docker-compose start
' will start them up again. - A '
wp-content
' directory is created is created inside the directory in which you put the docker-compose.yaml file. Any plugins or themes you add will be stored here. This allows you to do a reinstallation and have all the plugins and themes available. - WHEN YOU ARE DONE and want all this to go away, just type '
docker-compose down
' and the services will be stopped and the containers removed.
There are many more things you can do with docker-compose. The command-line documentation can help you learn more.
Next parts
I labeled this as "Part 1" because I'm planning to write about my own ongoing testing with Docker and WordPress. In future parts of this series, I intend to cover:
- How to load in an existing site for testing
- How to save your changes in a Dockerfile (so you don't have to start at the very basic installation each time)
- ... and other things I learn along the way.
I also expect I may update THIS article over time as I do more with using WordPress and Docker.
I hope you found this helpful. Please feel free to leave comments here (unfortunately I have to moderate due to spam, and so comments will not appear immediately).
I also welcome pointers to other "WordPress and Docker" tutorials that people have found helpful. If you want to follow along with some of my other experiments with Docker and containers in general, I'll be writing about that over on Code.DanYork.com.
[1] or "command shell" or "powershell" or whatever you call it...
Nov 21
Watching the spammers invade Known
It's been over 3 years since I last posted here on Known. I had in fact not thought much about this site.
UNTIL... about 5 days ago when I started getting notifications about comments being added to various posts here.
Yep, the spammers are here. Maybe they have been for a while and just hadn't yet targeted my posts. But now they have.
Rather ironically, they were posting spam comments on a post I wrote in 2014 about Webmentions and the possibility of spam.
Obviously that is still an issue. :-(
This is why we can't have nice things.
Nov 02