Free SSL certificate for your shared hosting server

Recently I have got a free SSL certificate and install on my shared hosting server so today I am going to show you how to get your free SSL certificate and install on your shared hosting server so let follow these steps.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Step 1:

Get your free SSL certificate from SSL For Free and enter your domain name.

free ssl certificate

Step 2:

Now select “Manual Verification (Upload verification files manually to your domain to verify ownership)” and click on the Manual verification button.

free ssl certificate

Step 3:

Download file #1 & #2 in your system and log in to your cPanel.

  1. Create a folder in your domain named “.well-known” if it does not already exist.
  2. Create another folder in your domain under “.well-known” named “acme-challenge” if it does not already exist
  3. Upload the downloaded files to the “acme-challenge” folder.
  4. Verify successful upload by visiting the following links in your browser.
  5. If the files do not show random alphanumeric characters or show an error then recheck that you are uploading in the correct place. Also, try viewing the page source (Right-click then click “view page source”) of the above links to make sure nothing else shows up but the verification file contents. If you use IIS then you may have to change your server config so that files without an extension (or the wildcard MIME type) serve as text/plain. Contact your host if you are unsure.
  6. Click Download SSL Certificate below.

free ssl certificate

Step 4:

After clicking on the Download SSL Certificate button you will get Certificate, Private Key & CA Bundle so saved these details.

free ssl certificate

Step 5:

Now go to SSL/TLS option in your cPanel and click on Manage SSL sites.

Step 6:

Select your Domain from drop-down option & fill up Certificate, Private Key & Certificate Authority Bundle. Now click on the Install Certificate button to install SSL on your selected Domain.

Congratulation you have successfully installed an SSL certificate for your domain. Now access your site with https.

Keep visiting for new stuff and give your feedback.

Happy Coding 😉

WordPress Permalinks Not Working on Ubuntu 14.04

Today I have installed Ubuntu 14.04 for web development and installed fresh WordPress but after clicking on any pages, it takes me to the apache 404 page so how to fix this issue?

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

First, open your terminal and follow these steps:

Step 1:

Activate the mod_rewrite module

sudo a2enmod rewrite

Step 2:

Restart the apache server

sudo service apache2 restart

Step 3:

To use mod_rewrite from within .htaccess files (which is a very common use case), edit the default VirtualHost with

sudo nano /etc/apache2/sites-available/000-default.conf

Step 4:

Search for DocumentRoot /var/www/html” and add the following lines directly below:

<Directory "/var/www/html">
    AllowOverride All
</Directory>

Save and exit the nano editor via CTRL-X, “y” and ENTER.

Step 5:

Restart the server again:

sudo service apache2 restart

Step 6:

Check if mod_rewrite is installed correctly, check your phpinfo() output. It should have this in it:

mod-rewrite-apache

Keep visiting for new stuff and give your feedback.

Happy Coding 😉

How to change pre-installed PHP version to MAMP in Mac/OSX

If you are using Mac OSX for the first time and switched from the windows environment and want to develop some cool web-based application then you need to install MAMP which is absolutely free. After installing MAMP on your local environment you need to add the MAMP version of PHP to the PATH variable.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Instructions to Change PHP Installation:

First, Let’s find out what version of PHP we’re running (To find out if it’s the default version). To do that, within the terminal, run this command:

which php

This should output the path to the default PHP install which comes pre-installed by Mac OSX, by default it has to be (Assuming you’ve not changed it before):

/usr/bin/php

Now, we just need to swap this over to the PHP that is installed with MAMP, which is located at

/Applications/MAMP/bin/php/php7.1.6/bin

To do this, we need to edit the .bash_profile and add the MAMP version of PHP to the PATH variable.

Within the Terminal, run

vim ~/.bash_profile

Type i and then paste the following at the top of the file:

export PATH=/Applications/MAMP/bin/php/php7.1.6/bin:$PATH

Hit esc, Type :wq, and hit enter.

In Terminal, run

source ~/.bash_profile

Now type in which php again and look for the updated string. If everything was successful, It should output the new path to the MAMP PHP install.

Happy Coding 😉