Amazon Web Services (AWS) WordPress

Useful Commands for Bitnami WordPress Installations

Have a server running Bitnami-powered WordPress? Here’s a collection of useful commands you might need from initial setup through to ongoing maintenance.

Remove the Bitnami Banner

Want to remove that annoying helpful banner that Bitnami stick to the bottom of your WordPress website? Use this command:

sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1

More detailed guide here.

Be sure to restart your application’s services afterwards (see below)!

Check the Status of Services

To check the status of the services running on your server (e.g. PHP, Apache and MySQL), use the following command:

sudo /opt/bitnami/ status

Stop, Start and Restart Services

Whether you’re experiencing issues or you’ve made changes to your server’s configuration (including removing the Bitnami banner like above), you’ll need to stop, start or restart the services running on the server (e.g. PHP, Apache and MySQL). Here’s the commands:

# Start
sudo /opt/bitnami/ start

# Stop
sudo /opt/bitnami/ stop

# Restart
sudo /opt/bitnami/ restart

If you want to start, stop or restart a specific service (as opposed to all of them), pass the service name as an argument to the commands above. For example:

sudo /opt/bitnami/ restart apache

Find Your Password

Just setup your new server and need to find your password? Maybe you’ve just forgotten it (it happens!)? Run this command to display your application’s password:

cat ./bitnami_credentials

More detailed guide here.

Install a Free, Auto-Renewing SSL Certificate

A free, auto-renewing SSL certificate. What’s not to like?

Bitnami have a handy tool for configuring and installing a free SSL certificate provided by Let’s Encrypt so that your users can enjoy encrypted connections to your website and you get the benefit of HTTPS.

Just run the command below and follow the steps.

sudo /opt/bitnami/bncert-tool

More detailed guide here.

Got any useful commands that you would add to the list above? Let me know in the comments below!

Leave a Reply

Your email address will not be published. Required fields are marked *