Welcome to Knowledge Basement

IT Articles and Information

How to Install and Configure SuPHP

Notice: This article was written when  SuPHP was the most popular choice for running multiple PHP sites on the same Apache server. Now, php-fpm with different users is a better choice. But still, if you need this article, here it is… In short, SuPHP runs the PHP web scripts as a  predefined system user, respecting… read more »

How To Secure Your MongoDB Database Server on Ubuntu 14.04

The MongoDB database server is well-known for its unmatched capabilities for processing large NoSQL data. Its latest performance improvements are always under the spotlights and probably not a single MongoDB user has missed the recent news about the change of its default storage engine to the more powerful WiredTiger. At the same time, its security… read more »

How To Configure SSL In Tomcat

To secure the communication and increase the level of privacy to and from your Tomcat servlet container you should use SSL. Usually there’s an Apache or Nginx in front of Tomcat to serve external clients’ request and this web front server is also supposed to provide SSL connectivity. However, this is not always the case… read more »

How To Create SSH Tunnel With Putty

SSH tunneling is very useful when the network access to a remote network is restricted. Thus, to gain remote network access you can use a tunnel to a remote host which would act as an intermediary. Here’s an example. Imagine, there’s a remote host which runs a Tomcat app servlet on TCP port 8080. The… read more »

Introduction to Anonymity, Data Protection and Privacy

Almost every piece of information contains sensitive and private data. Exposing publicly such data could lead to serious financial losses, legal issues and personal inconveniences. That’s why data protection and privacy are essential tasks in any data processing project. When data cannot (public records) or should not (useful information for scientific research) remain private, anonymity… read more »

How to Install Azure Python Package

You can install Azure Python package either for Python 2 or Python 3 using pip (Python package index). Before you are able to install it though you have to: First, make sure pip is installed, of course. It’s available on most Linux distributions such as python-pip (for Python 2) or python3-pip (for Python 3). Second,… read more »

How to Change JVM Xms and Xmx for Tomcat on Windows

Changing Tomcat’s initial (Xms) and maximum (Xmx) memory turns out to be counter-intuitive on Windows, especially when Tomcat is installed as a service. That’s because when running under a service on Windows, Tomcat does not read initial runtime configure files such as setenv.bat (or setenv.sh for Linux) and thus you cannot define variables there. So… read more »

How to Create Sudo User on CentOS

Working with root (admin privileged user) in CentOS is not a good idea because you can easily make a costly mistake. Instead, it’s much better to grant the special sudo privileges which allow a regular user to run super user commands by just preceding the commands with sudo in front. Example of a sudo command:… read more »

Docker Error response from daemon: Get https://… remote error: access denied

This is an error which you may get when you don’t have an internet connection and you try to use a Docker functionality which needs internet access. For example: docker search ubuntu With no Internet connection you will get: Error response from daemon: Get https://index.docker.io/v1/search?q=ubuntu&n=25: remote error: access denied This error will appear also if… read more »

How To Launch a MEAN Site on Ubuntu 16.04 Server

Introduction Getting a site running on a MEAN (MongoDB, Node.js, Express, and AngularJS) server can be a challenge for beginners. In this article we’ll guide you through all the steps necessary for setting your MEAN site properly. This article is written for the latest Ubuntu 16.04 but the steps are similar for other Linux distributions… read more »