fbpx

Ubuntu

Root access is disabled

Securing and Optimizing Linux Some SSH servers can disable SSH logins for certain users and may even disable root logins by default. If you're using Open SSH server, you have to edit /etc/ssh/sshd_config and make sure that it doesn't contain one of the following lines: PermitRootLogin no PermitRootLogin without-password Both result in a simple...

Read more...

Install nginx server and configure a website

In this toturial you will learn how to install and configure nginx server and run a website on virtual host. According to the nginx website, virtual hosts are called Server Blocks on the nginx. Install nginx on the ubuntu server sudo apt-get install nginx Start nginx server sudo service nginx start Install php-fpm which...

Read more...

MySql backup & restore commands

This article has some handy commands to backup and restore mysql databases. Some of the terms used below refer to USERNAME = your username MYSQL_PASSWORD = your password DATABASE_1 = name of the database LOCAL_DOMAIN.COM = local domain name DESTINATION_DOMAIN.COM = remote domain name Take MySql dump, gzip it and take it in a directory. mysqldump...

Read more...

MySql monitoring & optimzing commands

Some of the terms used in the article below refer to USERNAME = your username MYSQL_PASSWORD = your password DATABASE_1 = name of the database LOCAL_DOMAIN.COM = local domain name DESTINATION_DOMAIN.COM = remote domain name Restart MySql Server sudo service mysql restart Check database size mysql> SELECT CONCAT(sum(ROUND(((DATA_LENGTH + INDEX_LENGTH - DATA_FREE) / 1024 / 1024),2))," MB") AS...

Read more...

Server Monitoring Commands

Disk Stats Disk Usage detials df -h LSOF means list of open files. This command watches total open files on server. A very good article for further reading http://www.catonmat.net/blog/unix-utilities-lsof/ watch --interval=1 --differences "lsof | wc -l" Disk IO Stats iotop sar disk io stats sar -s 15:00:00 -e 17:00:00 shows the disk I/O stats watch --interval=1 iostat http://www.tecmint.com/how-to-check-disk-space-in-linux/ General Monitoring Find Out...

Read more...

How To Create a SSL Certificate on Apache for Ubuntu 14.04

TLS, or transport layer security, and its predecessor SSL, secure sockets layer, are secure protocols created in order to place normal traffic in a protected, encrypted wrapper. In this guide, i will cover how to create a self-signed SSL certificate for Apache on an Ubuntu 14.04 server, which will allow...

Read more...

How to install and configure SVN on Ubuntu

Subversion – another name we known as SVN, is an open source version control system. SVN is a really easy to use Revision control/version control/source control and store changes of your project files such as coding and documentation. In this tutorial we will discuss how to install subversion on Ubuntu...

Read more...

Install and configure Memcache

Memcache is a system that works to speed up virtual private servers by caching server information. The program allows you to allocate a specific amount of the server ram toward caching recently queried data for a certain amount of time. Once the data is requested again, memcache speeds up...

Read more...

Install IonCube Encoder

This is the guide to install ioncube on ubuntu server. Create a temp directory or moving into one already created cd /tmp/ Get 32 bit ioncube to download. You can decide which type of OS is installed on your server. wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz You can get 64 bit ioncube to download. wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz Now unzip the download...

Read more...