Linux commands for WEB developers

Copy a folder

What port is used?

Find and delete files greater than a given size

Find out directories using disk space Find a file

Sorting ls command output by file size

to reverse order use -r option. Archive directory

Copy files from remote to local with Rsync

Read More

How to change PHP version in shell

If you have multiple versions of PHP and you want to change PHP version in shell then run the following command:

This will give you a list of all PHP versions installed:

Find version that you need (i.e. /usr/bin/php71). Then open .bashrc (or .bash_profile) and add the following line to the end of…

Read More

Installing Nginx + PHP-FPM + MySQL on OS X

Setting up working environment is the first step you need to do. This will be your local web server for programming in OS X with PHP, Nginx and MySQL (also known as LEMP). Let’s make it as ease as possible ๐Ÿ˜‰   What we will do Install xcode (for license) and brew package manager (as…

Read More

How to install free SSL certificate on Nginx with StartSSL

First, we need issue SSL certificate. Startssl.com is a great way to install free signed SSL certifacate. So, letโ€™s signed up on Startssl.com with browser authenticate. Then, go to control panel (https://startssl.com/ControlPanel) and click on Validations Wizard tab. Select Domain Validation option. Next, enter your domain name: You will be asked to verify your domain…

Read More