Monday, February 11, 2019

host smtp.gmail.com said: 530-5.5.1 Authentication Required.

Postfix Error :

gmail smtp error : While sending mail through postfix using gmail smtp details

host smtp.gmail.com[74.125.24.108] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1  https://support.google.com/mail/?p=WantAuthError g70sm5432169pfg.98 - gsmtp

Solution :
1. Make sure you have added correct port 587 in main.cf and sasl_password
2. Make secure less secure app is on in your gmail account.



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.