SSL – Create your own self-signed certificate key pair

In this blog, we will be learning one or two things about the SSL (Secure Socket Layer).

You are here, so I assume that I don’t need to explain you about the differences about the HTTP and the HTTPS protocols in the web.

While HTTP is straight forward, the security level of the protocol is near to none.

The data sent through this protocol is not encrypted thus any person thats monitoring your web traffic may get hold of the data that you send through the web i.e. Credit Card numbers, Passwords, and other valuable and private informations (the man-in-the-middle-attack). This is where HTTPS comes in. The HTTPS inserts a security layer (TSL/SSL) during the interchange of the data between the server and the client.

(more…)

Read More

Creating Virtual Host in Linux

Every once in a while you try to develop a web application, you create a project under /var/www/html (or somewhere equivalent) and you access the project using localhost. This is old fashioned. Lets step up a bit. Best way to develop any web application is to simulate the actual web server the web application will be hosted into. Lets remove the localhost altogether and use the domain name in the local server instead of the trivial localhost.

(more…)

Read More

Git Logo

Using git with your Amazon EC2 instance server.

So you have a ec2 amazon server instance set up and you plan to set up git into the server.

When you use git to push and pull requests from the repository you are always required to enter your username and password for the repository. You probably would get Error: Permission denied (publickey). In case of your ec2 instance you dont have a username and password attached to your git repository so how do you push/pull the repo. The repo is not public after all.

(more…)

Read More

Ubuntu Solve “held broken package” error.

When you are installing any new package or upgrading any package through terminal in Ubuntu you may sometimes be presented with “you have held broken packages” error, and thus preventing you from installing the package that you want.

Well this is because the package that you are trying to install already has been installed with any older or newer version or any other dependencies that you package depends on has the same issue. Either way we need the package installed. So what do we do.

(more…)

Read More

Providing remote access to MySQL server in Linux / Ubuntu

You have installed all the basic requirements for your web server like apache, php, mysql, phpmyadmin and git. Then you test out the server connection and hit the server’s IP address. A apache welcome page opens up. Hurray!!! Your apache web server is working perfectly. Then you try to establish a mysql database connection. Then Oh Snap! MySQL denied your service.

It means that your web server’s mysql still needs to have remote access configured.

(more…)

Read More

Enable Php to display errors on ubuntu.

If you have freshly install ubuntu 16.04 or any version of ubuntu, and then installed fresh apache and php into the system then lets be frank, the error reporting has been turned off by default.

Then the first thing that we do is start our terminal type in php –ini and search for the php.ini file which tells us to be /etc/php/7.0/cli/php.ini and edit the ini file to display_errors. Then we restart the apache server.

But wait! did that solve the issue.

(more…)

Read More