Install Darkstat 2.6 on Ubuntu

Darkstat captures network traffic, calculates statistics about network usage, and serves reports over HTTP. Darkstat track server PORTs based on local & remove server. Install Darkstat 2.6 on Ubuntu https://t.co/IrF1g2LNfQ #tcpdump #ubuntu #darkstat pic.twitter.com/RCSWO2Mgnh — Sandeep Verma (@svnlabs) January 8, 2019 Features – Traffic graphs, reports per host, shows ports for each local & remote … Read more

Install Squid Proxy on Ubuntu

>> 1. Squid stores web files from previous requests to speed up future transfers. >> 2. ACLs (Access Control Lists) for user resources. >> 3. Bypassing website / domain filters. First Install Dependencies # apt-get install build-essential [for configure: error: Basic auth helper LDAP … found but cannot be built] # apt-get build-dep squid3 Download … Read more

Install SSH2 Extension for PHP 7 on CentOS 7

Install gcc, php71w-devel, libssh2 and libssh2-devel on CentOS 7 # yum install gcc php71w-devel libssh2 libssh2-devel Download php7 pecl-networking-ssh2 # wget https://github.com/Sean-Der/pecl-networking-ssh2/archive/php7.zip Unzip and Change folder # unzip php7.zip # cd pecl-networking-ssh2-php7 Building environment for SSH2 extension # phpize # ./configure Make SSH2 extension make sure build success # make Install SSH2 extension # make … Read more

Free SSL Certbot

Certbot, It was Let’s Encrypt Client previously. Automatically enable HTTPS on your website with EFF’s Certbot, deploying Let’s Encrypt certificates. Server Support – Apache – Nginx – Haproxy – Plesk OS Support – Web Hosting Service – Debian 7 (wheezy) – Debian 8 (jessie) – Debian 9 (stretch) – Debian testing/unstable – Debian (other) – … Read more

PHP Warning: PHP Startup: Unable to load dynamic library /usr/lib64/php/ modules/zip.so

CentOS 7 with PHP # php –ini PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/zip.so’ – /usr/lib64/php/modules/zip.so: undefined symbol: php_pcre_exec in Unknown on line 0 Configuration File (php.ini) Path: /etc Loaded Configuration File: /etc/php.ini Scan for additional .ini files in: /etc/php.d Additional .ini files parsed: /etc/php.d/10-opcache.ini, /etc/php.d/20-bcmath.ini, /etc/php.d/20-bz2.ini, /etc/php.d/20-calendar.ini, . . . Install … Read more

Install Apache, MySQL, PHP 5.6 on Centos 7

Install Apache # yum update # yum install httpd # systemctl start httpd.service Now Browser your Apache Server http://Server_IP_address/ Enable Apache to start at server boot # systemctl enable httpd.service Install Mariadb MySQL # yum install mariadb-server mariadb # systemctl start mariadb # mysql_secure_installation Enable MySQL to start at server boot # systemctl enable mariadb.service … Read more

CentOS 7 + SELinux + Apache + PHP write/access permission

CentOS 7 have SELinux, it is security enhancement to Linux which allows users more control over access control. SELinux make problem to access or write files or directories – Can’t serve files on directory – Can’t write to file SELinux is blocking the read/write operations # chcon -Rv –type=httpd_sys_rw_content_t /var/www/html/ (if you want to allow … Read more

Amazon DynamoDB Formatted JSON using JQ

Linux sed is useful tool to format and transform plain text. But sed is not so useful for structured data like JSON. JQ is a sed-like tool easily deal with JSON. ./jq is a lightweight and flexible command-line JSON processor. Install jq on OS X: brew install jq Install jq on Ubuntu: apt-get install jq … Read more

Bottle: Python Web Framework

I really like Bottle: Python Web Framework. Bottle is very simple, fast and powerful Python micro-framework. It is perfect for small web applications and rapid prototyping where you need simple/small API server. Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. Installation Install Bottle with pip install bottle or download the source … Read more