|
||||||||||
|
|
/sbin/hotplug: no runnable /etc/hotplug/aaaa.agent is installed in /var/log/messagesFebruary 21, 2010 on 11:32 am | In Centos, Linux, Ubuntu | No CommentsHi guys, You might have been facing the error getting logged in /var/log/messages. Deeper research in Google gave the result that it is the issue with the loaded Kernel. Before going for and upgrade, just confirm the following. Check whether the following files are present.
Now try the following before kernel upgrade. The issue should have been fixed by now. If the message is still coming up in /var/log/messages, you will need to go for Kernel upgrade. Thank you guys.. How to change Mysql database directory to another partition in cPanel. /var patition fullJanuary 7, 2010 on 1:09 pm | In Centos, Cpanel, Linux, Mysql | No CommentsHi guys, you might have faced the issue of /var partition gettting full regularly due to database directory. If you have a larger partition with free space, then it is possible to move the database directory to the larger partition. Here are the steps Switch off the database server while we are moving the databases.
I am considering that I have enough space in /home partition. Here goes my new database data directory as /home/mysql Now it is better to copy the database first, rather than move.
We are copying the database to the new location since it is better to revert back the settings with minimum downtime, if anything goes wrong. move to /tmp
Take a backup of /etc/my.cnf Now edit /etc/my.cnf
If the socket file is specified, comment it out. Now move to /var/lib/mysql and create a symblink
(Please note that you don’t specify the socket file location in my.cnf since it causes issues with phpMyadmin) For, cPanel server, edit the phpMyadmin configuration
add the following lines. If they already exist, edit as below.
Now start the database server.
If it starts fine, you are done. Check the database connections of your site. Suggestions, questions are welcome. Starting sshd:PRNG is not seededMarch 23, 2009 on 4:51 am | In Centos, Linux | 2 CommentsYou might have received this error when restarting SSHD. #/etc/rc.d/init.d/sshd restart Stopping sshd: [ OK ] Starting sshd:PRNG is not seeded [FAILED] Here is the fix. cd /dev/ ./MAKEDEV generic Now try starting SSH. :) Error : tty device not owned by group ‘tty’March 20, 2009 on 2:07 am | In Centos, Cpanel, Linux | No CommentsYou might receive this error when your try to restart services in CPanel. This is because the group of the tty devices are not “tty” Change it to tty. chgrp tty /dev/ttyp* /dev/ptyp* /dev/vcs* /dev/ptmx /dev/pts/0 as simple as that.:) /usr/java/jdkX.X.X_Xbin/java: not found + Install Java on Linux serversOctober 19, 2008 on 8:20 pm | In Apache, Centos, Cpanel, Installation, Linux | No CommentsIn some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK So we present here the installation of Java in Linux server. Its as easy as you run upcp in a Cpanel server. Download the installation binary from Sun’s Java site J2SE for Linux http://java.sun.com/j2se/1.4.2/download.html.( Download J2SE SDK) You may need to register at the site and then they will send you the download link. Download the non-rpm binary cd /usr/local/src/ wget thebinary mv j2sdk-1_4_2_18-linux-i586.bin /usr/local/ cd /usr/local/ chmod 755 j2sdk-1_4_2_18-linux-i586.bin ./j2sdk-1_4_2_18-linux-i586.bin Now setup the environment variables. JAVA_HOME=/usr/local/j2sdk1.4.2_18 export JAVA_HOME Also, you need to add these in the file /etc/profile. JAVA_HOME=/usr/local/j2sdk1.4.2_18 export JAVA_HOME How to install BFDOctober 11, 2008 on 9:36 am | In APF, Centos, Linux | No CommentsWhat is BFD (Brute Force Detection)?
This guide will show you how to install and configure BFD to protect your system from brute force hack attempts. Requirements:
1. cd /usr/local/src/. Article provided by WebHostGear.com
<a href=’http://a.wavepointmedia.net/adclick.php?n=a263378f’ target=’_blank’><img src=’http://a.wavepointmedia.net/adview.php?what=zone:14&n=a263378f’ border=’0′ alt=”></a>
2. wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz 3. tar -xvzf bfd-current.tar.gz 4. cd bfd-* 5. Run the install file: ./install.sh .: BFD installed 6. Edit the configuration file: vi /usr/local/bfd/conf.bfd 7. Enable brute force hack attempt alerts: Find: EMAIL_USR=”root” CHANGE TO: EMAIL_USR=”your@yourdomain.com” Save the changes 8. Prevent locking yourself out! 9. Run the program! 10. Customize your applicatoins brute force configuration Here you’ll find all kinds of pre-made rules for popular services such as Apache, and ProFTPD w00t! top: error while loading shared libraries: libncurses.so.4: cannot open shared object file: Error 40May 14, 2008 on 3:44 am | In Centos, Linux | 1 CommentThis error is received when top command is executed. top Fix. locate libncurses.so.5 lib/libncurses.so.5 create symblinks the location may be different. Just create symblink from libncurses.so.4 to libncurses.so.5 load the configuration yum.conf for Centos 4.6April 24, 2008 on 9:11 am | In Centos, Linux | No CommentsHere is the yum.conf entry for Centos 4.6. Copy all the lines below. ############################ [main] # PUT YOUR REPOS HERE OR IN separate files named file.repo ############################ Here is the repo for Centos 4.4. CentOS-Base.repo # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #released updates [update] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 |
![]() Powered and designed by Presoon.com. |