Author Archives: Kaven Gagnon

avatar

About Kaven Gagnon

System & Network Architect

Linux : How to benchmark disk I/O

A few utilities are available to test the disk I/O performance. The easy way to do it without installing anything on the system would be running this simple command : time dd if=/dev/zero of=/tmp/test-hd bs=1M count=1000 Another, more complete tool I recommend is “SysBench”. http://sysbench.sourceforge.net/docs/

Linux : How to reset MySQL root password

Lost your root password for MySQL? Follow this simple procedure to reset it. Of course, you need at least root access level on your operating system to proceed. 1. Stop MySQL database server : /etc/init.d/mysql stop 2. Start MySQL with “skip grant table” option : mysqld_safe –skip-grant-tables  & WARNING! This is VERY insecure – while… Read More »

Linux : How to add IP range on RHEL/CentOS

If you have a full subnet to add on RHEL/CentOS Linux system, there is a short way to achieve this instead of manually create single alias interfaces. 1. Create a script at this location : vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0 (ajust values as needed, according to the interface you would would have the IP subnet binded to an… Read More »

Linux : How to add JSON support to CentOS 5 PHP 5.1.6

JSON support come natively with PHP 5.2 and later. If you are running CentOS Linux 5, this is PHP version 5.1.6 that is included by default. Fortunately, since version 5.6, CentOS packaged version 5.3.3 of PHP that can be installed through YUM (not included in the ISO set). If you still run applications that can’t… Read More »