Skip to Content

Monthly Archives: September 2012

gcc: /usr/lib64/mysql/ No such file or directory

Written on September 23, 2012 at 11:19 PM, by

In the end of make process, after successful compilation of php 5.3.8 in apache 2.2, if you receive the following errror:   —————————— gcc: /usr/lib64/mysql/ No such file or directory make: *** [] Error 1 —————————— Then, follow the below two steps to fix it: – mkdir -p /usr/lib64/mysql – ln -s /usr/lib64/ /usr/lib64/mysql/ After […]

Exclude accounts or files from cpbackup

Written on September 23, 2012 at 8:29 PM, by

There are two files in cpanel that will help to exclude files or accounts from cpbackups. To exclude a user in the server from cpanel backup, add the user to the file: /etc/cpbackup-userskip.conf   To exclude a file from backup, add that file to exclude path to the cpanel file: /etc/cpbackup-exclude.conf   * Restart cpanel […]

use tcpdump command to check conenctions to port 80

Written on September 18, 2012 at 10:55 AM, by

use the following command to get the connections: tcpdump -nn ‘tcp[13] == 2’ and port 80 -c 100 -i any    

way to use smartctl command to check disk erros

Written on September 18, 2012 at 10:52 AM, by

Samrtctl is a useful tool in linux that is used to check the raid health. First find out the raid info in the i am explaining when the raid is threeware.: ———————————————————— /usr/local/ysa/bin/tw_cli info c0 Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy —————————————————————————— u0    RAID-1    OK             –       –       –       465.651   ON     OFF […]

way to change disk quota for a user using script

Written on September 17, 2012 at 8:23 AM, by

To change the disk quota of a user ‘test’ to 150 M in a capnel server, perform the following:   /scripts/editquota test  150M