<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>NetTipsDB</title>
	
	<link>http://www.nettipsdb.com</link>
	<description>Online resources for web designing, system administrators, blogger and internet addicts</description>
	<lastBuildDate>Sat, 12 Nov 2011 08:32:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Nettipsdb" /><feedburner:info uri="nettipsdb" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Nettipsdb</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Viewing PSD thumbnails in Windows.</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/SUNwTIPOFgY/</link>
		<comments>http://www.nettipsdb.com/2011/11/viewing-psd-thumbnails-in-windows/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 08:31:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=331</guid>
		<description><![CDATA[I have started using Windows again for the last few days, and its been a new experience for me, after get used to most of Mac wonderful features. One of thousands of the unique features is viewing PSD thumbnails right before you open the files. Eventhough there might be some glitches to some system, its [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have started using Windows again for the last few days, and its been a new experience for me, after get used to most of Mac wonderful features. One of thousands of the unique features is viewing PSD thumbnails right before you open the files. </p>
<p><a href="http://www.josh.biz/technical-notes/view-thumbnail-images-for-photoshop-psd-files-in-windows/"><img src="http://www.nettipsdb.com/wp-content/uploads/2011/11/psd_thumbnail.png" alt="" title="psd_thumbnail" width="550" height="412" class="aligncenter size-full wp-image-332" /></a></p>
<p>Eventhough there might be some glitches to some system, its a good start for me to have a preview before opening the files. I have problem where some of the files preview didn&#8217;t appear. Its a good work though. Thanks!</p>
<p>This is the URL:<br />
<a href="http://www.josh.biz/technical-notes/view-thumbnail-images-for-photoshop-psd-files-in-windows/" target="_blank">http://www.josh.biz/technical-notes/view-thumbnail-images-for-photoshop-psd-files-in-windows/</a></p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/SUNwTIPOFgY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/11/viewing-psd-thumbnails-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/11/viewing-psd-thumbnails-in-windows/</feedburner:origLink></item>
		<item>
		<title>Purging in varnish.</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/rEbXNiAtWBk/</link>
		<comments>http://www.nettipsdb.com/2011/10/purging-in-varnish/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 05:58:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=326</guid>
		<description><![CDATA[You might already know varnish. Its a so called website accelerator. It will sit in front of your web server as a reverse proxy, listening on port 80, handling static contents based on the configuration files, and pass all dynamic requests to the main web server behind it. varnish will help alot to reduce request [...]
<b>No related posts.</b>]]></description>
			<content:encoded><![CDATA[<p>You might already know varnish. Its a so called website accelerator. It will sit in front of your web server as a reverse proxy, listening on port 80, handling static contents based on the configuration files, and pass all dynamic requests to the main web server behind it. </p>
<p>varnish will help alot to reduce request made to web server, for each static files such as images, css, javascript files, which can be handled by varnish through cache. Once you installed it, you will be grateful. The cache will be built up, and you can see significant reduction in number of request to your web server. </p>
<p>You might update your content, and you need the cached content to be reloaded. We call it &#8220;purge&#8221;. You might not want to restart varnish, as the whole cache database will be reloaded, and need to be built up again. You can just purge a specific content. </p>
<p>For this, you need your varnish to be able to handle purge request. </p>
<p>put these lines into your main varnish config file.<br />
<code><br />
acl purgeable {<br />
        "localhost";<br />
        "<MaybeAnotherHostsIP>";<br />
}<br />
sub vcl_hit {<br />
  if (req.request == "PURGE") {<br />
    #set obj.ttl = 0s;<br />
    error 200 "Purged.";<br />
  }<br />
}<br />
sub vcl_miss {<br />
  if (req.request == "PURGE") {<br />
    #set obj.ttl = 0s;<br />
    error 404 "Not in cache.";<br />
  }<br />
}<br />
sub vcl_deliver {<br />
        if (obj.hits > 0) {<br />
                        set resp.http.X-Cache = "HIT";<br />
        } else {<br />
                        set resp.http.X-Cache = "MISS";<br />
        }<br />
    return (deliver);<br />
}<br />
</code></p>
<p>The vcl_deliver part is just additional code for debugging, where it will add additional header in http response, to tell the content caching states, either HIT or MISS. You can verify with &#8220;Age: &#8221; info as well, which tell how long it has been in cache. </p>
<p>For purging, Alain Kelder wrote an article, <a href="http://giantdorks.org/alain/exploring-methods-to-purge-varnish-cache/" title="Exploring methods to purge varnish cache" target="_blank">Exploring methods to purge varnish cache</a>, using varnishadm, telnet and http request through telnet. Its quite good article, which gives you options to use which method, and a sample PHP code to make it easy to purge.</p>
<p>For my own notes,<br />
<code>#telnet localhost 80<br />
Response:<br />
Trying 127.0.0.1...<br />
Connected to localhost.<br />
Escape character is '^]'.<br />
Request:<br />
PURGE /path/file HTTP/1.0<br />
Host: hostname.com</code></p>
<p>Thanks<br />
<a href="http://giantdorks.org/alain/exploring-methods-to-purge-varnish-cache/" title="Exploring methods to purge varnish cache" target="_blank">http://giantdorks.org/alain/exploring-methods-to-purge-varnish-cache/</a></p>
<p><b>No related posts.</b></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/rEbXNiAtWBk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/10/purging-in-varnish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/10/purging-in-varnish/</feedburner:origLink></item>
		<item>
		<title>sync svnserv passwd and trac htaccess file.</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/MlwpTCK5qQ0/</link>
		<comments>http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 09:30:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=322</guid>
		<description><![CDATA[I have problem configuring trac to read svnserv password. So, I wrote a script which will convert the plaintext password of svnserv to htaccess password for trac to read. svnserv password format is as below [users] repoman = repomanpass This is the script to convert the file format into a htaccess file. #!/bin/bash path=/path/to/trac new_passwd_file=htpasswdnew [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have problem configuring trac to read svnserv password. So, I wrote a script which will convert the plaintext password of svnserv to htaccess password for trac to read.</p>
<p>svnserv password format is as below<br />
<code>[users]<br />
repoman = repomanpass</code></p>
<p>This is the script to convert the file format into a htaccess file.<br />
<code>#!/bin/bash<br />
path=/path/to/trac<br />
new_passwd_file=htpasswdnew<br />
tmp_file=/tmp/commands<br />
svnserv_pass_file=/home/svn/project1/conf/passwd<br />
cd $path<br />
sed -ne "s/\(.*[^ ]\) *\= *\([^ ].*\)/htpasswd -b $new_passwd_file \"\1\" \"\2\"/p" < $svnserv_pass_file > $tmp_file<br />
sh $tmp_file<br />
rm -rf $tmp_file</code></p>
<p>But, before you can start using the script, you need to create the password file using htpasswd tool, with -c argument.<br />
<code>htpasswd -c /path/to/trac/htpasswdnew repoman</code></p>
<p>Enter the password, and you&#8217;re done. Try running the code in your command line, and you will see, the password will be updated. If you have many users in svnserv password file, you just need to do this once, using any of the user that you have. All the other users will be added. You might want to run this script regularly to keep it updated. Remember, this is only one way convert, from plain-text svnserv file to htpasswd file (hashed). </p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/MlwpTCK5qQ0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/</feedburner:origLink></item>
		<item>
		<title>Windows softwares auto installer/updater</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/Yz4EgNQVOnU/</link>
		<comments>http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/#comments</comments>
		<pubDate>Wed, 18 May 2011 15:43:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=312</guid>
		<description><![CDATA[The main tips to remain protected is to make sure all software you have are updated and always keep to the latest version. This is the main issue, patch management. It becomes a global problem for any IT department or organization, to maintain this versions to the latest. For home user, you will find this [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/11/viewing-psd-thumbnails-in-windows/' rel='bookmark' title='Viewing PSD thumbnails in Windows.'>Viewing PSD thumbnails in Windows.</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/' rel='bookmark' title='sync svnserv passwd and trac htaccess file.'>sync svnserv passwd and trac htaccess file.</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The main tips to remain protected is to make sure all software you have are updated and always keep to the latest version. This is the main issue, patch management. It becomes a global problem for any IT department or organization, to maintain this versions to the latest.</p>
<p>For home user, you will find this tools is helpful enough to make sure your popular softwares are updated, and <a href="http://ninite.com">ninite</a> will does this for you, automatically. With the tagline, &#8220;The Easiest, Fastest Way to Update or Install Software&#8221;, I guess you easily grab the idea. You can find it at <a href="http://ninite.com">ninite.com</a><br />
<a href="http://www.nettipsdb.com/wp-content/uploads/2011/05/ninite.png"><img src="http://www.nettipsdb.com/wp-content/uploads/2011/05/ninite.png" alt="" title="ninite" width="550" class="aligncenter size-full wp-image-313" /></a></p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/11/viewing-psd-thumbnails-in-windows/' rel='bookmark' title='Viewing PSD thumbnails in Windows.'>Viewing PSD thumbnails in Windows.</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/' rel='bookmark' title='sync svnserv passwd and trac htaccess file.'>sync svnserv passwd and trac htaccess file.</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/Yz4EgNQVOnU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/</feedburner:origLink></item>
		<item>
		<title>cPanel log-viewer plugin</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/VNvzblxigSs/</link>
		<comments>http://www.nettipsdb.com/2011/05/cpanel-log-viewer-plugin/#comments</comments>
		<pubDate>Wed, 11 May 2011 18:40:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=310</guid>
		<description><![CDATA[I found this cool plugin for cPanel, which will provide additional feature for cPanel, for you to monitor certain log files located in /var/log/. However, this is just a very simple tool to view latest enrty in the log file, and to rotate those files individually. Please refer to their official page at http://www.logview.org/. They [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I found this cool plugin for cPanel, which will provide additional feature for cPanel, for you to monitor certain log files located in /var/log/. However, this is just a very simple tool to view latest enrty in the log file, and to rotate those files individually.</p>
<p>Please refer to their official page at <a href="http://www.logview.org/">http://www.logview.org/</a>. They also provided instructions to install it. Its pretty straight forward, just run these few commands, and you will see it installed in cPanel. </p>
<p><code>Login to your server as a root user<br />
wget http://www.logview.org/logview-install<br />
chmod +x logview-install<br />
./logview-install<br />
Wait for install complete message<br />
rm -f logview-install</code></p>
<p>And I got it from here : <a href="http://www.saher-team.com/saher/showthread.php?t=517">http://www.saher-team.com/saher/showthread.php?t=517</a></p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/VNvzblxigSs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/05/cpanel-log-viewer-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/05/cpanel-log-viewer-plugin/</feedburner:origLink></item>
		<item>
		<title>Alert on ssh user login</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/LTkJNbAru-E/</link>
		<comments>http://www.nettipsdb.com/2011/05/alert-on-ssh-user-login/#comments</comments>
		<pubDate>Wed, 11 May 2011 18:26:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=307</guid>
		<description><![CDATA[Saher-team provided a good tips on how to alert you by email, on any occurrence of ssh login for certain user. It is simple, by utilizing .bashrc file which is there by default in bash environment. Edit the .bashrc file in the intended user&#8217;s home directory to be monitored. vim /root/.bashrc. And add the following [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/' rel='bookmark' title='sync svnserv passwd and trac htaccess file.'>sync svnserv passwd and trac htaccess file.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Saher-team provided a good tips on how to alert you by email, on any occurrence of ssh login for certain user. It is simple, by utilizing .bashrc file which is there by default in bash environment. </p>
<p>Edit the .bashrc file in the intended user&#8217;s home directory to be monitored.</p>
<p><code>vim /root/.bashrc.</code></p>
<p>And add the following code after the last line of the file.</p>
<p><code> echo 'ALERT - Root Shell Access (YourserverName) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" you@yourdomain.com </code></p>
<p>Afterwards, you will get an email for each login made to that particular user.</p>
<p>Original post : <a href="http://www.saher-team.com/saher/showthread.php?t=523">http://www.saher-team.com/saher/showthread.php?t=523</a></p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/' rel='bookmark' title='sync svnserv passwd and trac htaccess file.'>sync svnserv passwd and trac htaccess file.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/LTkJNbAru-E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/05/alert-on-ssh-user-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/05/alert-on-ssh-user-login/</feedburner:origLink></item>
		<item>
		<title>Easy Linux Security</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/JDlJhgf55gk/</link>
		<comments>http://www.nettipsdb.com/2011/05/easy-linux-security/#comments</comments>
		<pubDate>Wed, 11 May 2011 18:22:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=303</guid>
		<description><![CDATA[I met a new friend today, ELS (Easy Linux Security), which will help you in securing your linux host installation in certain aspect. These are the list of features of ELS, how it can help you. (Retrieved from their original page, http://servermonkeys.com/els.php) Install RKHunter Install RKHunter Cronjob which emails a user-set email address nightly Install/update [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/' rel='bookmark' title='sync svnserv passwd and trac htaccess file.'>sync svnserv passwd and trac htaccess file.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I met a new friend today, ELS (Easy Linux Security), which will help you in securing your linux host installation in certain aspect. These are the list of features of ELS, how it can help you. (Retrieved from their original page, <a href="http://servermonkeys.com/els.php">http://servermonkeys.com/els.php</a>)</p>
<p><code>Install RKHunter<br />
Install RKHunter Cronjob which emails a user-set email address nightly<br />
Install/update APF<br />
Add SM/TP monitoring IPs (view information on these in Orbit)<br />
Install/update BFD<br />
Install CHKROOTKIT<br />
Install CHKROOTKIT Cronjob which emails a user-set email address nightly<br />
Disable Telnet<br />
Force SSH Protocol 2<br />
Secure /tmp<br />
Secure /var/tmp<br />
Secure /dev/shm<br />
Install/update Zend Optimizer<br />
Install/update eAccelerator<br />
MySQL 4.0 and 4.1 Configuration Optimization (cPanel only)<br />
Upgrade MySQL to 4.1 (cPanel only)<br />
Tweak WHM Settings for security and stability<br />
Configure RNDC if not already done (cPanel only)<br />
Change SSH port (also configure APF as necessary)<br />
Add wheel user and disable direct root login over SSH<br />
Optimize MySQL tables<br />
Install/update Libsafe<br />
Install/update ImageMagick (from latest source)<br />
Uninstall LAuS<br />
Harden sysctl.conf<br />
Install Chirpy's Free Exim Dictionary Attack ACL<br />
And more!</code></p>
<p>Its pretty easy to install, just copy and paste this whole command, and you will have els installed in your machine. </p>
<p><code>wget --output-document=installer.sh http://servermonkeys.com/projects/els/installer.sh; chmod +x installer.sh; sh installer.sh</code></p>
<p>In my particular case, I use it to optimize mysql configuration in my server. Just run the command below, ELS will backup your mysql my.cnf configuration file, and create a new my.cnf file. Just restart mysql, and your mysql will be running with new my.cnf file.</p>
<p><code>els - optimizemysqlconf </code></p>
<p>Original post from : <a href="http://www.saher-team.com/saher/showthread.php?t=547">http://www.saher-team.com/saher/showthread.php?t=547</a></p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
<li><a href='http://www.nettipsdb.com/2011/10/sync-svnserv-passwd-and-trac-htaccess-file/' rel='bookmark' title='sync svnserv passwd and trac htaccess file.'>sync svnserv passwd and trac htaccess file.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/JDlJhgf55gk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/05/easy-linux-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/05/easy-linux-security/</feedburner:origLink></item>
		<item>
		<title>Found a webshell in your server account? It might not be the only one</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/nc17FBxkAMs/</link>
		<comments>http://www.nettipsdb.com/2011/03/found-a-webshell-in-your-server-account-it-might-not-be-the-only-one/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 20:23:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=286</guid>
		<description><![CDATA[Have you ever encounter your site have been compromised, and you found some weird file being uploaded into your hosting account? Thats what the first thing the attacker would want to do on a web attack, to upload a webshell. Webshell is some kind of web-based backdoor, usually protected by a password, and allow the [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Have you ever encounter your site have been compromised, and you found some weird file being uploaded into your hosting account? Thats what the first thing the attacker would want to do on a web attack, to upload a webshell. Webshell is some kind of web-based backdoor, usually protected by a password, and allow the attacker to have control over your account, might be the whole system, if the system were configured wrongly. </p>
<p>Webshell usually being developed by hacker itself, and its equipped with a lot of useful tools (in hackers perspective), such as md5 cracker, file browser, initiate a listener, self-destruct function, php-mailer, and many more. Its usually being constructed in a single file, and usually encoded using base64 algorithm combined with some other algorithm for obfuscation. </p>
<p>The hacker will try to avoid detection, by using code obfuscation, and renaming the file name to a similar filename to your valid filenames, such as header.jpg.php. And ya, it&#8217;s a PHP file. How the file could be there in your account? Maybe you lost your password to them by malware with keylogger, and maybe by vulnerable apps in your site. So make sure, all your CMS and their respective plugins or components are updated to the latest version. </p>
<p><a href="http://www.nettipsdb.com/wp-content/uploads/2011/03/webshell1.png"><img src="http://www.nettipsdb.com/wp-content/uploads/2011/03/webshell1.png" alt="" title="webshell" width="527" height="370" class="aligncenter size-full wp-image-292" /></a></p>
<p>There is a wordpress plugin, called <a href="http://wordpress.org/extend/plugins/exploit-scanner/">Exploit Scanner</a>, which allow you to scan your wordpress installation for code injection on your filesystems and database. It&#8217;s a memory consuming process, but it may save your site. Do it regularly, and make sure you keep your plugin updated. </p>
<p>I also tried to find potential webshell using this command. And bear in mind, this is just a test search string to be applied here. You may have experience in webshell code, and know better keyword to search for these web-shells.</p>
<p><code>find . -type f -exec grep -l -E 'str_rot13|set_magic_quotes_runtime\(0\)|milw0rm' {} \; -print </code></p>
<p>If you found 1 webshell in your hosting account, you might have more webshells planted in your account. Assuming the same hacker will upload the same webshell to different places, those files will have the same MD5 values. For that, I wrote a bash script to search files with specific MD5 value.</p>
<p><code>#!/bin/bash<br />
MD5=`which md5`<br />
MD5SUM=`which md5sum`<br />
if [ -z $MD5SUM ]; then<br />
        MD5BINARY=`which md5`<br />
else<br />
        MD5BINARY=`which md5sum`<br />
fi<br />
if [ -z $1 ]; then<br />
        echo "Usage : $0 <md5 of the file, without the bracket>"<br />
        exit 0<br />
fi<br />
echo "\n----------- FILES FOUND WITH the MD5 value -------------"<br />
        find ./ -type f | xargs $MD5BINARY 2>&#038;1  /dev/null | grep $1<br />
echo ""</code></p>
<p>And how about this, even better, RussW wrote a bash script, <a href="http://forum.joomla.org/viewtopic.php?f=621&#038;t=590527&#038;p=2400272#p2400272">sploitFinder</a>, which will search for files with certain pattern in your filesystem. He has laid out various keyword to search for, specific to searching web-shells. You should give it a try. And bear in mind, its a bash script. You can only use it if you have shell access to your account. </p>
<p>As for now, here are the tips to help you going. Those scripts are there, and it might help you with something else later on. Who knows <img src='http://www.nettipsdb.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/10/purging-in-varnish/' rel='bookmark' title='Purging in varnish.'>Purging in varnish.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/nc17FBxkAMs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/03/found-a-webshell-in-your-server-account-it-might-not-be-the-only-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/03/found-a-webshell-in-your-server-account-it-might-not-be-the-only-one/</feedburner:origLink></item>
		<item>
		<title>lowest numbered MX record points to local host</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/QCRjStKkIP0/</link>
		<comments>http://www.nettipsdb.com/2011/03/lowest-numbered-mx-record-points-to-local-host/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 19:21:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[spam fighting]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=284</guid>
		<description><![CDATA[I encountered a problem when exim could not receive email to a specific domain name, with an error message like below 2011-03-04 03:10:45 H=mail-gy0-f178.google.com [209.85.160.178] F= temporarily rejected RCPT : lowest numbered MX record points to local host. A simple search lead me to a forum post on WebHostingTalk, exactly the same problem like mine. [...]
Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
<li><a href='http://www.nettipsdb.com/2011/11/viewing-psd-thumbnails-in-windows/' rel='bookmark' title='Viewing PSD thumbnails in Windows.'>Viewing PSD thumbnails in Windows.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I encountered a problem when exim could not receive email to a specific domain name, with an error message like below</p>
<p><code>2011-03-04 03:10:45 H=mail-gy0-f178.google.com [209.85.160.178] F=<sender@gmail.com> temporarily rejected RCPT <info@mydomainname.com>: lowest numbered MX record points to local host.</code></p>
<p>A simple search lead me to a forum post on <a href="http://www.webhostingtalk.com/archive/index.php/t-114505.html">WebHostingTalk</a>, exactly the same problem like mine. It appears there was a missing entry in </p>
<p><code>/etc/localdomains</code></p>
<p>A simple manual entry of mydomainname.com into the file fix the problem, the email delivered successfully. Here&#8217;s the log for the transaction.</p>
<p><code>2011-03-04 03:17:00 1PvE1D-0000fW-HD H=mail-gy0-f178.google.com [209.85.160.178] Warning: "SpamAssassin as localuser detected message as NOT spam (0.5)"<br />
2011-03-04 03:17:00 1PvE1D-0000fW-HD <= sender@gmail.com H=mail-gy0-f178.google.com [209.85.160.178] P=esmtps X=TLSv1:RC4-SHA:128 S=5365 id=AANLkTikkZEhcc2ZLXjMbXoBLVG_HGORQvW65+=L21jPD@mail.gmail.com<br />
2011-03-04 03:17:03 1PvE1D-0000fW-HD => info@mydomainname.com <info@mydomainname.com> R=lookuphost T=remote_smtp H=gmail-smtp-in.l.google.com [72.14.213.27] X=TLSv1:RC4-SHA:128<br />
2011-03-04 03:17:03 1PvE1D-0000fW-HD Completed</code></p>
<p><a href="http://www.webhostingtalk.com/archive/index.php/t-114505.html">http://www.webhostingtalk.com/archive/index.php/t-114505.html</a></p>
<p>Related posts:<ol>
<li><a href='http://www.nettipsdb.com/2011/05/windows-softwares-auto-installerupdater/' rel='bookmark' title='Windows softwares auto installer/updater'>Windows softwares auto installer/updater</a></li>
<li><a href='http://www.nettipsdb.com/2011/11/viewing-psd-thumbnails-in-windows/' rel='bookmark' title='Viewing PSD thumbnails in Windows.'>Viewing PSD thumbnails in Windows.</a></li>
</ol></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/QCRjStKkIP0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2011/03/lowest-numbered-mx-record-points-to-local-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2011/03/lowest-numbered-mx-record-points-to-local-host/</feedburner:origLink></item>
		<item>
		<title>Unable to locate wp-content folder</title>
		<link>http://feedproxy.google.com/~r/Nettipsdb/~3/fLXTvJpp-1Q/</link>
		<comments>http://www.nettipsdb.com/2010/11/unable-to-locate-wp-content-folder/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 03:17:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.nettipsdb.com/?p=280</guid>
		<description><![CDATA[I had a few encounters with this problem. I&#8217;m thinking of placing it here. I always forget where I got the solutions. This happens when you want to install plugin or themes, or upgrading them. Given that you have the FTP credentials correct, there some glitch where you might encounter this problem. One way, it [...]
<b>No related posts.</b>]]></description>
			<content:encoded><![CDATA[<p>I had a few encounters with this problem. I&#8217;m thinking of placing it here. I always forget where I got the solutions. This happens when you want to install plugin or themes, or upgrading them. Given that you have the FTP credentials correct, there some glitch where you might encounter this problem.</p>
<p>One way, it to make sure you&#8217;re pointing wordpress to exact folder when handling uploaded documents. Please check it at <strong>Settings &#8211;> Media</strong>. You should have something default, as suggested by wordpress, which is wp-<strong>content/uploads</strong>. Most of the time, this will just fix the problem.</p>
<p>Another way, you could refer to this site, <a href="http://tecnologia.simpleyclaro.com.ar/solucion-a-los-problemas-ftp-en-wordpress-2-8/">http://tecnologia.simpleyclaro.com.ar/solucion-a-los-problemas-ftp-en-wordpress-2-8/</a>. Ya, I do not understand it too. But <a href="http://www.hui-wang.info/en/2009/06/unable-to-locate-wordpress-content-directory-wp-content/">Hui Wang</a> have made a new english version of it, <a href="http://www.hui-wang.info/en/2009/06/unable-to-locate-wordpress-content-directory-wp-content/">here</a>, where you have to add a few lines of codes in you <strong>wp-config.php</strong> file.</p>
<p><code>if(is_admin()) {<br />
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));<br />
define( 'FS_CHMOD_DIR', 0751 );<br />
}</code></p>
<p>Just add them at the bottom of the file (append). The cool thing is, it will enable you to install/upgrade plugin and themes without entering your ftp credentials. </p>
<p>Hope this would benefit others with similar problem as well. Adios..</p>
<p><b>No related posts.</b></p><img src="http://feeds.feedburner.com/~r/Nettipsdb/~4/fLXTvJpp-1Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.nettipsdb.com/2010/11/unable-to-locate-wp-content-folder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.nettipsdb.com/2010/11/unable-to-locate-wp-content-folder/</feedburner:origLink></item>
	</channel>
</rss>

