What is a Swap Partition ? A linux swap partition becomes useful when your server’s RAM gets full. When your RAM gets full, then your swap partition will act as a RAM for your other applications. But does not this mean this is a great alternative to having a large RAM, because a swap partition […]
What is a Swap Partition ? A linux swap partition is like an overflow for your system’s RAM. If your RAM gets full, then your swap partition will run the other applications. So does this mean this is a great alternative to having a large RAM ? No ! because a swap partition on a […]
What is Varnish Varnish is a caching HTTP reverse proxy / web application accelerator. It is installed infront of Apache or Nginx on a server and it can increase the speeds by upto 300-1000 times, depending on the server architecture and configuration. Prerequisites You need have a user with root / sudo privileges for a […]
If you require to save the results of your MYSQL query to a CSV or Excel sheet, you can do so with the help of ‘INTO OUTFILE‘. This saves the query result as a ‘CSV’. You can open this CSV file in Excel and save it as a .XLS file as well. The syntax of […]
To locate files or folders on your Linux server through command line or bash, you can use the ‘find‘ command. The syntax for the find command is as follows : find {dirctory_to_search} {search_by} {pattern_to_search} [action] For Example, if you wish to search a file called ‘filename.php’ by name on the entire server. fine / -name […]
Before upgrading it is always recommended that you create a backup first. Step 1 : Check the current version of Ubuntu uname -mrs lsb_release -a This should return an output in the following format : Linux 3.2.0-51-generic x86_64 No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise Step […]
GeoIP is a PHP extension, which is used to get all the information like, city, state, country, longitude / latitude etc for any IP address. You can use this extension to track the visitors to your site. It can help you prepare better analytic for your user-base with the information collected. To install GeoIP, we […]
If you have a custom WordPress login form or you do not want anyone to access the default login form, due to security reasons or any other reason, you can set a redirect for the wp-login.php page. You could set a redirect simply in the .htaccess or the site’s Nginx config file, but this will […]
If you have a domain, ‘example.com’ and you want it to be available both when a user enters, ‘http://example.com’ and ‘http://www.example.com’, and you are running Nginx on your server, you can do so by updating the Nginx conf file for that Site. This file can usually be found in /etc/nginx/sites-available/ folder. Open the file and […]
To find out the processes running on your server : ps aux This will show you the ‘PID’ of the process along with it’s other information. You can delete a process by using the ‘kill’ command with the process PID kill 16516 Sometimes you run into errors that require emergent steps like killing of certain […]