Magento Performance Optimized Server

Published on Author gryzliLeave a comment

I’ve read some articles on magento performance tuning and server optimization for best result. Here I will try to summarize most of the important stuff I’ve read.   Server Software Magento best practices advice on using the following configuration: Nginx + MySQL + php-fpm (FastCGI) + APC / OpCache + (Varnish) It’s better to use… Continue reading Magento Performance Optimized Server

Web pages performance testing

Published on Author gryzliLeave a comment

Very often I need to test some page speed and using bunch of websites, which produce very detailed information.   Here are some of them:   http://www.webpagetest.org/ This is the first one I’ve been using for a long time. Here are some of the features it supports: Select location from which the tests are going… Continue reading Web pages performance testing

Centos 6 – BIND [chroot] fresh install

Published on Author gryzliLeave a comment

Here I will describe some basic steps for doing fresh install of chrooted bind version under Centos 6.     Install the rpm packages

  Move the necessary directories

This part is very important, cause if you don’t do this, bind won’t start. Also if /var/named/chroot/var/named/dynamic directory is missing you will most likely… Continue reading Centos 6 – BIND [chroot] fresh install

VIM tiny things

Published on Author gryzliLeave a comment

Plugins and Plugin installation perl-support-plugin Make Vim as Your Perl IDE Using perl-support.vim Plugin http://www.thegeekstuff.com/tag/vi-vim-tips-and-tricks/ This is very nice plugin, which gives you some handy shortcuts if you use frequently vim for perl editing . The installation is pretty simple:     syntastic This is very nice plugin for syntax checking of different languages. Here… Continue reading VIM tiny things

Strace buggy php script running as cgi – Strace daemon

Published on Author gryzliLeave a comment

Very often I need to strace a script which is not “constantly” running, and must be “catch” during it’s execution. Today I had to debug some bad behaving php script, but because php was running as CGI (mod_suphp) it was hard a task. I had 3 choices in order to successfully attach the strace to the php… Continue reading Strace buggy php script running as cgi – Strace daemon

Change user password through BASH script

Published on Author gryzliLeave a comment

Very often I need to automate some bulk user password change. In the following examples we have: $user as username $pass as password in plain text Currently these are the methods I use to change user passwords: chpasswd method

The old passwd method

  Also I use the following to GENERATE RANDOM passwords:… Continue reading Change user password through BASH script

Nmap – Port scanning

Published on Author gryzli

Here I will post some basic examples: 1. Scan all hosts in a given network for specific open port – This will scan network 192.168.0.1 /24 for open port 10000 (which belongs to WebMin)

2. Scan all ports on given host

 

Mikrotik – Configuring OpenVPN Server + Linux client

Published on Author gryzliLeave a comment

The first thing we must assure is the following: – We have working configuration on our Mikrotik router (internet access + local network) – We have generated SSL certfificate/key pair for the OpenVPN server   Import SSL Certificates + Root CA on the router We can use FTP to upload the following files: – cacert.pem… Continue reading Mikrotik – Configuring OpenVPN Server + Linux client

Creating Root SSL Authority with OpenSSL

Published on Author gryzli

1. Create directory structure

  2. Create some default openssl.cnf file

  3. Create Key and CSR (Certificate Sign Request) 3.1 Create the CSR & Key

  3.2 Sign the CSR and issue the certificate

  References: How to setup a Certificate Authority Create Root Certificate Creating and using SSL certificates… Continue reading Creating Root SSL Authority with OpenSSL