Loading...
Blogging

How to improve the site health in Bitnami WordPress

Bitnami Site Health

Just execute the below command 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/;extension=imagick.so/extension=imagick.so/g' /opt/bitnami/php/etc/php.ini
  3. Your site is running an older version of PHP.
    YOU CAN’T UPDATE PHP VERSION OF A RUNNING INSTANCE.

  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/ctlscript.sh restart apache

Happy to Help.

Leave a Reply

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