After installing WordPress on your AWS EC2 instance using the AMI provided by Bitnami, you’ll want to enter your instance’s public IP address into your browser and check that it’s live and everything is running correctly.
When you land on your brand spanking new WordPress site, one of the first things you’ll probably notice – apart from the default theme that is inevitably made active – is a small Bitnami banner in the bottom-right corner of the browser’s window. The banner links through to another page.
The information contained on the page is very useful; it’s the basics covering access to various parts of your website such as the WordPress admin area, phpMyAdmin and more. Once you’ve got that information, there’s no need for the banner to stay. Arguably there’s no real need for the banner in the first place as the page is always navigable regardless of whether the banner is there or not (just go to http://YOURDOMAIN/bitnami/index.html to view it, obviously replacing YOURDOMAIN with your domain name). Still, it ensures all users see the important information this page contains.
Unfortunately, there’s no X symbol, ‘Close’ button or GUI setting to remove it like you’d expect (or hope). Instead, you’ve got to run a command on your EC2 instance via SSH.
Assuming you’ve already got PuTTY setup with your IP address, username and .ppk key to get SSH access, you’ll want to login and run the following command:
sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1
Give it a few seconds and the command will execute. The banner won’t disappear yet, though. There’s one more; restart your server.
Restarting your server depends on which web server you’ve got running. If you’ve chosen the ‘WordPress Certified by Bitnami and Automattic’ AMI from the AWS Marketplace, then it’ll be Apache. If you’ve used a different ‘image’ or setup the EC2 insance / server yourself then you’ll need to find out if you don’t already know.
If you’re running Apache, you’ll want to run the following command to restart your server:
sudo /opt/bitnami/ctlscript.sh restart apache
Alternatively, if you’re running nginx, run the following command:
sudo /opt/bitnami/ctlscript.sh restart nginx
After you’ve run the command and the server has restarted, refresh your WordPress website and voila! There we have it (or don’t have it, which is more the point).