<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="http://www.booservers.com/styles/rss.css" type="text/css"?>
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns="http://my.netscape.com/rdf/simple/0.9/"
>

 <channel>
  <title>Booservers - All about dedicated servers</title>
  <link>http://www.booservers.com</link>
  <description></description>
 </channel>
    <item>
   <title>4 Primary Areas For Tuning Your Server</title>
   <description>I just thought I would add my two cents in for everyone. I posted an old howto with some sysctl.conf, but I think that was when I was running on my previous server using and older version of redhat. So here&#039;s a fresh howto that is a little more complete. &lt;br /&gt;&lt;br /&gt;These configs are based on my server specs, which is a Dual 2.0GHz Xeon with 2GB of RAM running RedHat Enterprise. Depending on your server&#039;s RAM you might have to reduce some of the settings, which I&#039;ll try make notes with each section.&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;strong&gt;First&lt;/strong&gt;, is the /etc/sysctl.conf file. Most people overlook tweaking these settings, always thinking it is a mysql or apache problem. You can get a tremendous boost in throughput by adjusting these settings. These are the settings I use on my server, and have come about by constantly adjusting and monitoring performance, and this is what works best &lt;i&gt;for me&lt;/i&gt;, your mileage may vary based on server specs and traffic. I suggest finding some guides and reading up about what each seting does before you make changes. (Note: most out there are pretty dated unfortunatly). Also, some people out there like to have tcp_window_scaling, sack, fack, etc, turned off, but I leave them on. I guess it is just a personal preference thing. So don&#039;t complain, but feel free to leave your comments, testing, and results. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;/etc/sysctl.conf&lt;/b&gt; &lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;# Kernel sysctl configuration file for Red Hat Enterprise Linux&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls IP packet forwarding&lt;br /&gt;&lt;br /&gt;net.ipv4.ip_forward = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls source route verification&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.rp_filter = 1&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.rp_filter = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Disables IP source routing&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.accept_source_route = 0&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.accept_source_route = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls the System Request debugging functionality of the kernel&lt;br /&gt;&lt;br /&gt;kernel.sysrq = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Controls whether core dumps will append the PID to the core filename.&lt;br /&gt;&lt;br /&gt;# Useful for debugging multi-threaded applications.&lt;br /&gt;&lt;br /&gt;kernel.core_uses_pid = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Increase maximum amount of memory allocated to shm&lt;br /&gt;&lt;br /&gt;# Only uncomment if needed!&lt;br /&gt;&lt;br /&gt;# kernel.shmmax = 67108864&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Disable ICMP Redirect Acceptance&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.accept_redirects = 0&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.accept_redirects = 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable Log Spoofed Packets, Source Routed Packets, Redirect Packets&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.default.log_martians = 1&lt;br /&gt;&lt;br /&gt;net.ipv4.conf.all.log_martians = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Decrease the time default value for tcp_fin_timeout connection&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_fin_timeout = 25&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Decrease the time default value for tcp_keepalive_time connection&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_keepalive_time = 1200&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Turn on the tcp_window_scaling&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_window_scaling = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Turn on the tcp_sack&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_sack = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# tcp_fack should be on because of sack&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_fack = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Turn on the tcp_timestamps&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_timestamps = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable TCP SYN Cookie Protection&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_syncookies = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable ignoring broadcasts request&lt;br /&gt;&lt;br /&gt;net.ipv4.icmp_echo_ignore_broadcasts = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Enable bad error message Protection&lt;br /&gt;&lt;br /&gt;net.ipv4.icmp_ignore_bogus_error_responses = 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Make more local ports available&lt;br /&gt;&lt;br /&gt;# net.ipv4.ip_local_port_range = 1024 65000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Set TCP Re-Ordering value in kernel to &#039;5&#039;&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_reordering = 5&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Lower syn retry rates&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_synack_retries = 2&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_syn_retries = 3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Set Max SYN Backlog to &#039;2048&#039;&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_max_syn_backlog = 2048&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Various Settings&lt;br /&gt;&lt;br /&gt;net.core.netdev_max_backlog = 1024&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Increase the maximum number of skb-heads to be cached&lt;br /&gt;&lt;br /&gt;net.core.hot_list_length = 256&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Increase the tcp-time-wait buckets pool size&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_max_tw_buckets = 360000&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# This will increase the amount of memory available for socket input/output queues&lt;br /&gt;&lt;br /&gt;net.core.rmem_default = 65535&lt;br /&gt;&lt;br /&gt;net.core.rmem_max = 8388608&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_rmem = 4096 87380 8388608&lt;br /&gt;&lt;br /&gt;net.core.wmem_default = 65535&lt;br /&gt;&lt;br /&gt;net.core.wmem_max = 8388608&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_wmem = 4096 65535 8388608&lt;br /&gt;&lt;br /&gt;net.ipv4.tcp_mem = 8388608 8388608 8388608&lt;br /&gt;&lt;br /&gt;net.core.optmem_max = 40960&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After you make the changes to the file, you can make them effective immediately by typing in &lt;b&gt;/sbin/sysctl -p&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Also, you will need to issue &lt;b&gt;/sbin/sysctl -w net.ipv4.route.flush=1&lt;/b&gt; to flush the routing table to make some of these changes happen instantly. &lt;br /&gt;&lt;br /&gt;Here&#039;s some URLs with useful info, benchmarks, etc... (I believe one was posted from someone below) &lt;br /&gt;&lt;a href=&quot;http://www.aarnet.edu.au/engineering/networkdesign/mtu/local.html&quot; target=&quot;_blank&quot;&gt;http://www.aarnet.edu.au/engineering/netwo.../mtu/local.html&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://sverre.home.cern.ch/sverre/TenGBE_whitepaper_04232003.pdf&quot; target=&quot;_blank&quot;&gt;http://sverre.home.cern.ch/sverre/TenGBE_w...er_04232003.pdf&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://www.hep.ucl.ac.uk/~ytl/tcpip/linux/txqueuelen/datatag-tcp/&quot; target=&quot;_blank&quot;&gt;http://www.hep.ucl.ac.uk/~ytl/tcpip/linux/...en/datatag-tcp/&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://www-didc.lbl.gov/TCP-tuning/TCP-tuning.html&quot; target=&quot;_blank&quot;&gt;http://www-didc.lbl.gov/TCP-tuning/TCP-tuning.html&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;http://ipsysctl-tutorial.frozentux.net/chunkyhtml/index.html&quot; target=&quot;_blank&quot;&gt;http://ipsysctl-tutorial.frozentux.net/chu...html/index.html&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Second&lt;/b&gt; is the MySQL /etc/my.cnf settings file. A lot of people just leave this file with its default settings until they notice problems with their server performance. Please note that I&#039;m not including the &lt;i&gt;datadir&lt;/i&gt; or &lt;i&gt;socket&lt;/i&gt; settings since those can vary based on your server setup. Also I&#039;m only including the base &lt;i&gt;[mysqld]&lt;/i&gt; section and not any of the &lt;i&gt;[safe_mysqld], [mysqldump], or [myisamchk]&lt;/i&gt; sections. &lt;br /&gt;&lt;br /&gt;Also, update your MySQL to the latest version, if you are still running 3.x you should be dragged out into the street and beaten with a stick, seriously. Just download the MySQL RPMs from the MySQL website, it takes 30 seconds to upgrade. They usually release a new version every month. Be aware of the difference between 4.0.x and 4.1.x (or higher). &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;[mysqld]&lt;br /&gt;&lt;br /&gt;connect_timeout=15&lt;br /&gt;&lt;br /&gt;interactive_timeout=100&lt;br /&gt;&lt;br /&gt;join_buffer_size=1M&lt;br /&gt;&lt;br /&gt;key_buffer=256M&lt;br /&gt;&lt;br /&gt;max_allowed_packet=16M&lt;br /&gt;&lt;br /&gt;max_connections=500&lt;br /&gt;&lt;br /&gt;max_connect_errors=10&lt;br /&gt;&lt;br /&gt;myisam_sort_buffer_size=64M&lt;br /&gt;&lt;br /&gt;read_buffer_size=2M&lt;br /&gt;&lt;br /&gt;read_rnd_buffer_size=2M&lt;br /&gt;&lt;br /&gt;sort_buffer_size=2M&lt;br /&gt;&lt;br /&gt;table_cache=1024&lt;br /&gt;&lt;br /&gt;thread_cache_size=100&lt;br /&gt;&lt;br /&gt;thread_concurrency=4&lt;br /&gt;&lt;br /&gt;wait_timeout=300&lt;br /&gt;&lt;br /&gt;query_cache_size=128M&lt;br /&gt;&lt;br /&gt;query_cache_limit=1M&lt;br /&gt;&lt;br /&gt;query_cache_type=1&lt;br /&gt;&lt;br /&gt;skip-innodb&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;For people with a single CPU be sure to set &lt;i&gt;thread_concurrency&lt;/i&gt; to 2 (4 is for Dual CPUs). People with 1GB of RAM, you might want to consider lowering the &lt;i&gt;key_buffer&lt;/i&gt; to 64M and the &lt;i&gt;myisam_sort_buffer_size&lt;/i&gt; to 32M. This really just depends on how much free memory your system has during peak traffic hours. If you increase these too much and your system runs out of physical RAM and starts swapping to disk, your system is going to eat it hard. &lt;br /&gt;&lt;br /&gt;For more information about Mysqld variables, please read the following articles as they explain all the settings in-depth and how to fine-tune them: &lt;a href=&quot;http://www.databasejournal.com/features/mysql/article.php/1402311&quot; target=&quot;_blank&quot;&gt;Article 1&lt;/a&gt; and &lt;a href=&quot;http://www.databasejournal.com/features/mysql/article.php/3367871&quot; target=&quot;_blank&quot;&gt;Article 2&lt;/a&gt; and &lt;a href=&quot;http://www.databasejournal.com/features/mysql/article.php/3110171&quot; target=&quot;_blank&quot;&gt;Article 3&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Third&lt;/b&gt; is Apache. Some people run 1.x, and some run 2.x, me personally I run 2.x because of the better performance. But some people are tied to the older version because of other software packages. &lt;br /&gt;&lt;br /&gt;The first thing to do if you are running 1.x is to get mod_gzip and use it. If you are running 2.x then use mod_deflate (it is included). This compresses all your HTML/TXT/XML data before it is sent, saving you bandwidth, and faster load times for your users. &lt;br /&gt;&lt;br /&gt;If you are serving up pages + images then you *probably* want to set your keepalive to on, and have your settings something like this: &lt;br /&gt;&lt;br /&gt;Timeout 60 &lt;br /&gt;KeepAlive On &lt;br /&gt;MaxKeepAliveRequests 1000 &lt;br /&gt;KeepAliveTimeout 10 &lt;br /&gt;&lt;br /&gt;By setting the KeepAliveTimeout low you won&#039;t have all those lingering connections. You can probably set it even lower if you like. &lt;br /&gt;&lt;br /&gt;If you are only serving up html (or php or whatever) pages, and using another web server for your images (like tux). Then you probably want to set your KeepAlive to Off since the user will only be requesting 1 file at a time. &lt;br /&gt;&lt;br /&gt;Most people have the bad habit of instantly increasing their &lt;i&gt;MaxClients&lt;/i&gt; to 256. This can be &lt;b&gt;BAD&lt;/b&gt; if you don&#039;t take into account memory availability. You need to determine how much memory you have free, how much each apache process consumes, then do the math to figure out what you can safely set the &lt;i&gt;MaxClients&lt;/i&gt; to. If you exceed your physical memory then once again the server will swap to the HD and the server will take a dive in performance. &lt;br /&gt;&lt;br /&gt;Comment out / remove and Dynamic Shared Object (DSO) modules that you do not use! There are a ton loaded by default, most which you will never use. I commented out 20+ personally! Read the apache documentation on what each one does, the apache docs are very detailed. &lt;br /&gt;&lt;br /&gt;If possible, set the &lt;i&gt;AllowOverride&lt;/i&gt; option to &lt;i&gt;None&lt;/i&gt;. This prevents apache from checking for the .htaccess file in every directory whenever a request is made. However if you use .htaccess files then you have to leave the setting there, but if you can limit it down to certain directories, then do it. &lt;br /&gt;&lt;br /&gt;Mask your Apache version by using the following settings: &lt;br /&gt;&lt;i&gt;ServerSignature Off &lt;br /&gt;ServerTokens ProductOnly&lt;/i&gt; &lt;br /&gt;&lt;br /&gt;That&#039;s just good practice, you can also hide your PHP info by setting &lt;i&gt;expose_php = Off&lt;/i&gt; in your /etc/php.ini file.&lt;/p&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;b&gt;Fourth&lt;/b&gt; is PHP. One thing to do is use a program like eAccelerator which caches pre-compiled versions of your php files to help reduce overhead and increase performance. It is a free download from sourceforge, but it will require a little know-ho on your part to install. There are plenty of other guides on how to install this. It is very simple and quick. &lt;br /&gt;&lt;br /&gt;A lot of people use the redhat PHP RPMs, which can be quite bloated. My libphp4.so module is only 2.07MB in size. (I don&#039;t remember what the default redhat one is, but I&#039;m willing to bet it is larger). Also Redhat never seems to keep up to date with the latest PHP (or MySQL) version, I always recommend updating as soon as a new release is published. &lt;br /&gt;&lt;br /&gt;Here&#039;s my configure line. There&#039;s a lot of settings you may not use, and they could be ones that you use that I don&#039;t. You can view your current configure line via the phpinfo() function. These include all the big things such as GD, XML, SHM, etc.. Some people maybe want to enable a certain memory-limit to prevent PHP from eating too much memory per process. &lt;br /&gt;&lt;br /&gt;Also, I don&#039;t use mm simply because I found it would crash apache on an almost daily basis. I had problems with session storage, and also it would not restart after rotating logs... &lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;./configure &lt;br /&gt;&lt;br /&gt;--prefix=/usr &lt;br /&gt;&lt;br /&gt;--exec-prefix=/usr &lt;br /&gt;&lt;br /&gt;--bindir=/usr/bin &lt;br /&gt;&lt;br /&gt;--sbindir=/usr/sbin &lt;br /&gt;&lt;br /&gt;--sysconfdir=/etc &lt;br /&gt;&lt;br /&gt;--datadir=/usr/share &lt;br /&gt;&lt;br /&gt;--includedir=/usr/include &lt;br /&gt;&lt;br /&gt;--libdir=/usr/lib &lt;br /&gt;&lt;br /&gt;--libexecdir=/usr/libexec &lt;br /&gt;&lt;br /&gt;--localstatedir=/var &lt;br /&gt;&lt;br /&gt;--sharedstatedir=/usr/com &lt;br /&gt;&lt;br /&gt;--mandir=/usr/share/man &lt;br /&gt;&lt;br /&gt;--infodir=/usr/share/info &lt;br /&gt;&lt;br /&gt;--disable-cgi &lt;br /&gt;&lt;br /&gt;--disable-debug &lt;br /&gt;&lt;br /&gt;--disable-rpath &lt;br /&gt;&lt;br /&gt;--disable-memory-limit &lt;br /&gt;&lt;br /&gt;--disable-ipv6 &lt;br /&gt;&lt;br /&gt;--disable-safe-mode &lt;br /&gt;&lt;br /&gt;--enable-pic &lt;br /&gt;&lt;br /&gt;--enable-discard-path &lt;br /&gt;&lt;br /&gt;--enable-inline-optimization &lt;br /&gt;&lt;br /&gt;--enable-gd-native-ttf &lt;br /&gt;&lt;br /&gt;--enable-gd-imgstrttf &lt;br /&gt;&lt;br /&gt;--enable-magic-quotes &lt;br /&gt;&lt;br /&gt;--enable-sysvsem &lt;br /&gt;&lt;br /&gt;--enable-sysvshm &lt;br /&gt;&lt;br /&gt;--enable-sysvmsg &lt;br /&gt;&lt;br /&gt;--enable-shmop &lt;br /&gt;&lt;br /&gt;--enable-track-vars &lt;br /&gt;&lt;br /&gt;--enable-exif &lt;br /&gt;&lt;br /&gt;--enable-wddx &lt;br /&gt;&lt;br /&gt;--enable-bcmath &lt;br /&gt;&lt;br /&gt;--enable-calendar &lt;br /&gt;&lt;br /&gt;--enable-ftp &lt;br /&gt;&lt;br /&gt;--enable-inline-optimization &lt;br /&gt;&lt;br /&gt;--with-apxs2=/usr/sbin/apxs &lt;br /&gt;&lt;br /&gt;--with-mysql=/usr &lt;br /&gt;&lt;br /&gt;--with-pear &lt;br /&gt;&lt;br /&gt;--with-config-file-path=/etc &lt;br /&gt;&lt;br /&gt;--with-exec-dir=/usr/bin &lt;br /&gt;&lt;br /&gt;--with-gd &lt;br /&gt;&lt;br /&gt;--with-png-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-jpeg-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-freetype-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-gettext &lt;br /&gt;&lt;br /&gt;--with-openssl &lt;br /&gt;&lt;br /&gt;--with-regex &lt;br /&gt;&lt;br /&gt;--with-ttf=/usr &lt;br /&gt;&lt;br /&gt;--with-expat-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-dom=/usr &lt;br /&gt;&lt;br /&gt;--with-dom-xslt=/usr &lt;br /&gt;&lt;br /&gt;--with-dom-exslt=/usr &lt;br /&gt;&lt;br /&gt;--with-iconv &lt;br /&gt;&lt;br /&gt;--with-db4=/usr &lt;br /&gt;&lt;br /&gt;--with-gdbm=/usr &lt;br /&gt;&lt;br /&gt;--with-zlib=/usr &lt;br /&gt;&lt;br /&gt;--with-zlib-dir=/usr &lt;br /&gt;&lt;br /&gt;--with-xmlrpc &lt;br /&gt;&lt;br /&gt;--with-xml &lt;br /&gt;&lt;br /&gt;--with-bz2=/usr &lt;br /&gt;&lt;br /&gt;--with-cdb &lt;br /&gt;&lt;br /&gt;--enable-mbstring&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;When compiling programs (like PHP, eaccelerator, etc..), you can fine-tune some of your compile-options to enhance performance for your CPU&#039;s capabilities (and remove excess stuff like debug info) &lt;br /&gt;&lt;br /&gt;As mentioned before, I run dual xeon&#039;s (P4&#039;s for all practical purposes). If you are using a different CPU then you might have to go look up the proper flags at the GCC website. &lt;br /&gt;&lt;br /&gt;Before compiling a program, you can set the following flags: &lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;&lt;br /&gt;&lt;br /&gt;export CFLAGS=&amp;quot;-O3 -pipe -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer&amp;quot;&lt;br /&gt;&lt;br /&gt;export CXXFLAGS=&amp;quot;${CFLAGS}&amp;quot;&lt;br /&gt;&lt;br /&gt;export CHOST=&amp;quot;i686-pc-linux-gnu&amp;quot;&lt;br /&gt;&lt;br /&gt;export MAKEOPTS=&amp;quot;-j2&amp;quot;&lt;br /&gt;&lt;br /&gt;export LDFLAGS=&amp;quot;-Wl,-O1&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;br /&gt;&lt;br /&gt;These flags are considered &amp;quot;stable&amp;quot; and should enhance performance a little for software that you compile with these options. There are tons of other flags, however some reduce precision for certain math (which can cause problems in certain software) and others may reduce stabililty. &lt;br /&gt;&lt;br /&gt;------------------------------------------- &lt;br /&gt;&lt;br /&gt;I guess that&#039;s about it... Use the information at your own risk. Hopefully it will help some people out, or at least point them in the right direction. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Please don&#039;t post questions that are like: &amp;quot;here&#039;s my config, can you optimize it for X server?&amp;quot;. I don&#039;t check these forums that often, so I probably won&#039;t reply to your question.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Server tuning is more of an art than just entering X setting to Y number. Before making changes, keep your old configs. Also get a monitoring program so you can graph out your server load and other vitals. That way you can see before &amp;amp; after results. Also, if you run a forum, let your users know that you are going to make changes, and get their feedback on response time and such from them. &lt;br /&gt;&lt;br /&gt;Enjoy. &lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;&lt;/div&gt;&lt;div class=&quot;postcolor&quot;&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=48880&quot;&gt;http://forums.theplanet.com/index.php?showtopic=48880&lt;/a&gt;&lt;/div&gt;</description>
   <link>http://www.booservers.com/archivo/52_4_primary_areas_for_tuning_your_server.html</link>
      <pubDate>Thu, 04 Sep 2008 14:57:07 +0000</pubDate>   
  </item>
    <item>
   <title>Easy CURL 7.10.4 w/SSL </title>
   <description>&lt;p&gt;We&#039;ve put together these RPM&#039;s for libcurl 7.10.2 with SSL support. They upgrade over the stock RH ones. Installation is via rpm -Uvh&lt;/p&gt;&lt;p&gt;Applicability (RH 7.2 / 7.3 required) :&lt;/p&gt;&lt;p&gt;Webppliance 3.1&lt;br /&gt;Webppliance Pro 3.5&lt;br /&gt;cPanel 6&lt;br /&gt;Plesk 5.0 &lt;/p&gt;&lt;p&gt;These are also Modernbill compatible on all above panel types.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Downloadables:&lt;/p&gt;&lt;p&gt;curl-7.10.4-1.i386.rpm&lt;br /&gt;curl-devel-7.10.4-1.i386.rpm&lt;/p&gt;&lt;p&gt;MD5 Checksums&lt;/p&gt;&lt;p&gt;37a04f7db8c34fddbb309d067d16a453 curl-7.10.4-1.i386.rpm&lt;br /&gt;e09253b7c227573f4e5b10d3987f433b curl-devel-7.10.4-1.i386.rpm&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.cheetaweb.com/&quot;&gt;http://www.cheetaweb.com/&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/35_easy_curl_7104_wssl_.html</link>
      <pubDate>Thu, 15 Dec 2005 21:35:04 +0000</pubDate>   
  </item>
    <item>
   <title>APF Firewall 0.9.4-7</title>
   <description>&lt;p&gt;Just thought I&#039;d update the howto&#039;s for APF.&lt;/p&gt;&lt;p&gt;Type ifconfig&lt;/p&gt;&lt;p&gt;Find out if it’s using eth0 or eth1.&lt;/p&gt;&lt;p&gt;Usually its eth0 but if its not, change it in conf.apf or you’ll be completely blocking the server from access&lt;/p&gt;&lt;p&gt;wget &lt;a href=&quot;http://www.rfxnetworks.com/downloads/apf-current.tar.gz&quot;&gt;http://www.rfxnetworks.com/downloads/apf-current.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;p&gt;tar -xvzf apf-current.tar.gz&lt;br /&gt;cd apf*&lt;br /&gt;./install.sh&lt;br /&gt;pico -w /etc/apf/conf.apf&lt;/p&gt;&lt;p&gt;RESV_DNS=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;All SYSCTL options should be set to 1 EXCEPT for&lt;br /&gt;SYSCTL_OVERFLOW=&amp;quot;0&amp;quot;&lt;br /&gt;SYSCTL_SYNCOOKIES=&amp;quot;0&amp;quot;&lt;/p&gt;&lt;p&gt;USE_DS=&amp;quot;1&amp;quot;&lt;br /&gt;USE_AD=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;FOR PLESK:&lt;p&gt;IG_TCP_CPORTS=&amp;quot;20,21,22,25,53,80,110,143,443,465,993,995,8443&amp;quot;&lt;br /&gt;IG_UDP_CPORTS=&amp;quot;37,53,873&amp;quot;&lt;/p&gt;&lt;p&gt;EGF=&amp;quot;1&amp;quot;&lt;br /&gt;EG_TCP_CPORTS=&amp;quot;20,21,22,25,53,37,43,80,113,443,465,873&amp;quot;&lt;br /&gt;EG_UDP_CPORTS=&amp;quot;53,873&amp;quot;&lt;/p&gt;&lt;p&gt;For CPANEL:&lt;/p&gt;&lt;p&gt;IG_TCP_CPORTS=&amp;quot;20,21,22,25,53,80,110,143,443,993,995,2082,2083,20 86,2087,2095,2096&amp;quot;&lt;br /&gt;IG_UDP_CPORTS=&amp;quot;37,53,873&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;EGF=&amp;quot;1&amp;quot;&lt;br /&gt;EG_TCP_CPORTS=&amp;quot;20,21,22,25,37,53,43,80,113,443,465,873,2087,2089&amp;quot;&lt;br /&gt;EG_UDP_CPORTS=&amp;quot;53,873&amp;quot;&lt;/p&gt;&lt;p&gt;apf –s to start firewall.&lt;/p&gt;&lt;p&gt;If you are not kicked out of SSH and you can type commands after it loads, that means it’s installed correctly.&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/ad/conf.antidos&lt;/p&gt;&lt;p&gt;LP_KLOG=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;USR_ALERT=&amp;quot;1&amp;quot;&lt;br /&gt;USER = “root”&lt;br /&gt;ARIN_ALERT=&amp;quot;1&amp;quot;&lt;/p&gt;&lt;p&gt;pico -w /etc/apf/conf.apf&lt;/p&gt;&lt;p&gt;change DEVM to 0&lt;/p&gt;&lt;p&gt;apf -r&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/34_apf_firewall_094-7.html</link>
      <pubDate>Thu, 15 Dec 2005 21:32:07 +0000</pubDate>   
  </item>
    <item>
   <title>Get FTP running on your P-NET (PNET) storage server</title>
   <description>&lt;p&gt;Telnet/SSH into your P-NET server as root (or use su).&lt;/p&gt;&lt;p&gt;Use the following command:&lt;br /&gt;/sbin/service vsftpd start&lt;/p&gt;&lt;p&gt;This will start the ftp server. &lt;/p&gt;&lt;p&gt;That&#039;s it!&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;If you are going to use cPanel&#039;s backup feature you should probably create a separate user account.&lt;/p&gt;&lt;p&gt;Here&#039;s now:&lt;br /&gt;/usr/sbin/useradd username&lt;br /&gt;passwd username&lt;/p&gt;&lt;p&gt;The last command will ask you to set a password and confirm it.&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/19_get_ftp_running_on_your_p-net_pnet_storage_server.html</link>
      <pubDate>Thu, 15 Dec 2005 20:43:11 +0000</pubDate>   
  </item>
    <item>
   <title>Check server hardware</title>
   <description>There are a lot of things that may cause a server to crash, this guide is going to primarily look at the hardware side of crashing. There are many things that might be causing the server to crash from a software standpoint such a process that runs out of control or uses too many resources. There are a fwe things that might be going wrong with a server. Normally the component that goes wrong is the hard drive, simply because it is use so much and is a moving part. The RAM on a server will occasionally go but this is more common when the server is moved around or the RAM moved because it has a chance of being statically shocked. On the less common side of things you could have the CPU, powersupply, ethernet card, or motherboard going out.&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;A few important things first:&lt;/p&gt;&lt;p&gt;Does the server crash on a regular basis at the same time? If so look at the cronjobs on the server. If you are running RHEL and cPanel you should disable the auditd because it may be causing the crashes. &lt;/p&gt;&lt;p&gt;Check your /var/log/messages file for the time before the crash and when the server boots up because you will sometimes be able to see an error. If something like the ethernet card goes down you should also see it because the log files will still be writing, you just will not be able to access the server physically. &lt;/p&gt;&lt;p&gt;Make sure your kernel and other software is at the latest version. There have been a few kernel versions with bad drivers that can cause stability problems.&lt;/p&gt;&lt;p /&gt;&lt;p&gt;The easiest thing to look at it smartctl which is a command line tool that reads the status information from the drive directly. Almost modern drive will have the SMART capability which can be probed. &lt;/p&gt;&lt;p&gt;# smartctl -H /dev/sda&lt;/p&gt;&lt;p&gt;If that shows nothing bad take a look at &lt;/p&gt;&lt;p&gt;# smartctl -a /dev/sda&lt;/p&gt;&lt;p&gt;which will show any errors that the disk has encountered. A few errors are ok and normal but if you have more then just a few then it is definatly something to check out. Now since smartctl is a computer program there is a chance that the diagnostics are not correct. Because of this the next best thing to do is to run a disk check. Badblocks is a common tool used to check the disk for errors. To run it go ahead and run badblocks:&lt;/p&gt;&lt;p&gt;#badblocks -v -v /dev/sda&lt;/p&gt;&lt;p&gt;This disk check is going to take a few minutes and will also be constantly using your drive during this time. If your server is very busy you may have trouble with other services running in the background that need to access the disks. If you still think that the disk is bad i would suggest running badblocks 3-5 times. It is possible that the disk drive is just starting to go bad and it might not detect any problems on the first run. If smartctl and badblocks both show nothing chances are the disk driver is just fine.&lt;/p&gt;&lt;p /&gt;&lt;p&gt;The next thing to check out on the server is the RAM. To do this we will use memtester which is a very simple program that simply uses the RAM continously and runs it though a series of tests in order to detect any problems with it. First download and install memtester:&lt;/p&gt;&lt;p&gt;cd /usr/local/src &lt;br /&gt;wget &lt;a href=&quot;http://pyropus.ca/software/memteste...er-4.0.5.tar.gz&quot;&gt;http://pyropus.ca/software/memteste...er-4.0.5.tar.gz&lt;/a&gt;&lt;br /&gt;tar -zxf memtester-4.0.5.tar.gz&lt;br /&gt;cd memtester-4.0.5&lt;br /&gt;make&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Now that it has been compiled we are going to have to run it. NOTE when you run memtester it is going to use all of the RAM and your server load will probably jump pretty high. First make sure of how much RAM you have in the system via&lt;/p&gt;&lt;p&gt;free -m&lt;/p&gt;&lt;p&gt;If for some reason this amount is not what you expect the RAM may in fact be bad. It would be in your best interest to have it checked out to make sure why the correct amount is not present, it might simply be because of an error at the datacenter. Below is what you would run if you have 1024 or 1Gb of ram and have it run 5 seperate times to hopefully catch and problems. &lt;/p&gt;&lt;p&gt;./memtester 1024 5&lt;/p&gt;&lt;p&gt;Since the server is using some of the RAM you are going to get an error like the below:&lt;br /&gt;got 460MB (483188736 bytes), trying mlock ...too many pages, reducing...&lt;/p&gt;&lt;p&gt;Though it is best to close as much as possible before the test it is usually not required. Chances are if the server is using the RAM then it is probably good, of course if nothing else can be found it might be worth closing everything and going back and running memtester again. If all 5 tests come back with no problems chances are that the RAM is ok.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Ok that covers most of the stuff that normally goes wrong. The next thing we can try is simply to try to overload the server and see what happens. The program that we will use is simply called stress. It attempt to overload the cpu and hard drive all at once. First go ahead and download and compile the program to run the tests:&lt;/p&gt;&lt;p&gt;cd /usr/local/src&lt;br /&gt;wget &lt;a href=&quot;http://weather.ou.edu/~apw/projects...s-0.18.4.tar.gz&quot;&gt;http://weather.ou.edu/~apw/projects...s-0.18.4.tar.gz&lt;/a&gt;&lt;br /&gt;tar -zxf stress-0.18.4.tar.gz&lt;br /&gt;cd stress-0.18.4&lt;br /&gt;./configure &lt;br /&gt;make; make install&lt;/p&gt;&lt;p&gt;Now we are going to actually run it. Try using the following command to see what happens. This is more or less going to be a last ditch effort to try and get the server to crash by simulating it being very busy. Since this test is relatively short you may try running it a few times to see if you can get it to crash. If the server does crash it does not necessarily mean that there is a hardware problem but it says something is wrong. It is probably best to switch out the hardware if possible if it crashes running the test assuming as I put above you are running the latest drivers and kernels. Here is the command:&lt;/p&gt;&lt;p&gt;stress --cpu 8 --io 4 --vm 2 --vm-bytes 256M --timeout 60s&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.eth0.us/&quot; target=&quot;_blank&quot;&gt;John W&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/18_check_server_hardware.html</link>
      <pubDate>Thu, 15 Dec 2005 20:41:09 +0000</pubDate>   
  </item>
    <item>
   <title>Install HotSaNIC (updated)</title>
   <description>HotSaNIC is a very nice tool which combines all sorts of very important system graphs into a simple and easy to understand webpage. It allows the admin to take a quick glance at the graphs to see what may or may not be working with the system. With the new APPS graph it is also possible to watch as more processes are started which can be helpful in tracking down why the server load is increasing. For instance if you see a huge load spike but you see that the number of exim processes has gone up significantly at the same time you can start to investigate.&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;First, we will need to install RRDtool&lt;/p&gt;&lt;p&gt;&lt;br /&gt;-----command-----&lt;br /&gt;cd /usr/local/src/&lt;br /&gt;wget &lt;a href=&quot;http://people.ee.ethz.ch/~oetiker/w.../rrdtool.tar.gz&quot;&gt;http://people.ee.ethz.ch/~oetiker/w.../rrdtool.tar.gz&lt;/a&gt;&lt;br /&gt;tar -zxf rrdtool.tar.gz&lt;br /&gt;cd rrdtool*&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;make site-perl-install&lt;br /&gt;cd ..&lt;br /&gt;rm -fr rrdtool*&lt;/p&gt;&lt;p&gt;-----command-----&lt;/p&gt;&lt;p&gt;Now we will install and configure HotSaNIC&lt;/p&gt;&lt;p&gt;-----command-----&lt;br /&gt;cd /usr/local&lt;br /&gt;wget &lt;a href=&quot;http://internap.dl.sourceforge.net/...-0.5.0-pre5.tgz&quot;&gt;http://internap.dl.sourceforge.net/...-0.5.0-pre5.tgz&lt;/a&gt;&lt;br /&gt;tar -zxf hotsanic-0.5.0-pre5.tgz&lt;br /&gt;rm -rf hotsanic-0.5.0-pre5.tgz&lt;br /&gt;cd HotSaNIC&lt;br /&gt;./setup.pl&lt;/p&gt;&lt;p&gt;-----command-----&lt;/p&gt;&lt;p&gt;You will be asked a number of questions during the install script.&lt;/p&gt;&lt;p&gt;Module found: APCUSV Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Module found: APPS Do you want to use this module?&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Do you want to show this module&#039;s graphs on the webpage? (Y/n)&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Module found: BIND Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Module found: DISKIO Do you want to use this module?&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Do you want to show this module&#039;s graphs on the webpage? (Y/n)&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Module found: DNET Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Module found: MAILQ Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039; (they only support postfix right now)&lt;/p&gt;&lt;p&gt;Module found: NETSTAT Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Module found: NETWORKS Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Module found: PART Do you want to use this module?&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Do you want to show this module&#039;s graphs on the webpage? (Y/n)&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Module found: SENSORS Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Module found: SHOUTCAST&#039; Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Module found: SYSTEM Do you want to use this module?&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Do you want to show this module&#039;s graphs on the webpage? (Y/n)&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Module found: TRAFFIC Do you want to use this module?&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Do you want to show this module&#039;s graphs on the webpage? (Y/n)&lt;br /&gt;Choose &#039;y&#039;&lt;/p&gt;&lt;p&gt;Module found: WORMS Do you want to use this module?&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;Found: eth0 - (y)es or (n)o&lt;br /&gt;Choose &#039;y&#039; (If you are prompted for any other interfaces starting with &#039;eth0&#039; choose &#039;n&#039;)&lt;/p&gt;&lt;p&gt;Found: lo - (y)es or (n)o&lt;br /&gt;Choose &#039;n&#039;&lt;/p&gt;&lt;p&gt;0 /usr/local/cpanel/bin/rrdtoolinstall&lt;br /&gt;1 /usr/local/cpanel/bin/rrdtoolcheck&lt;br /&gt;2 /usr/local/cpanel/3rdparty/bin&lt;br /&gt;by just pressing ´ENTER´, item &amp;quot;0&amp;quot; will be selected.&lt;br /&gt;select item 0 ... 2? &amp;gt;&lt;/p&gt;&lt;p&gt;Select 0, we are going to change this below anyways.&lt;/p&gt;&lt;p /&gt;&lt;p&gt;&lt;br /&gt;You are now back at the command prompt. (If it asks you more questions, just accept the default answers.. we are using these settings below....)&lt;/p&gt;&lt;p&gt;Now we are going to start the manual configuration of hotsanic.&lt;/p&gt;&lt;p&gt;-----command-----&lt;br /&gt;cd /usr/local/HotSaNIC/var/settings&lt;br /&gt;pico -w main&lt;br /&gt;-----command-----&lt;/p&gt;&lt;p&gt;press [ctrl -w] then type &#039;binpath&#039; then press [enter]. Find and change this line.&lt;/p&gt;&lt;p&gt;BINPATH=&amp;quot;not configured&amp;quot;&lt;/p&gt;&lt;p&gt;change to&lt;/p&gt;&lt;p&gt;BINPATH=&amp;quot;/usr/local/rrdtool-1.0.49/bin&amp;quot;&lt;/p&gt;&lt;p&gt;press [ctrl -w] again then type &#039;webdir&#039; then press [enter]. Find and change this line.&lt;/p&gt;&lt;p&gt;WEBDIR=&amp;quot;not configured&amp;quot;&lt;/p&gt;&lt;p&gt;change to&lt;/p&gt;&lt;p&gt;WEBDIR=&amp;quot;/home/username/public_html/stats/&amp;quot;&lt;br /&gt;Note you are going to put this to someplace that is acessible to the internet. I would recommend setting it to a subdomain or a directory within a domain.&lt;/p&gt;&lt;p&gt;press [ctrl -w] again then type &#039;ctime&#039; then press [enter]. Find and change this line.&lt;/p&gt;&lt;p&gt;CTIME=&amp;quot;24&amp;quot;&lt;/p&gt;&lt;p&gt;change to&lt;/p&gt;&lt;p&gt;CTIME=&amp;quot;4&amp;quot;&lt;/p&gt;&lt;p&gt;press [ctrl -w] again then type &#039;convertpath&#039; then press [enter]. Find and change this line. If may already be changed, if so do not worry.&lt;/p&gt;&lt;p&gt;CONVERTPATH=&amp;quot;not configured&amp;quot;&lt;/p&gt;&lt;p&gt;change to&lt;/p&gt;&lt;p&gt;CONVERTPATH=&amp;quot;/usr/bin/convert&amp;quot;&lt;/p&gt;&lt;p&gt;Finally, to save and exit press [ctrl -x] Y then [enter]. At the prompt type.&lt;/p&gt;&lt;p&gt;pico mod_traffic&lt;/p&gt;&lt;p&gt;Find and change this line:&lt;/p&gt;&lt;p&gt;SWAPIO=&amp;quot;no&amp;quot;&lt;/p&gt;&lt;p&gt;change to&lt;/p&gt;&lt;p&gt;SWAPIO=&amp;quot;yes&amp;quot;&lt;/p&gt;&lt;p&gt;Again, to save and exit press [ctrl -x] Y then [enter]. At the prompt type.&lt;/p&gt;&lt;p&gt;pico -w mod_system&lt;/p&gt;&lt;p&gt;Go to the bottom and where you see all the IRQ= lines that are not commented out simply delete them.&lt;/p&gt;&lt;p&gt;Again, to save and exit press [ctrl -x] Y then [enter]. At the prompt type.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;-----command-----&lt;br /&gt;cat /proc/stat |grep disk_io&lt;br /&gt;-----command-----&lt;/p&gt;&lt;p&gt;It is going to report something like this&lt;/p&gt;&lt;p&gt;disk_io: (8,0)14081770,10200468,182341484,3881302,1004096 78) (8,1)703,442,15844,261,3586)&lt;/p&gt;&lt;p&gt;Edit the disk_io config file&lt;/p&gt;&lt;p&gt;-----command-----&lt;br /&gt;pico -w mod_diskio&lt;br /&gt;-----command-----&lt;/p&gt;&lt;p&gt;At the bottom add:&lt;/p&gt;&lt;p&gt;DEV=8_0,sda&lt;br /&gt;DEV=8_1,sda&lt;/p&gt;&lt;p&gt;If your system has something other then the (8,0) and (8,1) as listed above make sure to put that in the config above. Again, to save and exit press [ctrl -x] Y then [enter]. At the prompt type.&lt;/p&gt;&lt;p&gt;-----command-----&lt;br /&gt;pico -w mod_apps&lt;br /&gt;-----command-----&lt;/p&gt;&lt;p&gt;This mod is going to allow you to track how many of a given service is running. I would say that apache, mysql, and email are the most important. Note that exim is what cPanel uses, if you are using ensim replace it with sendmail. Add the following to the bottom:&lt;/p&gt;&lt;p&gt;APP=httpd,Apache&lt;br /&gt;APP=mysqld,Mysql&lt;br /&gt;APP=exim,Exim&lt;/p&gt;&lt;p&gt;Again, to save and exit press [ctrl -x] Y then [enter]. Note that below when you make the directory it needs to be what you put in the configuration file above. At the prompt type.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;-----command-----&lt;br /&gt;cd /usr/local/HotSaNIC&lt;br /&gt;mkdir /home/username/public_html/stats&lt;br /&gt;./rrdgraph start&lt;br /&gt;./makeindex.pl&lt;br /&gt;./diagrams.pl&lt;br /&gt;./convert.pl&lt;br /&gt;-----command-----&lt;/p&gt;&lt;p&gt;You now have HotSaNIC installed&lt;/p&gt;&lt;p&gt;To view HotSaNIC go to &lt;a href=&quot;http://yourIPaddress/stats/&quot;&gt;http://yourIPaddress/stats/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;(it will take a few mins for the graphs to generate data.&lt;/p&gt;&lt;p&gt;Now, Lets set HotSaNIC up so it will start when you reboot your server.&lt;/p&gt;&lt;p&gt;-----command-----&lt;br /&gt;pico /etc/rc.local&lt;br /&gt;-----command-----&lt;/p&gt;&lt;p&gt;Add this line:&lt;/p&gt;&lt;p&gt;/usr/local/HotSaNIC/./rrdgraph start&lt;/p&gt;&lt;p&gt;Then [ctrl -x] Y then [enter] to save&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://www.eth0.us/&quot; target=&quot;_blank&quot;&gt;John W&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/16_install_hotsanic_updated.html</link>
      <pubDate>Thu, 15 Dec 2005 20:26:37 +0000</pubDate>   
  </item>
    <item>
   <title>Transferring an SSL Cert between two CP/WHM Servers</title>
   <description>&lt;p&gt;The problem with some SSL cert authorities is that they won&#039;t regenerate a new cert for you to use the moment you switch servers. This is the problem I faced with Geotrust. All the company is willing to say is that you should be able to export the CSR, key file, and the cert quite easily.&lt;/p&gt;&lt;p&gt;So after a bit of mucking around, this is what I did when I found that WHM didn&#039;t transfer the cert over when I copied the domain account over.&lt;/p&gt;&lt;p&gt;You&#039;ll need to have SSH root access for this.&lt;/p&gt;&lt;p&gt;Before you begin, make sure that you&#039;ve already used the WHM copy account function to transfer the domain account, dns settings, etc, over.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;1. SSH into your old server. You should be able to find these two directories:&lt;/p&gt;&lt;p&gt;/usr/share/ssl/private&lt;br /&gt;/usr/share/ssl/certs&lt;/p&gt;&lt;p&gt;The first directory contains the key file while the second contains the certificate signing request (CSR) and the certificate itself.&lt;/p&gt;&lt;p&gt;2. Now identify the relevant files you&#039;ll need to copy over to the new server.&lt;/p&gt;&lt;p&gt;If the SSL domain is &amp;quot;secure.domain.com&amp;quot; these files should be copied over to the exact same directories on your new servers:&lt;/p&gt;&lt;p&gt;/usr/share/ssl/private/secure.domain.com.key&lt;br /&gt;/usr/share/ssl/certs/secure.domain.com.cabundle&lt;br /&gt;/usr/share/ssl/certs/secure.domain.com.crt&lt;br /&gt;/usr/share/ssl/certs/secure.domain.com.csr&lt;/p&gt;&lt;p&gt;3. Now use FTP,WGET or your preferred file transfer method to move these files over to the new server&lt;/p&gt;&lt;p&gt;4. Log into WHM as root, go to SSL/TLS -&amp;gt; Install an SSL Certificate and Set Up a New Domain&lt;/p&gt;&lt;p&gt;5. In the Domain field, enter the relevant domain (eg. secure.domain.com), click on the fetch button ABOVE (NOT below). Your SSL cert should be displayed in the box and the username, IP fields should appear automatically.&lt;/p&gt;&lt;p&gt;6. In the panel immediately below click on the FETCH button to fetch the .key file. This should appear as well. &lt;/p&gt;&lt;p&gt;7. When this is done, click &amp;quot;DO IT&amp;quot; at the top of the screen and WHM wiil install the cert and configure httpd to use the cert.&lt;/p&gt;&lt;p&gt;That&#039;s all there is to it! You can modify the httpd.conf file to get the secure domain to point to a different subdirectory if you wish.&lt;/p&gt;&lt;p&gt;If you know of another method please feel free to add to this thread. Somehow methinks there might be an easier way &lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/14_transferring_an_ssl_cert_between_two_cpwhm_servers.html</link>
      <pubDate>Thu, 15 Dec 2005 20:14:46 +0000</pubDate>   
  </item>
    <item>
   <title>Fix &quot;Support Request&quot; in PRO Version</title>
   <description>&lt;p&gt;Everyone knows that the initial PRO version of CPanel comes with a broken &amp;quot;Submit a Support Request&amp;quot;. It seems the reseller settings just plain out don&#039;t work, and the root setting overrides everything. &lt;/p&gt;&lt;p&gt;Follow the How-To below and you will get the submit a support request feature working the way it was intended to.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;1. Log into ROOT SSH&lt;/p&gt;&lt;p&gt;2. Type: cd /usr/local/cpanel/whostmgr/docroot/cgi &lt;/p&gt;&lt;p&gt;3. Type: pico addon_configsupport.cgi&lt;/p&gt;&lt;p /&gt;&lt;p&gt;4. Find the following line:&lt;/p&gt;&lt;p&gt;if ($ENV{&#039;REMOTE_USER&#039;} ne &amp;quot;root&amp;quot;) {&lt;br /&gt;$conffile = &amp;quot;/var/cpanel/pro/$Cpanel::CPDATA{&#039;OWNER&#039;}_support.conf&amp;quot;;&lt;/p&gt;&lt;p&gt;5. Change this line to:&lt;/p&gt;&lt;p&gt;$conffile = &amp;quot;/var/cpanel/pro/$ENV{&#039;REMOTE_USER&#039;}_support.conf&amp;quot;;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;6. Save this file&lt;/p&gt;&lt;p&gt;7. Type cd /usr/local/Cpanel&lt;/p&gt;&lt;p&gt;8. Type pico SupportRequest.pm&lt;/p&gt;&lt;p&gt;9. Search this file every instance of the following:&lt;/p&gt;&lt;p&gt;$Cpanel::CPDATA{&#039;OWNER&#039;}/support.conf&lt;/p&gt;&lt;p&gt;10. Change every instance to the following:&lt;/p&gt;&lt;p&gt;$Cpanel::CPDATA{&#039;OWNER&#039;}_support.conf&lt;/p&gt;&lt;p&gt;&lt;br /&gt;11. Save this file&lt;/p&gt;&lt;p&gt;12. Just to make sure your starting from scratch do the following:&lt;/p&gt;&lt;p&gt;Type: cd /var/cpanel/pro&lt;br /&gt;Type: dir&lt;br /&gt;delete every support.conf that is listed&lt;/p&gt;&lt;p&gt;13. Log into your reseller WHM and Configure a support request.&lt;/p&gt;&lt;p&gt;14. Test it out and have fun!!!&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/13_fix_support_request_in_pro_version.html</link>
      <pubDate>Thu, 15 Dec 2005 20:10:06 +0000</pubDate>   
  </item>
    <item>
   <title>Installing PHP5 and PHP4 together on Unix</title>
   <description>So you have PHP4 working on your server, and have heard that PHP5 may break things. Here’s how to have both running alongside.&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;-------------------------------&lt;/p&gt;&lt;p&gt;#!/bin/sh&lt;br /&gt;# PHP5 CGI Installer for cPanel/WHM Servers&lt;/p&gt;&lt;p&gt;VERSION=5.0.4&lt;br /&gt;cd /usr/src&lt;br /&gt;wget -O php.tbz2 “http://us4.php.net/get/php-${VERSION}.tar.bz2/from/this/mirror”&lt;br /&gt;tar -xjvf php.tbz2&lt;br /&gt;rm -f php.tbz2&lt;br /&gt;wget &lt;a href=&quot;http://choon.net/opensource/php/php-${VERSION}-mail-header.patch&quot;&gt;http://choon.net/opensource/php/php-${VERSION}-mail-header.patch&lt;/a&gt;&lt;br /&gt;cd php-${VERSION}&lt;br /&gt;patch -p1 &amp;lt; /usr/src/php-${VERSION}-mail-header.patch&lt;br /&gt;rm /usr/src/php-${VERSION}-mail-header.patch&lt;/p&gt;&lt;p&gt;PHP=/usr/local/bin/php&lt;br /&gt;CFG=`$PHP -i | grep configure | sed &amp;quot;s/&#039;//g&amp;quot; | sed &amp;quot;s/./configure (.*)--with-apxs.*apxs (.*)/1 2/&amp;quot;`&lt;br /&gt;CFGLINE=&amp;quot;${CFG##* =&amp;gt; } —prefix=/usr/local/php5 —exec-prefix=/usr/local/php5 —program-suffix=5 —enable-force-cgi-redirect —enable-discard-path”&lt;/p&gt;&lt;p&gt;./configure $CFGLINE&lt;br /&gt;make&lt;br /&gt;make install&lt;/p&gt;&lt;p&gt;cp -f php.ini-recommended /usr/local/php5/lib/php.ini&lt;/p&gt;&lt;p&gt;cp /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5&lt;br /&gt;chown root:wheel /usr/local/cpanel/cgi-sys/php5&lt;/p&gt;&lt;p&gt;echo “Action application/x-httpd-php5 &amp;quot;/cgi-sys/php5&amp;quot;” &amp;gt; /usr/local/apache/conf/php5.conf&lt;br /&gt;echo “AddType application/x-httpd-php5 .php5” &amp;gt;&amp;gt; /usr/local/apache/conf/php5.conf&lt;/p&gt;&lt;p&gt;TEST=`grep php5.conf /usr/local/apache/conf/httpd.conf`&lt;/p&gt;&lt;p&gt;if [ “$TEST” = “” ]&lt;br /&gt;then&lt;br /&gt;echo “Include /usr/local/apache/conf/php5.conf” &amp;gt;&amp;gt; /usr/local/apache/conf/httpd.conf&lt;br /&gt;echo “Your all set to restart your apache now. “&lt;br /&gt;fi&lt;/p&gt;&lt;p&gt;-------------------------------&lt;/p&gt;&lt;p&gt;You’ll need to run this code with root permissions of course, save the code as a file (e.g., “php5install.sh”, CHMOD this file to 644 so it’s executable, and then run it at the command line. If you don’t know any of these things, you shouldn’t be executing this code at all. &lt;/p&gt;&lt;p&gt;Anyway, this should set up PHP5 without interfering without your current setup. The file extension *.php5 will be associated with PHP5. &lt;/p&gt;&lt;p&gt;When the script is done, simply restart Apache. On Linux type setups, it’s as simple as “service httpd restart”. Here’s a good place to begin in terms of new stuff in PHP5&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://sniptools.com/&quot; target=&quot;_blank&quot;&gt;SnipTools&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/10_installing_php5_and_php4_together_on_unix.html</link>
      <pubDate>Thu, 15 Dec 2005 19:19:06 +0000</pubDate>   
  </item>
    <item>
   <title>cPanel Reverse DNS</title>
   <description>&lt;p&gt;After searching for help all over the net in adding PTR records to my cPanel DNS setup, I found a very easy to follow tutorial which along with some other sources, made it possible for me to get reverse DNS working with cPanel. It’s still a question I see quite a bit so I decided to create a short how-to to help others.&lt;/p&gt;&lt;p&gt;1. You must have reverse authority delegated to you from your hosting provider. Though common wisdom in forums says most providers do not delegate authority, I have found this to be untrue. I don’t recommend asking for it if you don’t feel confident you can handle the technical end of setting up BIND. &lt;br /&gt;2. You need to have a domain of course, or a few and it helps greatly to have DNS setup and working for a few days prior to attempting this.&lt;br /&gt;3. Every install of cPanel I have done to date comes with a broken BIND server. The issue is always the rndc.key issue. This is my first task for every cPanel install now to do the following fix before I add any information in cPanel WHM at all. To fix it, open /etc/rndc.conf in a text editor and at the top you should see this:&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;# Start of rndc.conf&lt;br /&gt;key &amp;quot;rndc-key&amp;quot; {&lt;br /&gt;algorithm hmac-md5;&lt;br /&gt;secret &amp;quot;XXXXXXXXXXXXXXX==&amp;quot;;&lt;br /&gt;};&lt;/p&gt;&lt;p&gt;options {&lt;br /&gt;default-key &amp;quot;rndc-key&amp;quot;;&lt;br /&gt;default-server 127.0.0.1;&lt;br /&gt;default-port 953;&lt;/p&gt;&lt;p&gt;change all the references of “rndc-key” to “rndc.key”.&lt;/p&gt;&lt;p&gt;4. Now open /etc/named.conf and at the top change the rndc-key reference to rndc.key also.&lt;br /&gt;5. in SSH type “rndc reload”&lt;br /&gt;6. in SSH type /scripts/fixndc (try it twice, some people need to but I usually get a message telling me further uses of the script are not needed).&lt;br /&gt;7. It doesn’t hurt to go into cPanel WHM and restart BIND at this point. You should get a clean restart with no connection or rndc error.&lt;/p&gt;&lt;p&gt;Now the real fun begins. There’s a lot of really good technical information to be found in the process of setting up RDNS that helps one gain an understanding of how the DNS process works as a whole.&lt;/p&gt;&lt;p&gt;The current version of BIND for Redhat and cPanel uses a database system for the zone files and named.conf entries. It’s basically a two part process. BIND looks at /etc/named.conf for a list of zone entries which tell it what domains your server is responsible for. These entries tell BIND to go look in /var/named/ for zone.db files which contain the actual DNS information such as IP Address, MX records and soon, Reverse (PTR) records. &lt;/p&gt;&lt;p&gt;Reverse DNS is just that, its REVERSE. The server performing the RDNS lookup traces your IP address backwards in order to get to your servers DNS files and pull the PTR entry.&lt;br /&gt;Part1 : Adding the reverse lookup zones&lt;/p&gt;&lt;p&gt;For sake of example, were going to use the IP range 10.1.2.1 thru 10.1.2.4. To make it easy, were going to assign PTR for the domains punk.rocks.org (10.1.2.1) and icecream.ischill.org (10.1.2.2).&lt;/p&gt;&lt;p&gt;First open /etc/named.conf in pico or nano, etc and go down to the bottom of the page. We need to add the “in-addr.arpa” entries for our IP range. Your going to reverse the IP address and leave off the last digit, so our record would be for 2.1.10 instead of 10.1.2.# . The record should llok like this:&lt;/p&gt;&lt;p&gt;};&lt;/p&gt;&lt;p&gt;&lt;br /&gt;zone &amp;quot;2.1.10.in-addr.arpa&amp;quot; IN {&lt;br /&gt;type master;&lt;br /&gt;file &amp;quot;/var/named/2.1.10.db&amp;quot;;&lt;br /&gt;allow-update { none; };&lt;br /&gt;};&lt;/p&gt;&lt;p&gt;Be sure you have that }; separating your entries. This entry tells the lookup computer that IPs starting with 10.1.2. might belong to us and to go look at the file /var/named/2.1.10.db to get specifics.&lt;/p&gt;&lt;p&gt;That’s it for named.conf. If you own other address ranges you would want to add a separate entry for each of them too and point them each to their own ip block .db file.&lt;/p&gt;&lt;p&gt;Now we need to create a 2.1.10.db file in /var/named and edit it. I prefer to make a copy of another zone.db file and edit it locally using vim. It’s a normal DNS zone file except where you would have full IP address you only put the last digit of the IP.&lt;/p&gt;&lt;p&gt;; Modified by Web Host Manager&lt;br /&gt;; Zone File for 2.1.10&lt;br /&gt;$TTL 86400&lt;br /&gt;@ 14440 IN SOA ns1.rocks.org. root.rocks.org. (&lt;br /&gt;1997022703&lt;br /&gt;28800&lt;br /&gt;14400&lt;br /&gt;3600000&lt;br /&gt;86400&lt;br /&gt;)&lt;br /&gt;14400 IN NS ns1.rocks.org.&lt;br /&gt;14400 IN NS ns2.rocks.org.&lt;/p&gt;&lt;p&gt;1 IN PTR punk.rocks.org.&lt;br /&gt;2 IN PTR icecream.ischill.org.&lt;br /&gt;3 IN PTR res.rocks.org.&lt;br /&gt;4 IN PTR res.ischill.org.&lt;/p&gt;&lt;p&gt;That’s basically it. Your telling the lookup host that ip 10.1.2.1 reverses to punk.rocks.org and that 10.1.2.2 reverses to icecream.ischill.org . In this example ips 3 and 4 aren’t being used yet so I add res to indicate reserved for future domains. You can also leave them out of the .db file but I put them in for testing. Also note the periods after the domain names, they have to be there or it will not work.&lt;br /&gt;I left the default values for TTL, refresh etc, a test on some of the online DNS diagnostic tools indicates these can be improved upon greatly.&lt;/p&gt;&lt;p&gt;Once that’s all complete go to SSH and type rndc reload. If your domains have already propagated you can use an online DNS tool to check your IPs for reverse entry. It usually works very fast for me, changes showing up instantly. A good place to use is: &lt;a href=&quot;http://www.dnsstuff.com/&quot;&gt;http://www.dnsstuff.com/&lt;/a&gt;&lt;br /&gt;You can check you local DNS server by using the dig command in SSH.&lt;/p&gt;&lt;p&gt;Commands: dig your.domain.com and dig –x 10.1.2.1 you should get back lots of useful information, what you don’t want to see is “servfail”. This indicates the DNS server responsible is not responding.&lt;/p&gt;&lt;p&gt;Credits&lt;/p&gt;&lt;p&gt;Brian&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://Neoshell.net&quot;&gt;http://Neoshell.net&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/9_cpanel_reverse_dns.html</link>
      <pubDate>Thu, 15 Dec 2005 19:14:18 +0000</pubDate>   
  </item>
  </rdf:RDF>
