• 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

Tips & Tricks Using The AWS Bitnami WordPress AMI Image

General · March 12, 2014

Recently on a client site I had to deploy it onto Amazon Web Services or as the hipster kids call it, AWS and I decided to use the wonderfully functional Bitnami WordPress AMI which comes with a pre-installed version of WordPress, Apache, Varnish and a few other nice little additions.

While it is mostly install and use, there are a few caveats you can easily overcome:

Default WordPress admin details

When you deploy the Bitnami AMI for WordPress it comes already installed, which means that a username and password for the WordPress admin panel has already been created. It can be a pain in the butt finding these details, so the defaults are:

Username: user
Password: bitnami

Changing the URL to be the root directory

By default WordPress in the Bitnami AMI image comes installed in a sub-folder “wordpress” which means when you first visit your installation, you will notice a /wordpress in the URL. If you’re using WordPress for your main site, this isn’t ideal.

Changing it fortunately doesn’t require copying or moving files, simply run this command in your console:
sudo /opt/bitnami/apps/wordpress/updateip –appurl /

Making all folders and or specific folders writeable (like the uploads folder):

You might have eventually realised by default, the uploads folder and other folders in your WordPress installation are not writeable. This is simply a matter of changing the group and owner of the files/folders.

To make the uploads folder writeable:
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads

To make all folders writeable:
sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs

Setting up PHPMyAdmin Access:

Out of the box, PHPMyAdmin is locked down for security reasons. The process is documented here and fairly straight-forward for Windows and Mac users to set up SSH tunnelling.

Dwayne

Leave a Reply Cancel reply

5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Martin Kingsley
Martin Kingsley
7 years ago

Thanks for the valuable tips, Dwayne, they were very useful. There are always undocumented idiosyncrasies when dealing with services like AWS, and practical dissections of what they are and how to deal with them can and do save really significant chunks of time!

0
Martin Kingsley
Martin Kingsley
7 years ago

Also, FYI, when changing the default URL structure for the WordPress install by using the command supplied, I got the following error:

“Error: There has been an error.
Expected option but got “–appurl”. Options start with a leading “–” prefix
Use –help to get a list of valid options”

When I used “sudo /opt/bitnami/apps/wordpress/updateip –appurl /”, it appeared to work correctly. I wonder if your “–” got changed into a “–” by auto-correct when publishing your post?

0
Martin Kingsley
Martin Kingsley
7 years ago

(I see that WordPress appears to be modifying two dashes into one en-dash by default:

One dash: –
Two dashes: —
Two dashes, separated by a space: – – )

0
Martin Kingsley
Martin Kingsley
7 years ago

Oh, and finally, if you use the Marketplace to deploy the Bitnami AMI, the password won’t be applied using the default credentials, and will instead be randomised during the deployment.

You can get the randomised password via the instance’s System Log: https://wiki.bitnami.com/Amazon_cloud/Where_can_I_find_my_AWS_Marketplace_credentials%253f

0
A guy from Brazil
A guy from Brazil
6 years ago

Thank you so much your post helped me a lot!

0

Primary Sidebar

Popular

  • Thoughts on the Flipper Zero
  • Testing Event Listeners In Jest (Without Using A Library)
  • How To Get The Hash of A File In Node.js
  • How To Paginate An Array In Javascript
  • Waiting for an Element to Exist With JavaScript
  • Reliably waiting for network responses in Playwright
  • How To Get Last 4 Digits of A Credit Card Number in Javascript
  • How to Use Neural DSP Archetype Plugins With the Quad Cortex
  • Neural DSP Reveal Details About the Long-Awaited Quad Cortex Desktop Editor
  • Removing A Character From The Start/End of a String In Javascript

Recent Comments

  • Kevmeister68 on Start-Ups and Companies That Embrace Work From Anywhere Will Be More Likely to Survive the Coming Recession in 2023
  • kevmeister68 on What Would Get People Back Into the Office?
  • Dwayne on PHP Will Not Die
  • Dwayne on How to Create a Blockchain With TypeScript
  • kevmeister68 on PHP Will Not Die

Copyright © 2023 · Dwayne Charrington · Log in

wpDiscuz