Monday, February 11, 2019

bitnami - Change phpmyadmin url and access using public IP

Since we are going to make the url public, it is good practice if we make it non-predictable.
sudo nano /opt/bitnami/apps/phpmyadmin/conf/httpd-prefix.conf
Alias /phpMyAdminZAQWDCFRTdf1236 "/opt/bitnami/apps/phpmyadmin/htdocs"

Now give the privileges to make it public.

sudo nano /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf
<IfVersion >= 2.3>
Require all granted
</IfVersion>

bitnami mysql password
cat /home/bitnami/bitnami_application_password
This is wp-admin password / mysql root password
cat  /home/bitnami/bitnami_credentials
Welcome to the Bitnami WordPress Stack

Tuesday, January 8, 2019

Linux System - date not changed using command line

If you are trying to change date of a Linux system using command `date -s`, it shows changed date as a result but when you run date command again, it shows old date. You are getting this issue because there may be reason that NTP is enabled.

Solution :

Disable the NTP using command.

sudo timedatectl set-ntp 0

Now change date again using `date -s` command. Now date should be changed successfully.

ERROR: The Compose file './docker-compose.yml' is invalid because Unsupported config option for services 'healthcheck'

While building and starting the container with command

docker-compose up -d

You get following error

ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.db: 'healthcheck'
Unsupported config option for services.redis: 'healthcheck'


Solution :
Check your docker-compose version.

docker-compose --version 

Your docker-compose has lower version than 1.9.0. Upgrade docker compose using pip install and check docker version in /usr/local/bin/docker-compose.

/usr/local/bin/docker-compose --version

After upgrading if you are getting same issue again, check your docker compose version again using

docker-compose --version
/usr/local/bin/docker-compose --version

If both are different, use upgraded docker-compose with absolute path like

/usr/local/bin/docker-compose up -d