How to turn on or off a module from Jetpack

I was setting up Jetpack for a new site. I like the interface and love to have all the sites within one single app!

I wanted to use their contact form feature on the new site. But the changes on the form settings were not being saved. Read More

Script to Install a Webserver on Debian and OSX in Minutes

Each time I reinstall the OS on my laptop, I have to struggle with the web server installation and configuration. Because I have minimal hardware and I like my environment clutter free.

So I used to install each package one by one and I had to google a couple of times. One of my colleague from weDevs wrote a cool script to install everything at once. No googling required!

Here is the link to the repo

It has composer included. So if you need to install WP CLI, then it will ease the process too.

Please let me know if you have any questions about servers 🙂

How to Renew Let’s Encrypt SSL

Recently I wrote a tutorial to install Let’s Encrypt SSL on a shared hosting. The SSL certificate of my site is about to expire next month and I got 2 notification emails. So I have renewed the certificate today.

Read More

How to Install Let’s Encrypt Free SSL on NameCheap Shared Hosting

Last year, I heard about Let’s Encrypts free SSL. But I was using to host my website. So I already had SSL on my site. So I did not pay much attention to it.

From 2017, I am quite serious about my site and have a plan to write regularly on my blog. I have a “bad reputation” for coming up with a new idea every morning. So yesterday I installed the free SSL certificate on my shared hosting and saved 10 USD!

So here’s how I did it.

  1. Searched for “Free SSL” on google. (I forgot the name Let’s Encrypt 😝 ).
  2. Then I found a couple of organizations and the name “Let’s Encrypt” clicked in my head! Because my boss mentioned this name earlier.
  3. Then I searched again “Let’s encrypt on a shared hosting” and opened another tab to check if NameCheap has any built-in support for Let’s Encrypt. So I searched again.
  4. Then I found this article: How To Install Free SSL From Let’s Encrypt On Shared Hosting
  5. Opened up the terminal on my MacBook and wrote
    ssh -p 21098
    Here  -p 20198 is the port number for shell access. I got the port number from NameCheap’s Support doc.
  6. Then I used my cPanel password as the shell password.

    But the terminal told me that I do not have shell access enabled on my hosting. So I contacted NameCheap support via live chat.

  7. So I logged in again and ran the commands following commands
    git clone
    cd acme-client
    php -r "copy('', 'composer-setup.php');"; php composer-setup.php; php -r "unlink('composer-setup.php');"; php composer.phar install --no-dev
    php bin/acme setup --server letsencrypt --email
    php bin/acme issue --domains --path /home/x123011738/public_html:/home/x123011738/public_html --server letsencrypt
    Requesting certificate ...
    Successfully issued certificate.
    See /home/x123011738/acme-client/data/certs/
    cd /home/x123011738/acme-client/data/certs/

    Then I copied the contents of the fullchain and key file using the commands below and saved on my desktop with the same name.

    cat fullchain.pem
    cat key.pem
  8. Then, I logged into the cPanel of my site and found the option to manage SSL Certificates. I selected the domain and uploaded the files I have made on my desktop.If your site has static HTML files, then you’re done till here. But mine is a WordPress powered site. So I had to change the URL structure from wp-admin → Settings → General. I have changed to and then saved the settings.
  9. But I was not happy yet. Because I found the SSL certificate on the single posts and pages. But it was not working on the homepage 😐
  10. So I had to google again “Setup SSL WordPress” and found that I need to paste something in my .htaccess file!
  11. I logged in to the cPanel again and good lord! There’s no .htacess file on the hosting root! How’s this possible! How can a WordPress site run without a .htacess file!
    Then my colleague, who luckily works on the Dokan plugin support team, told me that it could be hidden. So I enabled showing hidden files and voila! The file was there with hefty lines of rewrite rules and allowing file types to uploading.
  12. I pasted the following lines at the very end of the .htacess file
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$$1 [R,L]

    This article has more detailed information: How to Add SSL and HTTPS in WordPress

    It helped me to redirect the traffic with http to redirect to https. So now I can see the green https on the home page 😄

  13. I have setup a cron job to renew the SSL certificate every month.

This is all I have done to activate SSL on this site. If you get confused or need any clarification from me, feel free to comment below 🙂

Use Two Different Language in WordPress – One for Admin Another for Readers

Have you ever wondered how can you use two different languages in WordPress? Well I don’t know about others, but I personally don’t like the Bengali translation that much in dashboard. Coincidentally one of my Facebook friend asked me about using English in dashboard and Bengali in front!

I have never tried doing this, but my sharp little brain instantly got a witty hack idea! If you are a developer, and worked with the internationalization of WordPress, then you may know, we can set the language of WordPress from wp-admin → Settings → General. But that language works on both front and back.

I have set the language to English (United States) from settings. So both front end and back end is showing English.

The theme is responsible for the front end interface. So I have translated the theme into Bengali (Bangladesh) and put the file in `wp-content/languages/themes/`.

If you are wondering why I did not put the file on wp-content/themes/myTheme/languages/, because the translation file will be erased upon update.

What’s the hack?

The theme translation file contains the translation for Bengali (Bangladesh). So the file name should be `` but I have named the file ``. Because WordPress is set to load the English language. If I name the file for Bengali, it will not work.

Is this legal?

NO! This is completely offensive and might piss off some “Standards Nazis”. This is never a recommended way. I personally never recommend this kind of hipster configuration and alteration. But hackers never worked in conventional ways 😉

If you really feel witty today and thinking about using different languages, then you may test on your localhost.

You can’t curse me for using this trick on your live site. Go ahead, but on your own risk!

The shortest guide to start WordPress Development!

It’s been 13 years since WordPress made the first release and still, you can find people on public forums and Facebook groups asking about how to get started with WordPress theme or plugin development! This morning I was about to comment on a post in our own community group and it got quite big.

Read More

Change texts in WordPress without touching the code!


Last Updated: [last-modified]

Want to change a label or wording of a WordPress plugin or theme? Want to whitelabel the entire WordPress environment for your client? This tutorial is for you!

In this post, we will learn how to change any text within the WordPress environment without touching any code!

Read More

How to add external products to Easy Digital Downloads

Easy Digital Downloads does not have external product listing feature on their core. So if you want to do affiliate marketing or list your products which are being sold from another domain, you need to install a plugin.

A free plugin is available on to add this feature. Read More