How to improve the site health in Bitnami WordPress

People who are running their blog on Binami WordPress have this issue of site health. When they check their WordPress dashboard, they generally see that they have one or the other issue with their site health. While there is no compiled guide to fix all the common site health issues for Binami WordPress, I cover in this post almost all those common site health issues with their fixes and also a guide to debug the most common http errors in Bitnami WordPress. Below is a list of common issues with their one line fix. This way, you will be able to improve the site health of Bitnami WordPress.

1. Background updates are not working and some files are not writable by WordPress.
Run below command using SSH:

sudo chmod 777 /opt/bitnami/apps/wordpress/htdocs/index.php 
sudo chmod 777 /opt/bitnami/apps/wordpress/htdocs/readme.html

2. Imagick module is missing.
Run below command using SSH:

sudo sed -i 's/;' /opt/bitnami/php/etc/php.ini

3. Your site is running an older version of PHP.

4. The authorization header is missing.
Just add the below directive in the starting of your bitnami apache configuration file (located at stack/apache2/conf/bitnami/httpd.conf  for codeanywhere or opt/bitnami/pache2/conf/bitnami/httpd.conf  for WinSCP).

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

How to debug the common HTTP errors in Bitnami WordPress

When you make changes to the configuration files in Bitnami WordPress, sometimes you will end up with HTTP 500 errors. These errors will definitely suck your head. In most of the cases, they may be related to permissions. Just try running the below commands to reset the permissions by SSH.

sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/
sudo find /opt/bitnami/apps/wordpress/htdocs/ -type d -exec chmod 775 {} \;
sudo find /opt/bitnami/apps/wordpress/htdocs/ -type f -exec chmod 664 {} \;
sudo chmod 640 /opt/bitnami/apps/wordpress/htdocs/wp-config.php

And restart the apache after that.

sudo /opt/bitnami/ restart apache

Happy to Help.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.