Category Archives: Servers

Linux : How to register RedHat Enterprise Linux

RedHat can be used upon a paid subscription. You have to register your system using the following command in order to use the Yum repositories : subscription-manager register –username <username> –password <password> –auto-attach If by any chance you ran that command in the first place but you had no subscription available in your account, your… Read More »

Linux : error processing package nginx on Debian

Having this error trying to install Nginx on Debian Linux 8? dpkg: error processing package nginx (–configure): dependency problems – leaving unconfigured Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1) This is a known behaviour if you have Apache or another Web server installed and running. The problem… Read More »

Linux : How to tune up receive (TX) and transmit (RX) buffers on network interface

Modern and performance/server grade network interface have the capability of using transmit and receive buffer description ring into the main memory. They use direct memory access (DMA) to transfer packets from the main memory to carry packets independently from the CPU. The usual default buffering values for regular desktop NICs are 256 or 512 bytes. High… Read More »

Linux : Essentials MySQL Admin CLI commands

Here is a quick list of useful commands for any MySQL database administrator. Show the server full status : mysqladmin -u root -p extended-status You may also sort specific information with “grep” as followed : mysqladmin -u root -p extended-status | grep Threads Show the current running process and queries (remove “-i 1” to display… Read More »

VMware : How to enable and set SNMP community on ESXi

VMware ESXi hypervisor have some great SNMP capability, whatever to gather information status of your hardware, monitoring or statistic usage of your resources. Follow these easy steps to enable such feature. 1. Enable SSH from the vSphere client and connect to it using your favorite terminal application : Configuration tab > Security Profile > Services >… Read More »

Web : How to get Web site server information

Using cURL, you can easily grab some information about the server who’s running a Web site. To get all the possible information, simply use (replace domain.tld with the actual domain name) : curl -s -I domain.tld You can also can just output the server info like this : # curl -s -I microsoft.com|grep Server Server:… Read More »

Linux : Nginx error SSL_do_handshake() failed while SSL handshaking to upstream

Using Nginx as Apache reverse proxy and receiving “502 Bad Gateway” error and, additionally have something like this in your error log file? [error] SSL_do_handshake() failed (SSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol) while SSL handshaking to upstream, client: 0.0.0.0, server: www.domain.tld, request: “GET / HTTP/1.1”, upstream: “https://127.0.0.1:4343/”, host: “www.domain.tld” Since you are using SSL, you obviously need… Read More »

Linux : Nginx error 413 Request Entity Too Large

Having this error while uploading large files with Nginx? 413 Request Entity Too Large or ; [error] client intended to send too large body 1. Edit the main Nginx configuration file : /etc/nginx/nginx.conf 2. Append the following and set the value to meet your needs (this example assume that the max upload file size is… Read More »