Author Archives: itdoctor - Page 31
sudoers – how to add users to a group in ubuntu
1. If this is an existing users Syntax: usermod -a -G groupname username For example: usermod -a -G sudo myadminaccount -> this will make myadminaccount belong to sudo group...
How to check linux version ?
If you are new to linux and you asked what linux version you are running or is your linux is a 32bit or 64 bits. You can easily answer...
ipvsadm – load balancer – it changes the weight automatically
Do you have this problem ? – you made the changes in / , – restart ipvsadm : / restart you see the changes : ipvsadm -L But after...
Can not access to gmail via IMAP ?
If you cant not login to gmail via your outlook , and you got a message asking you to visit #038;answer=78754 This means your account maybe blocked, you can...
Mysql server – How to disable replication on slave ?
Sometimes, you want to remove the replication , it could be because the replication no longer works, or you don’t want to replicate. Here are some commands that you...
How to show Progress Bar While Copying Files while using rsync
You need to use the –progress option which show progress during file transfer. The syntax is as follows: rsync –progress -avz -e ssh /home/mydir
Setup multiple instances of mysql on Ubuntu linux
There are various method to setup multiple of mysql instances on a single linux ubuntu server. In this scope of this page, i will show you the most simple...
How to create a large file on linux for testing?
If you need to create a file with a specific filesize on linux for testing , you can run this command $ truncate -s filesize filename for ex: truncate...
PHP Fatal error: Class ‘DOMDocument’ not found
this is because you rodn’t have php-xml on your server, you can install it by running : yum install php-xml or apt-get install php-xml retart your apache
Dumping MySQL Stored Procedures, Functions and Triggers
When you run mysqldump , by default it will not export your procedures or function , if you want to include these info , you need to add –routines...