|
||||||||||
|
|
How to install CSF Firewall on virtuozzo – Cannot enter into server after CSF installation VPSMarch 14, 2010 on 4:33 am | In Cpanel, Installation, Linux | No CommentsCSF is a powerful Firewall for Linux and cPanel servers are here are the steps to get it working with Virtuozzo VPS Installation
After the installation you will need to customize CSF to run on VPS: edit /etc/sysconfig/iptables and add
create file /etc/csf/csfpre.sh and enter all the extra rules directly into it prefixed with “iptables” so the contents of that file should look something like:
edit /etc/csf/csf.conf file and add
Restart
LOCKOUT ISSUES FOR CSF WHEN INSTALLED IN VPS. or Cannot enter into server after CSF installation on VPS If the required IP table modules are not properly loaded to the container node, you may lockout yourself after the installation. If you have access to the main Hardware node, you can perform the following to get it up or ask your VPS provider to perform this on the Hardware (main) node. Before enabling iptables on VPS, it needs to make sure that the iptables modules are enabled on the Hardware Node. In order to enable iptables modules on Hardware Node, edit /etc/sysconfig/iptables-config file on a Virtuozzo hardware node and look for the following parameter value: IPTABLES_MODULES=. Edit it as the following.
Also edit /etc/sysconfig/vz file on a hardware node and look for the following parameter value: IPTABLES= , change it to the following.
Now your Hardware node is fine. You need to enable the iptable modules to the VPS nodes.
Now try entering into your node and restart CSF. It should start working fine. Descriptions and Functions ====================== csf+lfd works on all Linux servers on the Operating Systems listed above, with or without cPanel This suite of scripts provides:
/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. [Fixed] configure Ubuntu BSNL EVDO connection. Ubuntu 9.04 and 9.10 wvdial missing from Ubuntu.December 21, 2009 on 12:52 pm | In Linux, Ubuntu | 1 CommentHi guys, I am not sure why did the Ubuntu guys…left out the wvdial package in the latest distributions. In fact, most of the 3G wireless internet connection uses the PPP connection using wvdial. To install wvdial package, you need install some dependencies also. Download the wvdial + its dependencies from the following linkDownload. Copy this package to your thumb drive from the machine which has an internet connection and connect it to the Ubuntu machine. Assuming that you have copied the package from your thumb drive to the location /usr/local/src of Ubuntu machine. perform the following steps in exact order given below.
For BSNL EVDO users, edit the /etc/wvdial.conf file to add your username password and phone number(also uncomment the line by removing ; from the start of the directive). Also add the following line.
to wvdial.conf file. Use the command “wvdial” to connect to the internet. If the modem is not installed or not detected, you need to fix it first. Please update me guys, if you need any further help. 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.:) How to disable ping… in Linux serversDecember 14, 2008 on 12:44 pm | In Cpanel, Linux | No Commentsecho 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all Or add the line net.ipv4.conf.icmp_echo_ignore_all = 1 To re-enable ping Or add the line net.ipv4.conf.icmp_echo_ignore_all = 0 Alternatively, we can use IPtables to disable ping /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 |
![]() Powered and designed by Presoon.com. |