Dreamhost WordPress HTTPs Redirect

No Apache does not need you to restart it. Yes, you are doing it wrong. Follow the instructions at the link:

https://help.dreamhost.com/hc/en-us/articles/216385837-Enabling-Shell-access

Make sure you are in <address-of-your-site.com folder> and not the web subdirectory. There are multiple .htaccess files, but I am not sure how missed the first one.

Enable shell access, but then be smart and enable SSH keys for password-less connections.

https://help.dreamhost.com/hc/en-us/articles/216385837-Enabling_shell_access

It helps to use the proper user name when trying to log in.

https://help.dreamhost.com/hc/en-us/articles/216499537-How-to-configure-passwordless-login-in-Mac-OS-X-and-Linux

Updating Dreamhost PHP and getting Homebrew

I got here trying to install homebrew to play with node/npm per:

https://treehouse.github.io/installation-guides/mac/homebrew

Paying attention to the output and getting Xcode to properly install reminded me how much a pain and how bloated Xcode is again. After unneeded obfuscation, I got the error below but was able to recover and move on.

https://discourse.brew.sh/t/xcode-select-error-invalid-developer-directory-library-developer-commandlinetools-failed-during-usr-bin-sudo-usr-bin-xcode-select-switch-library-developer-commandlinetools/693

Xcode finally installed but Mac could not let me be. Time to update the Mac OS. I used the time to figure out how to upgrade PHP and determine how htaccess/http redirect works on my “Dream” host. Dreamhost makes managing your site both easy and obfuscated. Want to setup SSL? Go to Manage Domains and click the SSL link and follow the on-page instructions. Want to update PHP? go to Manage Domains. Oh and then head to edit and select a new version PHP. For both, they will graciously update in some time at their convenience between now, 5 minutes, and a day. Go get some coffee.

Back on the Saddle

3 years of paid and unused service, but lets try this again

Started looking at serverless tonight to play around with something. Want a simple way to log and show production checkout test for systems I work on. Got to looking at https://aws.amazon.com/free, then looking at getting npm updated and running on my MBP. That got me installing homebrew and xcode (reminding me again how bloated and update driven xcode is). Just logging in, I had to remember how to use WordPress.

Then came the whys: Why is this site slow, why doesn’t it have https enabled, why am I paying so much each month? Why is PHP outdated and how do I get to a console to update it? Oh yeah – why did google tell me my site had issues again? Oh, it looks like crap too. Why did I setup up OpenShift last week on my Workstation (12 Core/48 GiB RAM) to play with containers when the web is moving on to serverless?

So here we are. A new post, homebrew installed, but NPM is not yet updated.

WordPress Categories – Creating Some Structure

I went ahead and created some WordPress categories for the site. WordPress provides flexibility in the realm of creating categories and tags. At the end of the day there are about three reasons to create categories:

  • Content Organization – For yourself and visitors
  • Simpler Links/Permalink Structure – Easier navigation via an easier (to-a-human) link structure
  • Helping google help you – SEO

To get started – I recommend a creating a simple category structure with no parents. Add tags as you are will/are ready. It seems that the consensus is that you should always have a category when it comes to a post, but tags are optional in the realm of using WordPress Categories for search engine optimization.

If you want some background on WordPress Categories and Tags: WordPress Categories vs Tags

To add categories, or remove the uncategorized category:

  1. At the WordPress Dashboard, go to Posts > Categories
  2. On the Categories Page, hit add category.
  3. Enter in the requested information – try not to create names that are too long
  4. If you want to edit a category – specifically the uncategoried category, refer to the next section

WordPress Categories
Add a WordPress Category

Leveraging the Yoast SEO Tools:

Once you have created a new category, you will want to immediately update it and add in the SEO details. If you are using Yoast SEO, you can bring up a page like the one below by doing the following:

  1. On the Posts > Categories Page, hover over the new category and select the Edit option
  2. The Category Edit page will load, and there will be a Yoast SEO area to fill in
  3. Enter in the requested information

Yoast SEO WordPress Categories
Add in SEO Category Details

Categorizing Posts:

When you create a post it is simple to add a category, but I recommend only using one category when you first get started.

The reason is that there can be complications when using multiple categories (such as which category will get used for the permalink) and while there are solutions (plugins/etc) they will be a distraction to getting your site off the ground. Leverage tags for now if you want that kind of granularity at this point.

Creating better links:

You can create better links using your WordPress Categories by updating your WordPress permalink structure:

  1. On the WordPress Dashboard, go to Settings > Permalinks
  2. Choose Custom, and enter: /%category%/%postname%/
  3. Hit – Save Changes

Note: Your posts will now be referenced using a new link. You may want to make sure your sitemap updated properly. Possibly even work on notifying Google.