<?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>Mount /tmp with noexec</title>
   <description>By default, RS servers come with everything lumped in / and a small amount partitioned for /boot and some for swap. With this current setup, you have no room for making more partitions unless you have a second hard-drive. &lt;br /&gt;&lt;br /&gt;Recently, I found out it would be worthwhile to give /tmp it&#039;s own partition and mount it using noexec- This would protect your system from MANY local and remote exploits of rootkits being run from your /tmp folder. &lt;br /&gt;&lt;br /&gt;First off, I want to thank everyone for their help from this thread: &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://forum.rackshack.net/showthread.php?s=&amp;amp;threadid=27470&quot; target=&quot;_blank&quot;&gt;http://forum.rackshack.net/showthread.php?...&amp;amp;threadid=27470&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;I am simply compiling their advice into a how-to...&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;What we are doing it creating a file that we will use to mount at /tmp. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;cd /dev&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Create 100MB file for our /tmp partition. If you need more space, make count size larger. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;dd if=/dev/zero of=tmpMnt bs=1024 count=100000&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Make an extended filesystem for our tmpMnt file &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;mke2fs /dev/tmpMnt&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Backup your /tmp dir- I had mysql.sock file that I needed to recreate the symbolic link for. Other programs may use it to store cache files or whatever. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;cd /&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;cp -R /tmp /tmp_backup&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Mount the new /tmp filesystem with noexec &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;chmod 0777 /tmp&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Copy everything back to new /tmp and remove backup &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;cp -R /tmp_backup/* /tmp/&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;rm -rf /tmp_backup&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now we need to add this to fstab so it mounts automatically on reboots. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;pico -w /etc/fstab&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You should see something like this: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;/dev/hda3               /                       ext3    defaults,usrquota        1 1&lt;br /&gt;&lt;br /&gt;/dev/hda1               /boot                   ext3    defaults        1 2&lt;br /&gt;&lt;br /&gt;none                    /dev/pts                devpts  gid=5,mode=620  0 0&lt;br /&gt;&lt;br /&gt;none                    /proc                   proc    defaults        0 0&lt;br /&gt;&lt;br /&gt;none                    /dev/shm                tmpfs   defaults        0 0&lt;br /&gt;&lt;br /&gt;/dev/hda2               swap                    swap    defaults        0 0&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;At the bottom add &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;/dev/tmpMnt             /tmp                    ext2    loop,noexec,nosuid,rw  0 0&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;(Each space is a tab) &lt;br /&gt;&lt;br /&gt;Ctrl + X and Y &lt;br /&gt;&lt;br /&gt;Your done- /tmp is now mounted as noexec. You can sleep a little bit safer tonight. I created a hello world c++ and compiled it then moved it to /tmp. Upon trying to run it (even chmod +x&#039;ed), it gives the following error: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;bash: ./a.out: Permission denied&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Yay! /tmp no longer has execute permissions &lt;/p&gt;&lt;p&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=27771&quot;&gt;http://forums.theplanet.com/index.php?showtopic=27771&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/55_mount_tmp_with_noexec.html</link>
      <pubDate>Thu, 04 Sep 2008 15:02:44 +0000</pubDate>   
  </item>
    <item>
   <title>Disable Majordomo for all sites</title>
   <description>Watching /var/log/maillog, i noticed a lot of spam sent out from my server through majordomo accounts so i chose to disable it in all my sites.&lt;br /&gt;&lt;br /&gt;I did a small HOWTO of how to disable all at the same time. This HOWTO is for Linux/Ensim.&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;HOWTO Begins:&lt;br /&gt;&lt;br /&gt;Note: All command must be Logged as root;&lt;br /&gt;&lt;br /&gt;1. First of all we have to disable the email alias in all sites.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;ls /home/virtual/ | grep site | while read x; do echo $x; grep -v &amp;quot;majordomo&amp;quot; /home/virtual/$x/fst/etc/aliases &amp;gt; aliases.tmp; mv -f aliases.tmp /home/virtual/$x/fst/etc/aliases; chroot /home/virtual/$x/fst/ newaliases; done;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2. Now we remove user majordomo from site /etc/passwd.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;ls /home/virtual/ | grep site | while read x; do echo $x; grep -v &amp;quot;majordomo&amp;quot; /home/virtual/$x/fst/etc/passwd &amp;gt; passwd.tmp; mv -f passwd.tmp /home/virtual/$x/fst/etc/passwd; done;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3. And now we remove majordomo from site /etc/group &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;ls /home/virtual/ | grep site | while read x; do echo $x; grep -v &amp;quot;majordomo&amp;quot; /home/virtual/$x/fst/etc/group &amp;gt; group.tmp; mv -f group.tmp /home/virtual/$x/fst/etc/group; done;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;4. Last restart sendmail, I don&#039;t know if this is really necessary, but lets do it anyway. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;service sendmail restart&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=90535&quot;&gt;http://forums.theplanet.com/index.php?showtopic=90535&lt;/a&gt;&lt;/div&gt;</description>
   <link>http://www.booservers.com/archivo/53_disable_majordomo_for_all_sites.html</link>
      <pubDate>Thu, 04 Sep 2008 14:59:41 +0000</pubDate>   
  </item>
    <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>Redhat ROD/Remote Console How To</title>
   <description>Redhat with Grub: &lt;br /&gt;&lt;br /&gt;1. Edit grub.conf with your favorite editor so you can manipulate grub and the boot process via remote console: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;serial --unit=0 --speed=9600&lt;br /&gt;&lt;br /&gt;terminal --timeout=10 serial console &lt;br /&gt;&lt;br /&gt;&lt;/div&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;Example: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;# grub.conf generated by anaconda&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Note that you do not have to rerun grub after making changes to this file&lt;br /&gt;&lt;br /&gt;# NOTICE:  You have a /boot partition.  This means that&lt;br /&gt;&lt;br /&gt;#          all kernel and initrd paths are relative to /boot/, eg.&lt;br /&gt;&lt;br /&gt;#          root (hd0,0)&lt;br /&gt;&lt;br /&gt;#          kernel /vmlinuz-version ro root=/dev/hda3&lt;br /&gt;&lt;br /&gt;#          initrd /initrd-version.img&lt;br /&gt;&lt;br /&gt;#boot=/dev/hda&lt;br /&gt;&lt;br /&gt;serial --unit=0 --speed=9600&lt;br /&gt;&lt;br /&gt;terminal --timeout=10 serial console &lt;br /&gt;&lt;br /&gt;default=0&lt;br /&gt;&lt;br /&gt;timeout=3&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;You will also need to add options to the kernel line if you want to see the kernel booting and if you need to do file system maintenance via the remote console (IE it is stuck at fsck errors): &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;console=tty0 console=ttyS0,9600 &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Example: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;title Red Hat Enterprise Linux ES (2.4.21-27.EL)&lt;br /&gt;&lt;br /&gt;       root (hd0,0)&lt;br /&gt;&lt;br /&gt;       kernel (hd0,0)/vmlinuz-2.4.21-27.EL root=/dev/hda3 console=tty0 console=ttyS0,9600 &lt;br /&gt;&lt;br /&gt;       initrd (hd0,0)/initrd-2.4.21-27.EL.img&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;NOTE&lt;/u&gt;&lt;/i&gt; Your kernel line may differ such as Kernel version and root= device. DO NOT CHANGE THESE, simply append the line with console options.&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;2. If you want shell console access after the boot process you will need to do the following: &lt;br /&gt;&lt;br /&gt;Add the following to the bottom of /etc/inittab: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;co:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt100&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Add the following to the bottom of /etc/securetty: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;ttyS0&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Restart getty to get immediate access to Remote Console: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;telinit q&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=77085&quot;&gt;http://forums.theplanet.com/index.php?showtopic=77085&lt;/a&gt;&lt;/div&gt;</description>
   <link>http://www.booservers.com/archivo/51_redhat_rodremote_console_how_to.html</link>
      <pubDate>Thu, 04 Sep 2008 14:56:25 +0000</pubDate>   
  </item>
    <item>
   <title>Debian ROD/Remote Console How To</title>
   <description>Add the following to /etc/lilo.conf: &lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;append = &amp;quot;console=ttyS0,9600n8&amp;quot;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Run Lilo for the changes to take affect. &lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;lilo&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then add the following to /etc/securetty: &lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;ttyS0&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;edit /etc/inittab - Uncomment the line: &lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100&lt;/div&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;Reboot &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;shutdown -r now&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For those who just like to copy and paste: &lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;echo &#039;append = &amp;quot;console=ttyS0,9600n8&amp;quot;&#039; &amp;gt;&amp;gt; /etc/lilo.conf&lt;br /&gt;&lt;br /&gt;lilo&lt;br /&gt;&lt;br /&gt;echo &amp;quot;ttyS0&amp;quot; &amp;gt;&amp;gt; /etc/securetty&lt;br /&gt;&lt;br /&gt;echo &amp;quot;T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100&amp;quot; &amp;gt;&amp;gt; /etc/inittab&lt;br /&gt;&lt;br /&gt;reboot&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=78235&quot;&gt;http://forums.theplanet.com/index.php?showtopic=78235&lt;/a&gt;&lt;/div&gt;</description>
   <link>http://www.booservers.com/archivo/50_debian_rodremote_console_how_to.html</link>
      <pubDate>Thu, 04 Sep 2008 14:55:27 +0000</pubDate>   
  </item>
    <item>
   <title>Windows ROD/Remote Console How To</title>
   <description>&lt;div class=&quot;postcolor&quot; id=&quot;post-492175&quot;&gt;Open a command prompt or the run menu and run the following: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;bootcfg.exe /ems ON /port COM1 /baud 9600 /ID 1&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;To see if this was performed correctly open the boot.ini file and confirm that the following was added: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;redirect=COM1&lt;br /&gt;&lt;br /&gt;redirectbaudrate=9600&lt;br /&gt;&lt;br /&gt;/redirect&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After the server has been rebooted look for the Special Administration Console Helper process to be started. This has to be running for the EMS to be enabled. &lt;/div&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;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=77089&quot;&gt;http://forums.theplanet.com/index.php?showtopic=77089&lt;/a&gt;</description>
   <link>http://www.booservers.com/archivo/49_windows_rodremote_console_how_to.html</link>
      <pubDate>Thu, 04 Sep 2008 14:54:35 +0000</pubDate>   
  </item>
    <item>
   <title>FBSD ROD/Remote Console How To</title>
   <description>Dual console for boot and kernel: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;echo -Dh &amp;gt;&amp;gt; /boot.config&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Add the following to /etc/ttys for shell access: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;ttyd0   &amp;quot;/usr/libexec/getty std.9600&amp;quot;   cons25  on secure&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Note that this will require a reboot to function properly. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codetop&quot;&gt;CODE&lt;/div&gt;&lt;div class=&quot;codemain&quot;&gt;shutdown –r now&lt;/div&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;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=77087&quot;&gt;http://forums.theplanet.com/index.php?showtopic=77087&lt;/a&gt;</description>
   <link>http://www.booservers.com/archivo/48_fbsd_rodremote_console_how_to.html</link>
      <pubDate>Thu, 04 Sep 2008 14:53:45 +0000</pubDate>   
  </item>
    <item>
   <title>PRM (Process Resource Monitor)</title>
   <description>&lt;strong&gt;Introduction:&lt;/strong&gt; &lt;br /&gt;PRM monitors the process table on a given system and matches process id&#039;s with set resource limits in the config file or per-process based rules. Process id&#039;s that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more... &lt;br /&gt;&lt;br /&gt;&lt;b&gt;How it works?:&lt;/b&gt; &lt;br /&gt;PRM works on the basis that once a process id is found matching resource limits; there is a corresponding trigger and wait value. The trigger value increments upwards from zero (0) to the defined value, pausing the duration of seconds defined as wait value. There after the status of the flagged pid is checked again, if still above or equal to resource limits the trigger/wait cycle begins again till the max trigger value is reached. When this trigger value is reached the given process is logged/killed. &lt;br /&gt;&lt;br /&gt;This all together has the effect that applications with short burst resource spikes (e.g: apache, mysql etc..) are not killed; but rather on applications with prolonged resource consumption. Using the rule system, you can define different wait/trigger/resource values for any application.&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;strong&gt;Installation:&lt;/strong&gt; &lt;br /&gt;First we must fetch the package: &lt;br /&gt;# wget &lt;a href=&quot;http://www.rfxnetworks.com/downloads/prm-current.tar.gz&quot; target=&quot;_blank&quot;&gt;http://www.rfxnetworks.com/downloads/prm-c...-current.tar.gz&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;And extract it: &lt;br /&gt;# tar xvfz prm-current.tar.gz &lt;br /&gt;&lt;br /&gt;The current version of prm as of this writing is 0.3, so lets cd to the 0.3 extracted path: &lt;br /&gt;# cd prm-0.3/ &lt;br /&gt;&lt;br /&gt;And finally run the enclosed install.sh script: &lt;br /&gt;# ./install.sh &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Configuration:&lt;/b&gt; &lt;br /&gt;The prm installation is located at &#039;/usr/local/prm&#039;, and the configuration file is labeled &#039;conf.prm&#039;. &lt;br /&gt;&lt;br /&gt;Open the &#039;/usr/local/prm/conf.prm&#039; file with your preferred editor. There is an array of options in this file but we will only be focusing on the main variables. &lt;br /&gt;&lt;br /&gt;Lets skip down to the user e-mail alert&#039;s section and set the USR_ALERT value to &#039;1&#039;; enabling alerts. &lt;br /&gt;&lt;b&gt;# enable user e-mail alerts [0=disabled,1=enabled] &lt;br /&gt;USR_ALERT=&amp;quot;1&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;And configure our e-mail addresses for alerts: &lt;br /&gt;&lt;b&gt;# e-mail address for alerts &lt;br /&gt;USR_ADDR=&amp;quot;root, &lt;a href=&quot;mailto:you@domain.com&quot;&gt;you@domain.com&lt;/a&gt;&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Check the 5,10, or 15 minute load average; relative to the later option below for min. load level. &lt;br /&gt;&lt;b&gt;# check 5,10,15 minute load average. [1,2,3 respective of 5,10,15] &lt;br /&gt;LC=&amp;quot;1&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;PRM optionally has a required load average for running. If the load is not equal to or greater than this value; PRM will not run. Setting this value to zero will force the script to always run but this should not be needed. &lt;br /&gt;&lt;b&gt;# min load level required to run (decimal values unsupported) &lt;br /&gt;MIN_LOAD=&amp;quot;1&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;This is the introduction described wait value, used for pauses between trigger increments. The value of wait multiplied by the value of kill_trig equal the duration of time before a process is killed (10x3=30seconds). &lt;br /&gt;&lt;b&gt;# seconds to wait before rechecking a flagged pid (pid&#039;s noted resource &lt;br /&gt;# intensive but not yet killed). &lt;br /&gt;WAIT=&amp;quot;10&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;The trigger limit before processes are killed, described in detail in the above &#039;wait&#039; description and introduction. &lt;br /&gt;&lt;b&gt;# counter limit that a process must reach prior to kill. The counter value &lt;br /&gt;# increases for a process flagged resource intensive on rechecks. &lt;br /&gt;KILL_TRIG=&amp;quot;3&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;The max percentage of CPU a process should be allowed to use before PRM flags it for killing. &lt;br /&gt;&lt;b&gt;# Max CPU usage readout for a process - % of all cpu resources (decimal values unsupported) &lt;br /&gt;MAXCPU=&amp;quot;35&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;The max percentage of MEM a process should be allowed to use before PRM flags it for killing. &lt;br /&gt;&lt;b&gt;# Max MEM usage readout for a process - % of system total memory (decimal values unsupported) &lt;br /&gt;MAXMEM=&amp;quot;15&amp;quot;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;That is it; you should tweak the MAXCPU/MAXMEM limits to your desired needs but the defaults should be fine for most. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Usage:&lt;/b&gt; &lt;br /&gt;The executable program resides in &#039;/usr/local/prm/prm&#039; and &#039;/usr/local/sbin/prm&#039;. The prm executable can receive one of two arguments: &lt;br /&gt;&lt;br /&gt;-s Standard run &lt;br /&gt;-q Quiet run &lt;br /&gt;&lt;br /&gt;The log path for prm is &#039;/usr/local/prm/prm_log&#039;, as well pid specific logs are stored in &#039;/usr/local/prm/killed/&#039;. &lt;br /&gt;&lt;br /&gt;A default cronjob for PRM is installed to &#039;/etc/cron.d/prm&#039;, and is configured to run once every 5 minutes. &lt;br /&gt;&lt;br /&gt;There is a provided ignore file, to ignore processes based on string rules. The ignore file is located at &#039;/usr/local/prm/ignore&#039;. This file supports line separated ignore strings. As a default the strings &#039;root, named and postgre&#039; are ignored by PRM; this script was not intended to monitor root processes but rather user land tasks. It could easily watch root processes by removing the given line in the ignore file but this is strongly discouraged. &lt;/p&gt;&lt;p&gt;Source: &lt;a href=&quot;http://forums.theplanet.com/index.php?showtopic=25376&quot;&gt;http://forums.theplanet.com/index.php?showtopic=25376&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/45_prm_process_resource_monitor.html</link>
      <pubDate>Thu, 04 Sep 2008 14:43:36 +0000</pubDate>   
  </item>
    <item>
   <title>Install Mailscanner MRTG </title>
   <description>&lt;p&gt;This will install Mailscanner MRTG on your system. I have tested it on Ensim 3.1.10 and Ensim 3.5.17. Others have also done this on CPanel, but make sure you make the change noted... &lt;/p&gt;&lt;p&gt;Regular, I am not responsible for your box/you are doing this at YOUR OWN RISK... It should not screw anything up, but you are ultimately responsible if it does. I will help out as much as I can, but I am not a genius.&lt;/p&gt;&lt;p&gt;PREREQUISITES&lt;br /&gt;1) MRTG *MUST* be installed (HOW-TO)&lt;br /&gt;2) Mailscanner *MUST* be installed (I use gpans MS/SA/CM HOW-TO, but there is a MS Only HOW-TO too)&lt;/p&gt;&lt;p&gt;INSTRUCTIONS&lt;br /&gt;cd ~&lt;br /&gt;wget &lt;a href=&quot;http://umn.dl.sourceforge.net/sourc...rtg-0.05.tar.gz&quot;&gt;http://umn.dl.sourceforge.net/sourc...rtg-0.05.tar.gz&lt;/a&gt;&lt;br /&gt;tar -xzvf mailscanner-mrtg-0.05.tar.gz&lt;br /&gt;cd mailscanner-mrtg-0.05&lt;br /&gt;cp mailscanner-mrtg.conf /etc/MailScanner/&lt;br /&gt;cp mailscanner-mrtg.cfg /etc/mrtg/&lt;br /&gt;cp mailscanner-mrtg /usr/sbin/&lt;br /&gt;cp mailscanner-mrtg.include /etc/httpd/conf/&lt;br /&gt;cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk&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;For CPanel Users&lt;br /&gt;mkdir /usr/local/apache/htdocs/mailscanner-mrtg&lt;br /&gt;cp web/* /usr/local/apache/htdocs/mailscanner-mrtg/&lt;br /&gt;pico -w /etc/MailScanner/mailscanner-mrtg.conf&lt;br /&gt;Find the two lines that start with:&lt;br /&gt;Incoming Queue Dir =&lt;br /&gt;Outgoing Queue Dir =&lt;br /&gt;and change it to look like this:&lt;br /&gt;Incoming Queue Dir = /var/spool/exim_incoming/input/&lt;br /&gt;Outgoing Queue Dir = /var/spool/exim/input/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;For Ensim/Red Hat/Fedora Users&lt;br /&gt;mkdir /var/www/html/mailscanner-mrtg&lt;br /&gt;cp web/* /var/www/html/mailscanner-mrtg/&lt;/p&gt;&lt;p /&gt;&lt;p&gt;Continued... FOR ALL USERS&lt;br /&gt;pico -w /etc/httpd/conf/httpd.conf&lt;br /&gt;Add this line to the very bottom&lt;br /&gt;Include /etc/httpd/conf/mailscanner-mrtg.include&lt;br /&gt;Ctrl + X to quit, y to save&lt;/p&gt;&lt;p&gt;Run this command 3 times. Ignore the errors and wait, it takes a few seconds each time.&lt;br /&gt;mrtg /etc/mrtg/mailscanner-mrtg.cfg&lt;br /&gt;-- IGNORE THE ERRORS (They are normal) --&lt;/p&gt;&lt;p&gt;service httpd restart&lt;br /&gt;If this fails, check that you copied the file mailscanner-mrtg.include to the /etc/httpd/conf folder. Also recheck that you added the Include line above. If all else fails comment out the Include line and post your errors. DO NOT CONTINUE until httpd restarts successfully.&lt;/p&gt;&lt;p&gt;pico -w /etc/crontab&lt;br /&gt;Add this line to the bottom of the file&lt;br /&gt;0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mailscanner-mrtg.cfg &amp;gt;&amp;gt; /dev/null&lt;br /&gt;Ctrl + X to quit, y to save&lt;/p&gt;&lt;p&gt;Go to &lt;a href=&quot;http://hostname.domain.com/mailscanner-mrtg&quot;&gt;http://hostname.domain.com/mailscanner-mrtg&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/42_install_mailscanner_mrtg_.html</link>
      <pubDate>Thu, 15 Dec 2005 21:55:06 +0000</pubDate>   
  </item>
    <item>
   <title>Chkrootkit</title>
   <description>&lt;p&gt;Installing CHKROOTKIT &lt;/p&gt;&lt;p&gt;(Version 0.42b Sep 20 2003)&lt;/p&gt;&lt;p&gt;SSH as admin to your server. DO NOT use telnet&lt;/p&gt;&lt;p&gt;#Change to root&lt;br /&gt;su -&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;#Type the following&lt;br /&gt;wget &lt;a href=&quot;ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz&quot;&gt;ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;p&gt;#Unpack the tarball using the command &lt;br /&gt;tar xvzf chkrootkit.tar.gz &lt;/p&gt;&lt;p&gt;#Change to the directory it created&lt;br /&gt;cd chkrootkit*&lt;/p&gt;&lt;p&gt;#Compile by typing&lt;br /&gt;make sense &lt;/p&gt;&lt;p&gt;#To use chkrootkit, just type the command&lt;br /&gt;./chkrootkit &lt;/p&gt;&lt;p&gt;#Everything it outputs should be &#039;not found&#039; or &#039;not infected&#039;... &lt;/p&gt;&lt;p&gt;#Now, &lt;br /&gt;cd .. &lt;br /&gt;#Then remove the .gz file&lt;br /&gt;rm chkrootkit.tar.gz &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/38_chkrootkit.html</link>
      <pubDate>Thu, 15 Dec 2005 21:43:05 +0000</pubDate>   
  </item>
  </rdf:RDF>
