SEO Tips - SEO Blog - Internet Marketing - Search Engine Optimization

» Hosting Place

    • No categories
  • [How To] Kernel Upgrade via Yum for CentOs boxes
    By on January 14th, 2009 | No Comments Comments
    [How To] Kernel Upgrade via Yum for CentOs boxes
    Make sure your yum.conf looks something like this:Code: root@layer001 [~]# cat /etc/yum.conf [main] exclude=courier* apache* mod_ssl* httpd* perl mysql* php* spamassassin* exim* cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=centos-release tolerant=1 exactarch=1 retries=20 obsoletes=1 gpgcheck=1# PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d root@layer001 [~]#(kernel* should not be excluded) –For single proc boxes type:Code: yum upgrade kernelFor dual proc boxes type:Code: yum upgr...
  • Disable Direct Root Login – Step by Step Instru...
    By on January 14th, 2009 | No Comments Comments
    Disable Direct Root Login – Step by Step Instructions
    This is an additional security measure where we prevent direct root logins and instead create a user to login and then use a command su to gain root privileges. The only risk in this procedure is that you may prevent root login but forget to add the user to the wheel group – effectively locking yourself out of the system. Follow the steps below and you will not face a problem. STEP 1: Let us create a user and add it to the wheel group. For e.g. we want to create a user neonix and give him root privileges. SSH into your server as root and follow the below commands to create a user. group...
  • Block SSH Attacks
    By on January 14th, 2009 | 1 Comment1 Comment Comments
    Block SSH Attacks
    Alot of people are talking about SSH attacks, ways to prevent them.. Well I just thought that posting this would be somehow helpful. Methods: 1. Allow the IPs you would like to have access to SSH through your firewall.Code: Example: iptables -A INPUT -i eth0 -s 10.10.10.10 -p tcp --dport 22 -j ACCEPT2. Change SSH port.Code: Example: Edit your ssh configuration file under /etc/ssh/sshd_config and add/replace this line: Port 64453. Use a utility like BFD, BlockHosts and DenyHosts 4. Use ip tables to limit the rate of incomming connections to SSH.Code: iptables -I INPUT -p tcp --dp...
  • Install APF Firewall
    By on January 14th, 2009 | No Comments Comments
    Install APF Firewall
    Ok so you need a firewall. Well we recommend using APF. The following are the instructions you need to install 1) Login to your box as root 2) Download the APF Source (current version 0.9.3.3) CODE # wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz 3) Extract the tar.gz CODE # tar -zxf apf-current.tar.gz 4) Enter the APF directory CODE # cd apf-0.9.3_3 5) Run install code CODE ./install.sh 6) Modify the APF config File CODE #vi /etc/apf/conf.apf Hit i to enter insert mod 7) Add in the ports you want to open for inbound (INGRES). The following is for a cPanel box CODE # Common ingre...
  • Web Server Optimization
    By on January 14th, 2009 | No Comments Comments
    Web Server Optimization
    I am sure that all web hosts would like to lower the CPU load of their servers, shorten page load times, and boost overall performance. Whether it be to increase profit margin by packing in more customers or to get a Celeron 1.7Ghz handle a popular forum, we can all benefit from server optimization. Below is a compilation of some methods one may use to optimize a web server to serve web pages faster and lower the overall CPU load on the box. The following are some of the best procedures a web host can do to optimize his or her web server. 1. Basic Config File Editing Make a backup of your /etc...
  • Resolve DNS issues on cpanel 11.x Beta
    By on January 14th, 2009 | 1 Comment1 Comment Comments
    Resolve DNS issues on cpanel 11.x Beta
    I have come accross an issue with DNS in cpanel 11.x , where named.conf is badly configured by cpanel , Here is how a DNS report from dnsstuff.com would look because of this : FAILS for SOA record Fails for lame nameservers . Here’s how to fix it , SSH to server , Backup your named.conf file by cp /etc/named.conf named.conf.back then pico /etc/named.conf ReplaceCode: include "/etc/rndc.key";controls { inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; }; };options { /* make named use port 53 for the source of all queries, to allow * firewalls to bl...
  • How To: Mod_security
    By on January 14th, 2009 | No Comments Comments
    How To: Mod_security
    ModSecurity is an open source intrusion detection and prevention engine for web applications (or a web application firewall). Operating as an Apache Web server module or standalone, the purpose of ModSecurity is to increase web application security, protecting web applications from known and unknown attacks. Apache 1.xCode: wget http://www.web4host.net/tools/modsecurity-apache1.sh chmod 755 modsecurity-apache1.sh sh modsecurity-apache1.shApache 2.xCode: wget http://www.web4host.net/tools/modsecurity-apache2.sh chmod 755 modsecurity-apache2.sh sh modsecurity-apache2.shedit httpd.con...
  • Migrating Accounts via cPanel
    By on January 14th, 2009 | No Comments Comments
    Migrating Accounts via cPanel
    Prelude: Hello. I am writing this tutorial because this is a solid method I have used in the past for easily migrating cPanel accounts from one server to another. Using this method, you can transfer accounts from an old server, to a new one, help customers from another host move to your host, etc. This method is very simple, and does not even require root access on one end of the migration. I have found the “Transfer Account from another Server” tool in WHM to not work so well, and break often, so I have used this method. Requirements: -cPanel on both servers -WHM access on the new...
  • Install FFMPEG
    By on January 14th, 2009 | 1 Comment1 Comment Comments
    Install FFMPEG
    FFMPEG INSTALLATION FROM SOURCE FFMPEG INSTALLATION FROM SOURCE installed by: Robertas Dereskevicius Edited by Jon Nikolakakis OS/ Fedora Core 5 Summary download and install: libffac libffad2 xvid libogg,libvorbis mp3lame ffmpeg Setting Up Install Folder, Logging and download Packages 1)Log into ssh 2) cd /usr/src && mkdir install && cd install 3) Download faad2 and faac from http://faac.sourceforge.net/oldsite/download.php get Faad2 and faac (new versions) wget http://prdownloads.sourceforge.net/f…ar.gz?download wget http://prdownloads.sourceforge.net/f…ar.gz?downl...
  • Securing SSH: protocol SSH2 and hiding the direct acc...
    By on January 14th, 2009 | 1 Comment1 Comment Comments
    Securing SSH: protocol SSH2 and hiding the direct access of root
    1) Create a new and unique root access user. Login as root using a ssh connection such as Putty. Make sure you have the latest version of Putty that supports SSH2. Add a user named admin or any name: # /usr/sbin/adduser -OR- #useradd #useradd admin Verify that you have added the user Add user to the wheel group (this is the important step in this ducument) (The Wheel group is a user group that can gain access to root on your server by using the su command. You can add and remove users from that group as required.) # /usr/sbin/usermod -G wheel admin Change user ...