Home /Archive by Category "Linux"

Mysql server stops very frequently

This is steps for solution of dump database. Seems that our droplets does’nt have enogh memory some times and mysql cant allocate what it needs and crash, so we need to create a swap space to help this. Uset the following steps [CHC_CODE]dd if=/dev/zero of=/swap.dat bs=1024 count=512k[/CHC_CODE] [CHC_CODE]mkswap /swap.dat[/CHC_CODE] [CHC_CODE]swapon /swap.dat[/CHC_CODE] Change the permission of … Continue reading

How to Upgrade PHP 5.3 to PHP 5.6 on Centos

It’s easy to upgrade the php version with some short command on centos. Step 1. Check the Current Version [CHC_CODE]php -v[/CHC_CODE] You get the following output PHP 5.3.3 (cli) (built: Jul 9 2015 17:39:00) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies Step 2. Install the Remi and RPM … Continue reading

How to Install ImageMagick on Ubuntu

ImageMagick is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats like GIF, JPEG, PNG, Postscript, and TIFF. We can also use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw … Continue reading

Restart, Start, Stop MySQL from the Command Line Terminal, OSX, Linux

To restart, start or stop MySQL server from the command line, type the following at the shell prompt… On Linux start/stop/restart from the command line: [CHC_CODE] /etc/init.d/mysqld start[/CHC_CODE] [CHC_CODE]/etc/init.d/mysqld stop[/CHC_CODE] [CHC_CODE]/etc/init.d/mysqld restart[/CHC_CODE] Some Linux flavours offer the service command too [CHC_CODE]service mysqld start[/CHC_CODE] [CHC_CODE] service mysqld stop[/CHC_CODE] [CHC_CODE]service mysqld restart[/CHC_CODE] or [CHC_CODE]service mysql start[/CHC_CODE] [CHC_CODE]service … Continue reading

3 Ways to Create Wifi Hotspot in Ubuntu 14.04 (Android Support)

After this tutorial, I’ve found 3 ways to create wifi hotspot in ap mode: Using Ap-hotspot, an open-source app from github: see this post. Using KDE connection editor, see the post. Using Unity’s Default Network Manager with a little hack. See below Below I will show you how to use Unity’s default network manager to … Continue reading

CentOS Version Check

The easiest way to check your CentOS version is via the command line. Login to your CentOS server using SSH and run the following command: [CHC_CODE]at /etc/centos-release[/CHC_CODE] You may also use: [CHC_CODE]cat /etc/redhat-release[/CHC_CODE] This should return the following CentOS version information: [CHC_CODE]CentOS release 6.2 (Final)[/CHC_CODE] entOS version history follows that of Red Hat but it … Continue reading