LinuxHelps.com

A blog for Linux Lovers.

14
Jun 2009

MySQLTuner is a high-performance MySQL tuning script written in perl that will provide you with a snapshot of a MySQL server health. Based on the statistics gathered, specific recommendations will be provided that will increase a MySQL servers efficiency and performance. The script gives you automated MySQL tuning that is on the level of [...]

11
Jun 2009
Posted in Apache by sibu at 6:12 am | 2 Comments »

SSL Certificates:
Normally data is sent unencrypted over Internet, which means anybody with certain tools can hack all your data. To pervent this from happening SSL (Secure Socket Layer) is used to encrypt the data stream between the Web Server and the Web Client.
Types:

* Self Signed Certificate
* Certificate issued by a trusted Certificate Authority(CA)
Why [...]

24
May 2009

Change Time Zone
1. Logged in as root, check which timezone your machine is currently using by executing `date`. You’ll see something like Mon 17 Jan 2005 12:15:08 PM PST, PST in this case is the current timezone.
2.Change to the directory /usr/share/zoneinfo here you will find a list of time zone regions. Choose the most appropriate [...]

You can disable Apache SELinux protection easily. Please keep in mind that by disabling SELinux for apache you are inviting more security related problems.
Disable Apache SELinux Protection
Open /etc/selinux/targeted/booleans file using a text editor:
# vi /etc/selinux/targeted/booleans
Append or modify value for httpd_disable_trans as follows:
httpd_disable_trans=1
Save and close the file.
Type the following two commands:
# setsebool httpd_disable_trans 1
# /etc/init.d/httpd [...]

24
May 2009
Posted in Miscellaneous by sibu at 6:49 pm | No Comments »

You can flush your DNS cache as per following.
1) For Windows
Start -> Run -> type cmd
- in command prompt, type ipconfig /flushdns
- Done! You Window DNS cache has just been flush.

2) For Linux
- To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
- Once you run the command your linux DNS cache [...]

Fantastico requires certain files and directories to have the following permissions:
NOTE: Depending on your server setup, the files may be in slightly different locations.
Files:
/bin/tar 0755
/bin/gzip 0755
/usr/bin/wget 0700
/bin/bash 0755
Directories (create if they do not exist):
/tmp 1777
/usr/local/cpanel/base/tmp 1777
/usr/local/cpanel/3rdparty/tmp 1777

24
May 2009
Posted in Linux Helps by sibu at 6:36 pm | No Comments »

YUM packages updater (Fedora, RedHat and like)
yum install package_name download and install a rpm package
yum localinstall package_name.rpm That will install an RPM, and try to resolve all the dependencies for you using your repositories.
yum update update all rpm packages installed on the system
yum update package_name upgrade a rpm package
yum remove package_name remove a rpm [...]

24
May 2009
Posted in Linux Helps by sibu at 6:34 pm | No Comments »

rpm -ivh package.rpm install a rpm package
rpm -ivh –nodeps package.rpm install a rpm package ignoring dependencies requests
rpm -U package.rpm upgrade a rpm package without changing configuration files
rpm -F package.rpm upgrade a rpm package only if it is already installed
rpm -e package_name.rpm remove a rpm package
rpm -qa show all rpm packages installed on the system
rpm [...]

24
May 2009
Posted in Linux Helps by sibu at 6:30 pm | No Comments »

findĀ  / -name file1 - search file and directory into root filesystem from ‘/’
find / -user user1 - search files and directories belonging to ‘user1′
find /home/user1 -name \*.bin - search files with ‘. bin’ extension within directory ‘/ home/user1′
find /usr/bin -type f -atime +100 - search binary files are not used in the last [...]

24
May 2009
Posted in Linux Helps by sibu at 6:25 pm | No Comments »

Users and Groups
groupadd group_name create a new group
groupdel group_name delete a group
groupmod -n new_group_name old_group_name rename a group
useradd -c “Name Surname ” -g admin -d /home/user1 -s /bin/bash user1 create a new user belongs “admin” group
useradd user1 create a new user
userdel -r user1 delete a user ( ‘-r’ eliminates home directory)
usermod -c “User FTP” -g [...]