<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dream Creative Design</title>
	<atom:link href="http://dreamcreative.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://dreamcreative.net</link>
	<description>Web Design, Web Hosting, Domain Registration</description>
	<lastBuildDate>Thu, 03 Nov 2011 02:57:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To Create A Dummy File In Linux</title>
		<link>http://dreamcreative.net/2011/05/how-to-create-a-dummy-file-in-linux/</link>
		<comments>http://dreamcreative.net/2011/05/how-to-create-a-dummy-file-in-linux/#comments</comments>
		<pubDate>Thu, 19 May 2011 01:54:37 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[Web Hosting Tips]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=391</guid>
		<description><![CDATA[If  you ever find a need to test upload/download speeds to and from your web server, creating a dummy file of a fixed size can be a very quick and handy way to do this. Thankfully, if  you are running a Linux server, the dd command(convert and copy a file) can be used for exactly [...]]]></description>
			<content:encoded><![CDATA[<p>If  you ever find a need to test upload/download speeds to and from your web server, creating a dummy file of a fixed size can be a very quick and handy way to do this. Thankfully, if  you are running a Linux server, the dd command(convert and copy a file) can be used for exactly this purpose.</p>
<p>To create a dummy file of 50MB, we first need to convert the file size into bytes (1024 x 1024 x 50 = 52428800) and then enter the following at the command prompt:</p>
<p><em><span style="color: #666666;">$ dd if=/dev/zero of=yourfilename.test bs=52428800 count=1</span></em></p>
<p><span style="color: #666666;">*change &#8220;yourfilename&#8221; to whatever you wish to call the file.</span></p>
<p>The file will then be created within the folder that you are currently in and the following output will be displayed upon successful creation(time and write speed details will obviously vary slightly):</p>
<p><em><span style="color: #666666;">1+0 records in</span></em><br />
<em><span style="color: #666666;">1+0 records out</span></em><br />
<em><span style="color: #666666;">5242880 bytes (50 MB) copied, 0.312 s, 33.6 MB/s</span></em></p>
<p>If you want to confirm the file&#8217;s creation and size details, just enter the following:</p>
<p><em><span style="color: #666666;">$ ls -lrth yourfilename.test</span></em></p>
<p>and then you should get an output that looks similar to below:</p>
<p><span style="color: #666666;"><em>-rw-r&#8211;r&#8211; 1 root root 50M Jan 1 00:00 yourfilename.test</em></span></p>
<p>A breakdown of the command elements can be found <a href="http://ss64.com/bash/dd.html" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/how-to-create-a-dummy-file-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel Server Hardening Security Tips</title>
		<link>http://dreamcreative.net/2011/05/cpanel-server-hardening-security-tips/</link>
		<comments>http://dreamcreative.net/2011/05/cpanel-server-hardening-security-tips/#comments</comments>
		<pubDate>Mon, 16 May 2011 04:54:52 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[ConfigServer]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[CSF]]></category>
		<category><![CDATA[Firewalls]]></category>
		<category><![CDATA[Passwords]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Suhosin]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=378</guid>
		<description><![CDATA[Securing your cPanel hosting server and the core applications that run your deliver your websites to the web is an absolute no brainer in todays ruthless world. Below are just some of the good practices you can follow to help minimise the potential for you server getting hacked or compromised. 1) Use Super Strong Passwords This [...]]]></description>
			<content:encoded><![CDATA[<p>Securing your cPanel hosting server and the core applications that run your deliver your websites to the web is an absolute no brainer in todays ruthless world. Below are just some of the good practices you can follow to help minimise the potential for you server getting hacked or compromised.</p>
<h1>1) Use Super Strong Passwords</h1>
<p>This seems pretty obvious but we are constantly surprised by just how many people still don&#8217;t get the strong password message, even when managing hosting servers that are fully accessible from the web.</p>
<p>Using strong passwords is the first level of defence when it comes to protecting your information, and if you&#8217;re not willing to take notice then you should give up now and maybe become a gardener or something. A strong password contains at least 8 characters(the more the better) in a combination of upper and lowercase letters, plus numbers, plus symbols.</p>
<p><a href="http://www.businessweek.com/magazine/content/11_06/b4214036460585.htm" target="_blank">Bloomberg Businessweek</a> recently posted this information on their website with regards to password strength and how long a password takes to crack:</p>
<p><strong>Most-used passwords:</strong> 123456, password, 12345678, qwerty, abc123</p>
<p><strong>Time it takes a hacker&#8217;s computer to randomly guess your password:</strong></p>
<table style="width: 100%;" border="0" cellpadding="5px">
<tbody>
<tr>
<td><strong>Password Length:</strong></td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
<tr>
<td><strong>Lowercase</strong></td>
<td>10 minutes</td>
<td>4 hours</td>
<td>4 days</td>
<td>4 months</td>
</tr>
<tr>
<td><strong>+ Uppercase</strong></td>
<td>10 hours</td>
<td>23 days</td>
<td>3 years</td>
<td>178 years</td>
</tr>
<tr>
<td><strong>+ Nos. &amp; Symbols</strong></td>
<td>18 days</td>
<td>4 years</td>
<td>463 years</td>
<td>44,530 years</td>
</tr>
</tbody>
</table>
<p><strong>Average amount it costs a business to field a phone call requesting a password reset:</strong> $10<br />
<strong>Proportion of help desk calls that are password-related:</strong> 30%<br />
<strong>Users who choose a common word or simple key combination for a password:</strong> 50%</p>
<p>Data: Gartner, Forrester, Duo Security, Imperva, LastBit Software</p>
<p><span style="font-size: 26px; font-weight: bold;">2) Install ModSecurity and Suhosin</span></p>
<p>Installing ModSecurity and Suhosin is a must if you are serious about protecting your hosted websites code from exploitation. These two applications essentially provide an application level firewall that prevents both known and unknown vulnerabilities in a website&#8217;s code from being executed, therefore stopping a potential hack dead in it&#8217;s tracks. This of course does not mean that websites can get away with not updating themselves, but certainly helps along the way.</p>
<p>Both ModSecurity and Suhosin can be easily installed onto your cPanel server using the built-in EasyApache application as part of your initial server setup. Once installed, you should then consider <a title="installing Gotroot's ModSecurity rules" href="http://dreamcreative.net/2011/05/install-gotroot-modsecurity-rules-on-a-cpanel-server/">installing Gotroot&#8217;s ModSecurity rules</a>, which provide a significantly enhanced level or protection while minimising false positives. You can also use Suhosin to <a title="disable the use of custom php.ini files" href="http://dreamcreative.net/2011/05/disable-use-of-custom-php-ini-files-on-cpanel-server/">disable the use of custom php.in files</a>, which prevents clients making ill advised and insecure adjustments to the php settings for their account.</p>
<h1>3) Install A More Advanced Firewall</h1>
<p>While Linux&#8217;s included ip tables is a very effective network security tool, the management and configuring of it can be made significantly easier by installing an application called <a title="ConfigServer Security&amp;Firewall" href="http://www.configserver.com/cp/csf.html" target="_blank">ConfigServer Security&amp;Firewall</a>(CSF), which has a plugin management interface for cPanel. Not only does CSF provide much greater control over how your server handles various intrusion attempts, it also comes with a full security assessment tool that will guide you through various security hardening steps.</p>
<p><a title="Install ConfigServer Apps On A cPanel/WHM Server" href="http://dreamcreative.net/2011/05/install-configserver-apps-on-a-cpanel-whm-server/" target="_blank">Installing ConfigServer applications</a> is pretty simple and can be done in only a few steps. They also offer a few other free applications, such as ModSecurity Control, which can make the day to day management of your security setup much easier.</p>
<h1>4) Disable SSH Password Login</h1>
<p>Using encrypted SSH keys and disabling SSH password login removes another possible &#8220;in&#8221; for the wannabe hacker. Once this is configured, only people that have an authorised SSH key will be able to login to the server via SSH. Obviously this then means you need to be very careful of where and how you keep your SSH keys to ensure they are safe from data theives.</p>
<h1>5) Changing The Default SSH Port</h1>
<p>Now that you&#8217;ve disabled SSH password logins, the next thing to do to improve your security is move SSH off the default port which is TCP 22. You can choose whichever port you like, however you need to make sure that no other service is using that port to avoid any conflicts.</p>
<p>To change this on a cPanel server, just open <span style="color: #666666;"><em>/etc/ssh/sshd_config</em></span> and change the &#8220;Port&#8221; value to the port you wish to use. Make sure there is no # in front of that setting, then save the file and restart the SSH service. <strong>IMPORTANT</strong>: Make sure you have opened the TCP Port in your firewall.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/cpanel-server-hardening-security-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htaccess File Examples</title>
		<link>http://dreamcreative.net/2011/05/htaccess-file-examples/</link>
		<comments>http://dreamcreative.net/2011/05/htaccess-file-examples/#comments</comments>
		<pubDate>Mon, 16 May 2011 02:05:06 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web Design Tips]]></category>
		<category><![CDATA[Web Hosting Tips]]></category>
		<category><![CDATA[domain names]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=374</guid>
		<description><![CDATA[The .htaccess file is an integral part of the Linux web hosting environment and is used for a whole range of functions from creating SEO urls for your site, to redirecting people to moved pages and blocking/allowing specific ip addresses. Below are some examples of basic commands that can be added to your .htaccess file [...]]]></description>
			<content:encoded><![CDATA[<p>The .htaccess file is an integral part of the Linux web hosting environment and is used for a whole range of functions from creating SEO urls for your site, to redirecting people to moved pages and blocking/allowing specific ip addresses. Below are some examples of basic commands that can be added to your .htaccess file for various functions.</p>
<h1>Enable Or Disable Directory Listings</h1>
<p>Allowing directory listings is not advised unless you specifically wish people to download files from your web hosting server. to block(-) or allow(+) directory listings, use one of the commands below:</p>
<p><em><span style="color: #666666;">Options -Indexes</span></em><br />
<em><span style="color: #666666;"> Options +Indexes</span></em></p>
<h1>Redirect Parked Domains To Your Main Domain</h1>
<p>When you have multiple domains that you wish to use for your website, most web hosting services will allow you to &#8220;park&#8221; these domains on your main hosting, which basically means that you can use these extra domains as a domain alias.</p>
<p>However, it has long been debated that having the same content across multiple domain names can negatively affect the ranking of your site in search engines such as Google and Bing. Therefore, if you have multiple domains you wish to register and use with your site, the most sensible option is to choose one of the domains as your primary domain and then redirect all other domains to that primary domain. This can include forcing people to the non www version of your domain, which ultimately will result in all search engines returning results for only one domain for your content.</p>
<p>To redirect your parked domains to your main domain, add something along the lines of the following example to your .htaccess files:</p>
<p><span style="color: #666666;"><em>RewriteEngine On</em></span><br />
<span style="color: #666666;"><em> RewriteBase /</em></span><br />
<span style="color: #666666;"><em> RewriteCond %{HTTP_HOST} ^www.parkeddomain.com</em></span><br />
<span style="color: #666666;"><em> RewriteRule ^(.*)$ http://www.maindomain.com/$1 [R=301,L]</em></span></p>
<p>For multiple domains and to force remove the www&#8217;s, use [OR] with and without the www.</p>
<p><span style="color: #666666;"><em>RewriteEngine On</em></span><br />
<span style="color: #666666;"><em> RewriteCond %{HTTP_HOST} ^www.parkeddomain1.com$ [OR]</em></span><br />
<span style="color: #666666;"><em> RewriteCond %{HTTP_HOST} ^parkeddomain1.com$ [OR]</em></span><br />
<span style="color: #666666;"><em> RewriteCond %{HTTP_HOST} ^www.parkeddomain2.com$ [OR]</em></span><br />
<span style="color: #666666;"><em> RewriteCond %{HTTP_HOST} ^parkeddomain2.com$</em></span><br />
<span style="color: #666666;"><em> RewriteRule ^(.*)$ http://maindomain.com/$1 [R=301,L]</em></span></p>
<h1>Redirect Your Domain To A Subfolder</h1>
<p>Redirecting to a subfolder can be a very handy trick, particularly if you wish to use one of your parked domains to show different content from your main domain without needing a separate web hosting account. However, you do need to bear in mind that if you wish to use SEO urls on these site, this redirection may conflict with the code required for your SEO url functionality, so it is best used on static HTML based sites and not dynamic sites such as WordPress or Joomla.</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^(www.)?example.com$ [NC]<br />
RewriteCond %{REQUEST_URI} !^/subfolder/<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.*)$ /subfolder/$1<br />
RewriteCond %{HTTP_HOST} ^(www.)?example.com$ [NC]<br />
RewriteRule ^(/)?$ subfolder/index.html [L]</p>
<h1>Use A Custom Home Page</h1>
<p>Using a custom home page simply means that you are able to define the exact filename your website&#8217;s homepage will use.</p>
<p>redirect 301 /index.html http://www.yourdomain.com/home.html</p>
<h1>Using Custom Error Pages</h1>
<p>Using your own custom error pages allows you to create more attract error pages that can contain details instructions on what the visitor should do if they end up on one of these error pages. You can use a custom error page for any error, as long as you know its number (e.g. 404 for page not found). Just add the following to your .htaccess file:</p>
<p><strong>ErrorDocument errornumber /file.html</strong></p>
<p><strong></strong>For example, to redirect a 404 &#8220;Page Not Found&#8221; error to a custom 404.html in your root directory, you would use the entry below:</p>
<p><strong>ErrorDocument 404 /404.html</strong><strong> </strong></p>
<p><strong></strong>If the custom error page is located in a subdirectory, just add the subdirectory path as follows:</p>
<p><strong>ErrorDocument 404/subdirectory/404.html</strong></p>
<p><strong></strong>These are some of the most common errors:</p>
<p><strong>401 &#8211; Authorization Required</strong><br />
<strong>400 &#8211; Bad request</strong><br />
<strong>403 &#8211; Forbidden</strong><br />
<strong>500 &#8211; Internal Server Error</strong><br />
<strong>404 &#8211; Page Not Found</strong></p>
<p><span style="font-size: 26px; font-weight: bold;">Restrict Directory/Site Access by IP Address</span></p>
<p>Restricting directory access or website access to specific ip addresses can be a very effective way to protect sensitive directories on your website(e.g. administration sections). Any directory in your public_html folder can be protected in this way. If a visitor to your site attempts to browse to a protected directory from a an IP Address that is not specified, they will simply get served a 403 Forbidden error.</p>
<p>In the directory you wish to protect, open/create your .htaccess file, and then add the following code to it, replacing 100.100.100.100 in the example with the static IP address you wish to allow:</p>
<p><strong>Order Deny,Allow</strong><br />
<strong>Deny from all</strong><br />
<strong>Allow from 100.100.100.100</strong></p>
<p>Optional: You can enter partial IP Addresses, <strong>e.g. 100.100.100</strong>, which will allow all end IP addresses in that ip range.<br />
Optional: You can add multiple addresses by separating them with comma&#8217;s, e.g. <strong>100.100.100.101, 100.100.100.102</strong></p>
<p>NOTE: some web hosting environments limit the folder depth that the server will allow .htaccess to operate from so you may need to check with your provide if this is the case on their servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/htaccess-file-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ImageMagick On A cPanel Server</title>
		<link>http://dreamcreative.net/2011/05/install-imagemagick-on-a-cpanel-server/</link>
		<comments>http://dreamcreative.net/2011/05/install-imagemagick-on-a-cpanel-server/#comments</comments>
		<pubDate>Thu, 12 May 2011 01:13:53 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=303</guid>
		<description><![CDATA[ImageMagick® is a popular application used on many web hosting servers(and standard pc&#8217;s) to create, edit, compose, or convert bitmap images. Many image plugins for web applications such Joomla, WordPress, Drupal, Magento, Gallery 2, etc can be configured to use this tool as the basis for their image capabilities so it is pretty much a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-318" title="Wizard" src="http://dreamcreative.net/wp-content/uploads/2011/05/wizard.png" alt="" width="180" height="212" />ImageMagick® is a popular application used on many web hosting servers(and standard pc&#8217;s) to create, edit, compose, or convert bitmap images. Many image plugins for web applications such Joomla, WordPress, Drupal, Magento, Gallery 2, etc can be configured to use this tool as the basis for their image capabilities so it is pretty much a standard requirement if you are providing shared web hosting services.</p>
<p>If you are running a cPanel server, you may be aware that cPanel provides a script to easily install ImageMagick, however our experience has shown that this script is not the best method to use to install ImageMagick as it comes with a number of limitations, such as slow update releases and no easy upgrade script. Therefore we have found that a manual installation of ImageMagick is still the best solution, regardless of whether you are running cPanel or not.</p>
<p>At the time of writing this guide, the current version of ImageMagick was 6.6.9-8. Using the instructions below, the latest version of ImageMagick will be installed. If you wish to check the version you will be installing, head over to the <a href="ftp://ftp.imagemagick.org/pub/ImageMagick" target="_blank">ImageMagick FTP site</a> to check the current version number. You can then adjust the details below accordingly if you wish to install an older version. This guide also assumes that you are running the current version of cPanel, which at the time of writing was 11.28.xx.</p>
<h2>Install ImageMagick</h2>
<p>1. Login to your server via SSH as root and download the latest version:</p>
<p><span style="color: #666666;"><em>wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz</em></span></p>
<p>2. Unpack the downloaded files</p>
<p><span style="color: #666666;"><em>tar xvfz ImageMagick.tar.gz</em></span></p>
<p>3. Configure and compile the installation files:</p>
<p><em>To first check the version number that was installed, just enter <span style="color: #666666;">ls</span> at the command prompt and you will see the folder with appropriate version number in its name.</em></p>
<p><span style="color: #666666;"><em>cd ImageMagick-6.6.9-8</em></span><br />
<span style="color: #666666;"><em>./configure</em></span><br />
<span style="color: #666666;"><em>make</em></span></p>
<p>4. As long as ImageMagick compiled without any errors, install it onto your system:</p>
<p><span style="color: #666666;"><em>make install</em></span></p>
<p>5. For a quick  check that ImageMagick is installed and running correctly, enter the following:</p>
<p><span style="color: #666666;"><em>/usr/local/bin/convert logo: logo.gif</em></span></p>
<p>6. For a more advanced check on your ImageMagick installation, run the command below which will perform a full test on the installation and should result in a &#8220;all tests passed&#8221;.</p>
<p><span style="color: #666666;"><em>make check</em></span></p>
<h2>Bind ImageMagick Into PHP</h2>
<p>For your new ImageMagick installation to work with your web php scripts, you now need to bind it into PHP. To do this, just follow the steps below.</p>
<p>1. Login to WHM and navigate to the &#8220;Module Installers&#8221; option under &#8220;Software&#8221; in the left hand menu</p>
<p>2. On the following page, select the &#8220;Manage&#8221; link beside the PHP Pecl language option</p>
<p>3. Enter imagick into the &#8220;Install a PHP Pecl&#8221; field and then click the install button.</p>
<h2>Test Your Installation</h2>
<p>All things going well, you should now have a running installation of ImageMagick. The best way to test this is to install one of the many free PHP gallery applications (e.g. Gallery 2, Coppermine) and configure the application to use ImageMagick. If all is working as it should be, these applications should enable this feature with no complaint and the gallery should function correctly on the front end.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/install-imagemagick-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install GotRoot ModSecurity Rules On A cPanel Server</title>
		<link>http://dreamcreative.net/2011/05/install-gotroot-modsecurity-rules-on-a-cpanel-server/</link>
		<comments>http://dreamcreative.net/2011/05/install-gotroot-modsecurity-rules-on-a-cpanel-server/#comments</comments>
		<pubDate>Wed, 11 May 2011 04:32:54 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[ModSecurity]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=273</guid>
		<description><![CDATA[ModSecurity is a web application firewall that provides script request filtering to prevent poor or malicious coding from being executed or exploited on a Linux server. This module is easily installed when running a cPanel server by using the EasyApache application and is highly recommended to enhance your server&#8217;s security. However, the default rules supplied by [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-317" title="Atomicorp logo" src="http://dreamcreative.net/wp-content/uploads/2011/05/atomicorp_logo.png" alt="" width="150" height="117" />ModSecurity is a web application firewall that provides script request filtering to prevent poor or malicious coding from being executed or exploited on a Linux server. This module is easily installed when running a cPanel server by using the EasyApache application and is highly recommended to enhance your server&#8217;s security. However, the default rules supplied by the application are not only quite basic, but can also result in a high level of false positives, which when managing a shared hosting environment can become a major pain to have to deal with.</p>
<p>The <a href="http://www.gotroot.com/mod_security+rules" target="_blank">GotRoot</a> rules compiled by Atomicorp are a fantastic alternative and dramatically improve ModSecurity&#8217;s effectiveness while reducing false positives. Atomicorp provide a free release of these rules(delayed by at least 90 days) which are relatively easy to install on your cPanel Server.</p>
<p>Login to your server via SSH as root and then perform the following steps</p>
<p><strong>1. First create required directories</strong></p>
<p><em><span style="color: #666666;">mkdir /etc/httpd/modsecurity.d</span></em><br />
<em><span style="color: #666666;">mkdir /var/asl</span></em><br />
<em><span style="color: #666666;">mkdir /var/asl/tmp</span></em><br />
<em><span style="color: #666666;">mkdir /var/asl/data</span></em><br />
<em><span style="color: #666666;">mkdir /var/asl/data/msa</span></em><br />
<em><span style="color: #666666;">mkdir /var/asl/data/audit</span></em><br />
<em><span style="color: #666666;">mkdir /var/asl/data/suspicious</span></em></p>
<p><strong>2. Change permissions for folders(cPanel)</strong></p>
<p><em><span style="color: #666666;">chown nobody.nobody /var/asl/data/msa</span></em><br />
<em><span style="color: #666666;">chown nobody.nobody /var/asl/data/audit</span></em><br />
<em><span style="color: #666666;">chown nobody.nobody /var/asl/data/suspicious</span></em><br />
<em><span style="color: #666666;">chmod o-rx -R /var/asl/data/*</span></em><br />
<em><span style="color: #666666;">chmod ug+rwx -R /var/asl/data/*</span></em></p>
<p><strong>3. Upload rules to /etc/httpd/modsecurity.d &#8211; <span style="color: #000000;"><em>(include the .conf files listed below as well as .txt files)</em></span></strong></p>
<p><em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/05_asl_exclude.conf </span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/10_asl_antimalware.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/10_asl_rules.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/11_asl_data_loss.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/20_asl_useragents.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/30_asl_antispam.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/50_asl_rootkits.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/60_asl_recons.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/61_asl_recons_dlp.conf</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/99_asl_jitp.conf</span></em></p>
<p><strong>4. Add the following lines to the user configuration file -</strong> (/usr/local/apache/conf/modsec2.user.conf)</p>
<p><em><span style="color: #666666;">SecRequestBodyAccess On</span></em><br />
<em><span style="color: #666666;">SecResponseBodyAccess On</span></em><br />
<em><span style="color: #666666;">SecResponseBodyMimeType (null) text/html text/plain text/xml</span></em><br />
<em><span style="color: #666666;">SecResponseBodyLimit 2621440</span></em><br />
<em><span style="color: #666666;">SecAuditLogRelevantStatus &#8220;^(?:5|4(?!04))&#8221;</span></em><br />
<em><span style="color: #666666;">SecServerSignature Apache</span></em><br />
<em><span style="color: #666666;">SecUploadDir /var/asl/data/suspicious</span></em><br />
<em><span style="color: #666666;">SecUploadKeepFiles Off</span></em><br />
<em><span style="color: #666666;">SecAuditLogParts ABIFHZ</span></em><br />
<em><span style="color: #666666;">SecArgumentSeparator &#8220;&amp;&#8221;</span></em><br />
<em><span style="color: #666666;">SecCookieFormat 0</span></em><br />
<em><span style="color: #666666;">SecRequestBodyInMemoryLimit 131072</span></em><br />
<em><span style="color: #666666;">SecDataDir /var/asl/data/msa</span></em><br />
<em><span style="color: #666666;">SecTmpDir /tmp</span></em><br />
<em><span style="color: #666666;">SecAuditLogStorageDir /var/asl/data/audit</span></em><br />
<em><span style="color: #666666;">SecResponseBodyLimitAction ProcessPartial</span></em><br />
<em><span style="color: #666666;">SecPcreMatchLimit 50000</span></em><br />
<em><span style="color: #666666;">SecPcreMatchLimitRecursion 5000</span></em><br />
<em><span style="color: #666666;">Include /etc/httpd/modsecurity.d/*.conf</span></em></p>
<p>Add the following to the php.ini file to avoid PCRE errors:</p>
<p><em><span style="color: #666666;">pcre.backtrack_limit = 50000</span></em><br />
<em><span style="color: #666666;">pcre.recursion_limit = 50000</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/install-gotroot-modsecurity-rules-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Use Of Custom PHP.INI files On cPanel Server</title>
		<link>http://dreamcreative.net/2011/05/disable-use-of-custom-php-ini-files-on-cpanel-server/</link>
		<comments>http://dreamcreative.net/2011/05/disable-use-of-custom-php-ini-files-on-cpanel-server/#comments</comments>
		<pubDate>Wed, 11 May 2011 04:09:28 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[Web Hosting Tips]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[EasyApache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[suPHP]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=269</guid>
		<description><![CDATA[When compiling Apache using cPanel&#8217;s EasyApache application, you have the option of installing &#8216;Mod suPHP&#8217;, which is just one of many options that make your php installation more secure when hosting multiple sites on the same server; e.g. shared hosting server. When you have Mod suPHP installed, you can configure your server to force the [...]]]></description>
			<content:encoded><![CDATA[<p>When compiling Apache using cPanel&#8217;s EasyApache application, you have the option of installing &#8216;Mod suPHP&#8217;, which is just one of many options that make your php installation more secure when hosting multiple sites on the same server; e.g. shared hosting server.</p>
<p>When you have Mod suPHP installed, you can configure your server to force the use of the main server wide php.ini file and disable the use of custom php.ini files to adjust certain php settings. To do this:</p>
<p><strong>1. </strong>Login to your server as root via SSH</p>
<p><strong>2.</strong> Open the following file:</p>
<p><span style="color: #666666;"><em>nano /opt/suphp/etc/suphp.conf</em></span></p>
<p><strong>3.</strong> Search for <strong>[phprc_paths]</strong> and then uncomment (remove the ; from the front) the following lines:</p>
<p><em><span style="color: #666666;">;application/x-httpd-php=/usr/local/lib/</span></em><br />
<em><span style="color: #666666;">;application/x-httpd-php4=/usr/local/php4/lib/</span></em><br />
<em><span style="color: #666666;">;application/x-httpd-php5=/usr/local/lib/</span></em></p>
<p>Save the file, exit the editor, and then restart Apache</p>
<h3>Important Note</h3>
<p>Some popular modern php applications require quite generous php resource allowances(memory, to function, so it you enable this limitation, you need to make sure you have configured your default, server wide php.ini with settings that will these applications to run without issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/disable-use-of-custom-php-ini-files-on-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force SMTP Authentication On A cPanel Server</title>
		<link>http://dreamcreative.net/2011/05/force-smtp-authentication-on-a-cpanel-server/</link>
		<comments>http://dreamcreative.net/2011/05/force-smtp-authentication-on-a-cpanel-server/#comments</comments>
		<pubDate>Wed, 11 May 2011 03:18:30 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[SMTP Authentication]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=265</guid>
		<description><![CDATA[By default, a cPanel server uses POP before SMTP as its method of checking if a sender is allowed to send mail via the server. However, if you would like to force people to use proper SMTP authentication then there is a simple shell command that will enable this requirement. To force SMTP authentication on [...]]]></description>
			<content:encoded><![CDATA[<p>By default, a cPanel server uses POP before SMTP as its method of checking if a sender is allowed to send mail via the server. However, if you would like to force people to use proper SMTP authentication then there is a simple shell command that will enable this requirement.</p>
<p>To force SMTP authentication on your cPanel server, login to SSH as root and issue the following command:</p>
<p><span style="color: #666666;"><em>/usr/local/cpanel/bin/tailwatchd &#8211;disable=Cpanel::TailWatch::Antirelayd</em></span></p>
<p>If you would like to undo this at any stage, just enter the following:</p>
<p><span style="color: #666666;"><em>/usr/local/cpanel/bin/tailwatchd &#8211;disable=Cpanel::TailWatch::Antirelayd</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/force-smtp-authentication-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install ConfigServer Apps On A cPanel/WHM Server</title>
		<link>http://dreamcreative.net/2011/05/install-configserver-apps-on-a-cpanel-whm-server/</link>
		<comments>http://dreamcreative.net/2011/05/install-configserver-apps-on-a-cpanel-whm-server/#comments</comments>
		<pubDate>Wed, 11 May 2011 02:26:00 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ConfigServer]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[CSF]]></category>
		<category><![CDATA[Firewalls]]></category>
		<category><![CDATA[Mail Manage]]></category>
		<category><![CDATA[Mail Queues]]></category>
		<category><![CDATA[ModSecurity]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=256</guid>
		<description><![CDATA[ConfigServer provide a range of paid and free applications, including a significantly more advanced firewall, that plug directly into WHM on your cPanel server. These applications are highly recommended for anyone who is serious about the security of their cPanel Server, as they not only provide enhanced security functionality, but also allow you to easily manage [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.configserver.com/" target="_blank"><img class="alignleft size-full wp-image-340" title="csf_icon" src="http://dreamcreative.net/wp-content/uploads/2011/05/csf_icon.png" alt="" width="174" height="127" />ConfigServer</a> provide a range of paid and free applications, including a significantly more advanced firewall, that plug directly into WHM on your cPanel server. These applications are highly recommended for anyone who is serious about the security of their cPanel Server, as they not only provide enhanced security functionality, but also allow you to easily manage a number of other basic cPanel functions, such as mail settings, mail queues, and a more advanced ModSecurity tool.</p>
<p>Below is a list of the free applications that we will be providing the simple installation instructions for:</p>
<ol>
<li><strong>CSF </strong>- this is an advanced firewall system utilising Linux ip tables</li>
<li><strong>Mail Manage</strong> &#8211; allows you to adjust mail settings, such as hourly limits and email forwarders, on a per account basis</li>
<li><strong>Mail Queues</strong> &#8211; easily manage your email queues with the ability to force run the queue and delete stuck messages</li>
<li><strong>ModSecurity Control</strong> &#8211; if you have installed ModSecurity on your cPanel Server, this provide an advanced management interface</li>
<li><strong>Explorer</strong> &#8211; This is a file system explorer web interface which allows you to also run basic shell commands within folders &#8211; <span style="color: #ff0000;"><em>WARNING: While this utility can be very useful it is also very dangerous indeed. You can easily render your server inoperable and unrecoverable by performing ill advised actions. No warranty or guarantee is provided with the product that protects against system damage.</em></span></li>
</ol>
<p>NOTE: All of the installations below require you to be logged into SSH as root.</p>
<h2>Install ConfigServer Security &amp; Firewall</h2>
<p><span style="color: #666666;"><em>rm -fv csf.tgz</em></span><br />
<span style="color: #666666;"><em>wget http://www.configserver.com/free/csf.tgz</em></span><br />
<span style="color: #666666;"><em>tar -xzf csf.tgz</em></span><br />
<span style="color: #666666;"><em>cd csf</em></span><br />
<span style="color: #666666;"><em>sh install.sh</em></span></p>
<p>Remove installation files:</p>
<p><span style="color: #666666;"><em>cd ..</em></span><br />
<span style="color: #666666;"><em>rm -Rfv csf/ csf.tgz</em></span></p>
<h2>Install ConfigServer Mail Manage</h2>
<p><span style="color: #666666;"><em>rm -fv cmm.tgz</em></span><br />
<span style="color: #666666;"><em>wget http://www.configserver.com/free/cmm.tgz</em></span><br />
<span style="color: #666666;"><em>tar -xzf cmm.tgz</em></span><br />
<span style="color: #666666;"><em>cd cmm</em></span><br />
<span style="color: #666666;"><em>sh install.sh</em></span></p>
<p>Remove installation files:</p>
<p><span style="color: #666666;"><em>cd ..</em></span><br />
<span style="color: #666666;"><em>rm -Rfv cmm/ cmm.tgz</em></span></p>
<p>To uninstall:</p>
<p><span style="color: #666666;"><em>rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi</em></span><br />
<span style="color: #666666;"><em>rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmmversion.txt</em></span><br />
<span style="color: #666666;"><em>rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmm/</em></span></p>
<h2>Install ConfigServer Mail Queues</h2>
<p><span style="color: #666666;"><em>rm -fv cmq.tgz</em></span><br />
<span style="color: #666666;"><em>wget http://www.configserver.com/free/cmq.tgz</em></span><br />
<span style="color: #666666;"><em>tar -xzf cmq.tgz</em></span><br />
<span style="color: #666666;"><em>cd cmq</em></span><br />
<span style="color: #666666;"><em>sh install.sh</em></span></p>
<p>Remove installation files:</p>
<p><span style="color: #666666;"><em>cd ..</em></span><br />
<span style="color: #666666;"><em>rm -Rfv cmq/ cmq.tgz</em></span></p>
<p>To uninstall:</p>
<p><em><span style="color: #666666;">rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi</span></em><br />
<em><span style="color: #666666;">rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt</span></em><br />
<em><span style="color: #666666;">rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmq/</span></em></p>
<h2>Install ConfigServer ModSecurity Control</h2>
<p><span style="color: #666666;"><em>rm -fv cmc.tgz</em></span><br />
<span style="color: #666666;"><em>wget http://www.configserver.com/free/cmc.tgz</em></span><br />
<span style="color: #666666;"><em>tar -xzf cmc.tgz</em></span><br />
<span style="color: #666666;"><em>cd cmc</em></span><br />
<span style="color: #666666;"><em>sh install.sh</em></span></p>
<p>Remove installation files:</p>
<p><span style="color: #666666;"><em>cd ..</em></span><br />
<span style="color: #666666;"><em>rm -Rfv cmc/ cmc.tgz</em></span></p>
<p>To uninstall:</p>
<p><span style="color: #666666;"><em>rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi</em></span><br />
<span style="color: #666666;"><em>rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmcversion.txt</em></span><br />
<span style="color: #666666;"><em>rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmc/</em></span></p>
<h2>Install ConfigServer Explorer</h2>
<p><span style="color: #666666;"><em>rm -fv cse.tgz</em></span><br />
<span style="color: #666666;"><em>wget http://www.configserver.com/free/cse.tgz</em></span><br />
<span style="color: #666666;"><em>tar -xzf cse.tgz</em></span><br />
<span style="color: #666666;"><em>cd cse</em></span><br />
<span style="color: #666666;"><em>sh install.sh</em></span></p>
<p>Remove installation files:</p>
<p><span style="color: #666666;"><em>cd ..</em></span><br />
<span style="color: #666666;"><em>rm -Rfv cse/ cse.tgz</em></span></p>
<p>To uninstall:</p>
<p><span style="color: #666666;"><em>rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi</em></span><br />
<span style="color: #666666;"><em>rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cseversion.txt</em></span></p>
<p>If you run into any issue with the install, just head over to the <a href="http://forum.configserver.com/" target="_blank">ConfigServer forums</a> and you&#8217;ll find plenty of people who can assist you.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/install-configserver-apps-on-a-cpanel-whm-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Nameservers On A cPanel/WHM Server</title>
		<link>http://dreamcreative.net/2011/05/setting-up-nameservers-on-a-cpanel-whm-serve/</link>
		<comments>http://dreamcreative.net/2011/05/setting-up-nameservers-on-a-cpanel-whm-serve/#comments</comments>
		<pubDate>Tue, 10 May 2011 06:31:56 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[Web Hosting Tips]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Nameservers]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=245</guid>
		<description><![CDATA[Before You Begin Before you start setting up your nameservers in WHM, you need to make sure that the correct details have been configured with your domain registrar. Each registrar handles the setting up of private nameservers differently so you should contact them to determine the method they use. Ssome let you control the setup [...]]]></description>
			<content:encoded><![CDATA[<h2>Before You Begin</h2>
<p>Before you start setting up your nameservers in WHM, you need to make sure that the correct details have been configured with your domain registrar. Each registrar handles the setting up of private nameservers differently so you should contact them to determine the method they use. Ssome let you control the setup from your domain control panel, however some require their administrators to create the nameserver entries for.</p>
<p>The most important point to make when contacting your registrar is that you wish to create private nameserver details to use with your own hosting server(some refer to these as child nameservers). Occasionally you will strike level 1 support staff who do not fully understand what you wish to do and may provide you incorrect instruction unless you specify this.</p>
<p>Once you know how they do it, you just need to set up the nameservers in their system as below:</p>
<ol>
<li>Enter the names you would like to use; e.g. ns1.yourdomain.com and ns2.yourdomain.com</li>
<li>Enter the corresponding ip addresses details from your server that you wish to use.</li>
</ol>
<h2>1. Setup The Nameservers In WHM</h2>
<p>In WHM, navigate to the left hand menu option &#8220;Basic cPanel/WHM Setup&#8221; and do the following:</p>
<ol>
<li>Set the Primary Nameserver to ns1.yourdomain.com.</li>
<li>Then click Assign IP Address.</li>
<li>Repeat this for the Secondary Nameserver section, using ns2.yourdomain.com.</li>
<li>On the bottom of the page, click Save.</li>
</ol>
<p>Note: the IP addresses will most likely not get set correctly so we will rectify this by changing the nameserverip file via SSH.</p>
<h2>2. Modify The Nameserver IPs Via SSH</h2>
<p>SSH into your server as root and open the following file:</p>
<p>nano /etc/nameserverips</p>
<p>You should edit the file to look something like the example below:</p>
<p>IP1=ns1.yourdomain.com<br />
IP2=ns2.yourdomain.com</p>
<p>Save the file and exit the editor.</p>
<h2>3. Complete the WHM Nameserver Setup</h2>
<p>In WHM, navigate back to the left hand menu option &#8220;Basic cPanel/WHM Setup&#8221; and perform the following steps:</p>
<ol>
<li>Double check the primary nameserver field contains your ns1.yourdomain.com entry;</li>
<li>Click &#8220;Assign IP Address&#8221; which should now show you the correct IP address;</li>
<li>Click &#8220;Add an A entry for this nameserver&#8221;;</li>
<li>Repeat this for the Secondary Nameserver section using ns2.yourdomain.com.</li>
</ol>
<p>On the bottom of the page, click Save. If you now select the left hand menu option &#8220;Manage Nameserver IPs&#8221;, you should see the correct nameserver details with the corresponding ips.</p>
<h2>4. Restart The DNS Service</h2>
<p>You should now just be able to restart the DNS service by doing the following:</p>
<ol>
<li>Navigate to the &#8220;Restart Services&#8221; section in the left hand men;</li>
<li>Select &#8220;DNS Server (BIND/NSD)&#8221;</li>
<li>Hit the yes button in the right hand frame.</li>
</ol>
<p>Done!&#8230;Hopefully you now have working nameservers attached to your own domain.</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/setting-up-nameservers-on-a-cpanel-whm-serve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing iStat Server for Linux(Red Hat, CentOS, Fedora)</title>
		<link>http://dreamcreative.net/2011/05/installing-istat-server-for-linux-redhat-centos-fedora/</link>
		<comments>http://dreamcreative.net/2011/05/installing-istat-server-for-linux-redhat-centos-fedora/#comments</comments>
		<pubDate>Tue, 10 May 2011 02:37:43 +0000</pubDate>
		<dc:creator>Marvel Man</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Server Maintenance]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[iStat]]></category>
		<category><![CDATA[Server Monitoring]]></category>

		<guid isPermaLink="false">http://dreamcreative.net/?p=232</guid>
		<description><![CDATA[If you&#8217;re looking for a tool to easily and quickly check on your Linux(RedHat, CentOS, Fedora) server&#8217;s current performance status using your iPhone, Bjango&#8217;s iStat application is the ideal solution. Using iStat&#8217;s sleek, easy to understand interface, you can quickly check your server&#8217;s current load levels, disk usage, memory usage, and traffic in/out status. To [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-324" title="iStat for iPone" src="http://dreamcreative.net/wp-content/uploads/2011/05/iphone.png" alt="" width="160" height="324" />If you&#8217;re looking for a tool to easily and quickly check on your Linux(RedHat, CentOS, Fedora) server&#8217;s current performance status using your iPhone, Bjango&#8217;s iStat application is the ideal solution. Using iStat&#8217;s sleek, easy to understand interface, you can quickly check your server&#8217;s current load levels, disk usage, memory usage, and traffic in/out status.</p>
<h2>To Start</h2>
<p>By default, iStat uses <strong>TCP port 5109</strong> to communicate on. You can of course change this in the config file which we will highlight a bit furhter into this tutorial, however whichever you decide to use, you will need to make sure you have opened it up in your firewall for the iStat iPhone app to be able to communicate with the server app.</p>
<h2>Download iStat Server</h2>
<p>iStat server for Linux can be downloaded from github and in the example below we are using version 0.5.7. To ensure you are installing the latest version, you should <a rel="nofollow" href="https://github.com/tiwilliam/istatd/downloads" target="_blank">head over to github</a> and then adjust the version below accordingly if an update iStat server version has been released:</p>
<p><span style="color: #888888;"><em>wget https://github.com/downloads/tiwilliam/istatd/istatd-0.5.7.tar.gz</em></span></p>
<p><strong>note:</strong> if you get a certificate error, use the following link:</p>
<p><span style="color: #666666;"><em>wget &#8211;no-check-certificate https://github.com/downloads/tiwilliam/istatd/istatd-0.5.7.tar.gz</em></span></p>
<p>Once you&#8217;ve downloaded iStat server, we just need to extract the files and then we&#8217;re ready to do the install:</p>
<p><span style="color: #666666;"><em>tar -zxvf istatd-*.tar.gz</em></span><br />
<span style="color: #666666;"><em>cd istatd-*</em></span></p>
<h2>Install iStat Server</h2>
<p>Configure iStat for your server:</p>
<p><span style="color: #666666;"><em>./configure</em></span></p>
<p>Compile and install:</p>
<p><span style="color: #666666;"><em>make</em></span><br />
<span style="color: #666666;"><em>make install</em></span></p>
<p>Add an istat user and create a directory to store istat.pid:</p>
<p><span style="color: #666666;">useradd istat</span><br />
<span style="color: #666666;">mkdir /var/run/istat</span><br />
<span style="color: #666666;">chown istat /var/run/istat</span></p>
<h2>Adjust iStat Server Configuration</h2>
<p>Before you start using iStat server, you will first need to modify the configuration file for your system:</p>
<p><span style="color: #666666;"><em>nano /usr/local/etc/istat.conf</em></span></p>
<p>Adjust the server_code(this is your login pin) and anything else you wish to change, e.g. network_port number. You may also want to adjust the monitor_disk settings to add additional mounted disks you wish to check, e.g. backup.</p>
<p><span style="color: #666666;"><em>#</em></span><br />
<span style="color: #666666;"><em># /etc/istat.conf: Configuration for iStat server</em></span><br />
<span style="color: #666666;"><em>#</em></span><br />
<span style="color: #666666;"><em># network_addr           127.0.0.1</em></span><br />
<span style="color: #666666;"><em># network_port           5109</em></span><br />
<span style="color: #666666;"><em>server_code              12345</em></span><br />
<span style="color: #666666;"><em># server_user            istat</em></span><br />
<span style="color: #666666;"><em># server_group           istat</em></span><br />
<span style="color: #666666;"><em># server_socket          /tmp/istatd.sock</em></span><br />
<span style="color: #666666;"><em># server_pid             /var/run/istat/istatd.pid</em></span><br />
<span style="color: #666666;"><em># cache_dir              /var/cache/istat</em></span></p>
<p><span style="color: #666666;"><em># Note: Only support for one network interface, limited by client.</em></span><br />
<span style="color: #666666;"><em>monitor_net              ( eth0 )</em></span></p>
<p><span style="color: #666666;"><em># Array of disks to monitor. Specify mount path or device name.</em></span><br />
<span style="color: #666666;"><em># monitor_disk             ( / /home )</em></span><br />
<span style="color: #666666;"><em>monitor_disk             ( / )</em></span></p>
<p><span style="color: #666666;"><em># Set to 1 if you want to use mount path as label instead of the device name.</em></span><br />
<span style="color: #666666;"><em>disk_mount_path_label    0</em></span></p>
<p><span style="color: #666666;"><em># Try to probe the filesystem for disk label, will override the mount path label.</em></span><br />
<span style="color: #666666;"><em>disk_filesystem_label    1</em></span></p>
<p><span style="color: #666666;"><em># Set custom disk label. Will override all other labels.</em></span><br />
<span style="color: #666666;"><em># disk_rename_label        /dev/sda1  &#8221;root&#8221;</em></span><br />
<span style="color: #666666;"><em># disk_rename_label        /home      &#8221;home&#8221;</em></span></p>
<p><span style="color: #666666;"><em># End of file</em></span></p>
<h2><span style="color: #666666;"><em> </em></span>Start iStat Server</h2>
<p>Now that  you&#8217;ve configured iStat server, your ready to launch the iStat daemon:</p>
<p><span style="color: #666666;"><em>/usr/local/bin/istatd -d</em></span></p>
<h2>Install iStat iPhone Application</h2>
<p>Now you can head over to <a href="http://bjango.com/iphone/istat/" target="_blank">Bjango&#8217;s site</a> to check out the iPhone application and download it using iTunes. Once you&#8217;ve installed it on your iPhone, just add your server ip address and enter the server_code from your configuration file when prompted.</p>
<h2>Launch iStat Server at startup</h2>
<p>So that iStat Server loads automatically if the server is restarted, it&#8217;s a good idea to it to the rc.local file which will take care of that for you:</p>
<p><span style="color: #666666;"><em>nano /etc/rc.d/rc.local</em></span></p>
<p>Add the following to the bottom of the file and then close and save.</p>
<p><span style="color: #666666;"><em>/usr/local/bin/istatd -d</em></span></p>
<h2>Prevent iStat Server daemon being shutdown</h2>
<p>If you have any process tracking applications running on your server that may shut down the iStat daemon (e.g. ConfigServer Security &amp; Firewall), you may want to exempt the daemon in the appropriate settings section for that application.</p>
<p>For example, in CSF you would open the lfd.pignore file and add the following entry:</p>
<p><span style="color: #666666;"><em>exe:/usr/local/bin/istatd</em></span></p>
<p>Hopefully you now have a running installation of iStat Server for linux and can enjoy easy monitoring on the go.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://dreamcreative.net/2011/05/installing-istat-server-for-linux-redhat-centos-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

