Author: Prabhu Balakrishnan
-
What is Bitnami password for Lightsail?
Below are some quick answers to login to your lightsail instance for first time lightsail users. Launch the commandline. Get your username Get your Password This will be your first command on the commandline. WordPress Location There is no file manager, phpmyadmin, email, cpanel etc comes with lightsail (unless you want to pay). Apache Error…
-
How to connect to mysql in lightsail
If you have lightsail instance, it is super easy to connect to mariadb (or mysql) installed with bitnami. First take the password by cating Then connect The above command could be deprecated, use with mariadb You dont need phpmyadmin. This is the rightway to avoid error cannot connect to socket.
-
Fix:WordPress URLs leaks IP address
If you see wordpress URLs exposes ip address of your server despite being in cloudflare, go modify wp-config.php to make these setting In most cases, this should resolve the problem. Make sure you go to WordPress > General settings > and check the domain name has https not http. You also have to save again…
-
Investigate these culprits if you see drop in google rankings.
Google could penalize your sitealgorithmically, if they see any site issues with hosting. Cloudflare, and other plugin such as Wp-rocket or Wordfence could just be suspects. Investigate thoroughly. Cloudflare is used by everyone, much data flows through their proxy. It could have counter effect. Possible the assigned ip has history of blacklist. Investigate property if…
-
WordPress code to echo last modified date
All you need to do is just edit theme file and place this one line code. You dont need heavy plugins to do this job. Edit single.php and page.php, place it.
-
Missing SSL Root chain certificates
I have been struggling with the missing intermediate/root chain certificates when i tried third party ssl certificate. Check Installation First check the installed cert. Use these tools to check your certificate https://www.ssllabs.com/ssltest/https://www.sslshopper.com/ssl-checker.html To fix this problem, i would suggest The chained certs must be according to correct order of certifying authority. Make sure you point…
-
Check Expiry of SSL certificate Installed in Origin Server (Cloudflare)
If you use cloudflare, probably you will only see SSL cert issued by cloudflare at your end signed by Google Trust LLC at your end. There is no way to see or check the original cert installed in your server. For example you want to see the expiry date or certificate issuing authority. I will…
-
How to Install SSL certificate in Amazon Lightsail
It is super easy to install SSL certificate (not Let Encrypt) in Lightsail with apach2/openssl. We installed a certificate from Sectigo which is issued for one year. Follow the steps Prepare the server Stop Apache Generate CSR and private key first Get the Certificate from Authority Unzip it you will find server.crt and chain_ca.crt SCP…
-
SCP file copy from Cpanel to Lightsail instance
Are you copying files from cpanel server to amazon lightsail instance with wordpress?. You dont need to struggle. All you need to do is just use this one line. Download the key from lightsail instance, upload to origin server (eg. cpanel) and change the permission to 6o0 for key.pem. It is super easy! Replace the…
-
WordPress filter to remove empty nbsb paragraphs
Here is the function that removes empty &nbsb; paragraphs within the content. This will automatically remove all the empty lines before outputting content. You can place it in functions.php but remember when you update the theme, this function will be gone.