<?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/" version="2.0">

<channel>
	<title>HostOnNet.com</title>
	
	<link>http://blog.hostonnet.com</link>
	<description>Windows, Linux, Ubuntu, Web Hosting</description>
	<lastBuildDate>Thu, 29 Dec 2011 10:36:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/hostonnet" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="hostonnet" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">hostonnet</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Installing CSF in OpenVZ Hardware Node</title>
		<link>http://blog.hostonnet.com/installing-csf-in-openvz-hardware-node</link>
		<comments>http://blog.hostonnet.com/installing-csf-in-openvz-hardware-node#comments</comments>
		<pubDate>Tue, 06 Dec 2011 21:29:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[hardware node]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1050</guid>
		<description><![CDATA[If you install CSF on OpenVZ hardware node, you won&#8217;t be able to access VPS. To fix this create a file /etc/csf/csfpre.sh with following content [root@server12 ~]# cat /etc/csf/csfpre.sh /sbin/iptables -A INPUT -i venet0 -j ACCEPT /sbin/iptables -A OUTPUT -o &#8230; <a href="http://blog.hostonnet.com/installing-csf-in-openvz-hardware-node">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you install CSF on OpenVZ hardware node, you won&#8217;t be able to access VPS. To fix this create a file /etc/csf/csfpre.sh with following content</p>
<pre>
[root@server12 ~]# cat /etc/csf/csfpre.sh
/sbin/iptables -A INPUT -i venet0 -j ACCEPT
/sbin/iptables -A OUTPUT -o venet0 -j ACCEPT
/sbin/iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
/sbin/iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0

[root@server12 ~]#
</pre>
<p>Restart csf, you will be able to access VPS.</p>
<pre>
csf -r
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/installing-csf-in-openvz-hardware-node/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eximrm – delete mails in exim queue</title>
		<link>http://blog.hostonnet.com/eximrm-delete-mails-in-exim-queue</link>
		<comments>http://blog.hostonnet.com/eximrm-delete-mails-in-exim-queue#comments</comments>
		<pubDate>Thu, 10 Nov 2011 11:17:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[eximrm]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1048</guid>
		<description><![CDATA[Create file /usr/local/bin/eximrm /usr/local/bin/eximrm with following content #!/bin/bash exim -bpu &#124; awk '{print $3}' &#124; xargs exim -Mrm chmod 755 the file chmod 755 /usr/local/bin/eximrm Now running the command &#8220;eximrm&#8221; will delete mails in Exim mail queue. [root@server12 ~]# eximrm &#8230; <a href="http://blog.hostonnet.com/eximrm-delete-mails-in-exim-queue">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Create file /usr/local/bin/eximrm</p>
<pre>
/usr/local/bin/eximrm
</pre>
<p>with following content</p>
<pre>
#!/bin/bash

exim -bpu | awk '{print $3}' | xargs exim -Mrm
</pre>
<p>chmod 755 the file</p>
<pre>
chmod 755 /usr/local/bin/eximrm
</pre>
<p>Now running the command &#8220;eximrm&#8221; will delete mails in Exim mail queue.</p>
<pre>
[root@server12 ~]# eximrm
Message 1RORpm-001oWx-SL has been removed
Message 1RORrq-001paP-Ug has been removed
Message 1RORut-001rEc-LY has been removed
Message 1RORvN-001rdN-Gs has been removed
Message 1RORvT-001rem-R9 has been removed
Message 1RORvZ-001rgb-Dc has been removed
Message 1RORvi-001rih-M4 has been removed
Message 1RORw8-001rpr-Lp has been removed
Message 1ROS0o-001uNy-Jl has been removed
Message 1ROS3l-001w1j-Dt has been removed
Message 1ROS3u-001w4P-NV has been removed
Message 1ROS5r-001x5m-4Q has been removed
Message 1ROS67-001x8O-Q6 has been removed
Message 1ROS6T-001xBu-N8 has been removed
Message 1ROS9Q-001zAP-VW has been removed
Message 1ROSA7-001zd3-1Y has been removed
Message 1ROSFa-0022T3-Fl has been removed
Message 1ROSFb-0022TM-Ch has been removed
Message 1ROSJz-0024wf-W1 has been removed
Message 1ROSRU-0029FD-L2 has been removed
Message 1ROSRc-0029IB-JX has been removed
Message 1ROSS2-0029PJ-BC has been removed
Message 1ROSSA-0029Rk-Un has been removed
Message 1ROSTg-002APg-ER has been removed
Message 1ROSU9-002Ap8-Oe has been removed
Message 1ROSVH-002BRX-6x has been removed
Message 1ROSVj-002BZP-2E has been removed
Message 1ROSX8-002CTN-DZ has been removed
[root@server12 ~]# cat  /usr/local/bin/eximrm
#!/bin/bash

exim -bpu | awk '{print $3}' | xargs exim -Mrm

[root@server12 ~]#
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/eximrm-delete-mails-in-exim-queue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Errors to File</title>
		<link>http://blog.hostonnet.com/php-errors-to-file</link>
		<comments>http://blog.hostonnet.com/php-errors-to-file#comments</comments>
		<pubDate>Tue, 08 Nov 2011 21:13:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php error]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1046</guid>
		<description><![CDATA[To log all PHP Errors to log file, edit php.ini file, add error_log = /var/log/php-errors.log To turn off displaying errors to browser, change value of display_errors to Off display_errors = Off]]></description>
			<content:encoded><![CDATA[<p>To log all PHP Errors to log file, edit php.ini file, add</p>
<pre>
error_log = /var/log/php-errors.log
</pre>
<p>To turn off displaying errors to browser, change value of display_errors  to Off</p>
<pre>
display_errors = Off
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/php-errors-to-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password Protect a Folder with .htaccess</title>
		<link>http://blog.hostonnet.com/password-protect-a-folder-with-htaccess</link>
		<comments>http://blog.hostonnet.com/password-protect-a-folder-with-htaccess#comments</comments>
		<pubDate>Fri, 04 Nov 2011 06:04:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[htpasswd]]></category>
		<category><![CDATA[password protect]]></category>
		<category><![CDATA[protect folder]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1042</guid>
		<description><![CDATA[To password protect a folder in Apache, create a password file [root@server12 ~]# htpasswd -c /path/to/.htpasswd admin New password: Re-type new password: Adding password for user admin [root@server12 ~]# This is create a password with user user &#8220;admin&#8221;. This file &#8230; <a href="http://blog.hostonnet.com/password-protect-a-folder-with-htaccess">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To password protect a folder in Apache, create a password file</p>
<pre>
[root@server12 ~]# htpasswd -c /path/to/.htpasswd admin
New password:
Re-type new password:
Adding password for user admin
[root@server12 ~]#
</pre>
<p>This is create a password with user user &#8220;admin&#8221;.</p>
<p>This file should be outside Apache document root.</p>
<p>Now create a .htaccess file with following content in the password protected folder.</p>
<pre>
AuthUserFile /path/to/.htpasswd
AuthName "Members Only"
AuthType Basic
Require valid-user
</pre>
<p>To access the folder, you will need to login as admin user created above.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/password-protect-a-folder-with-htaccess/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Develop Java Project in ZendStudio</title>
		<link>http://blog.hostonnet.com/develop-java-project-in-zendstudio</link>
		<comments>http://blog.hostonnet.com/develop-java-project-in-zendstudio#comments</comments>
		<pubDate>Sun, 16 Oct 2011 17:21:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[zend studio]]></category>
		<category><![CDATA[zendstudio]]></category>
		<category><![CDATA[zendstudio java]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1036</guid>
		<description><![CDATA[I recently started doing some small java projects. I have installed Eclipse/intelliJ. I prefer Eclipse as it compile program on saving. Since my project contains many independent programs i like this feature. I am already using ZendStudio 8. This is &#8230; <a href="http://blog.hostonnet.com/develop-java-project-in-zendstudio">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently started doing some small java projects. I have installed Eclipse/intelliJ. I prefer Eclipse as it compile program on saving. Since my project contains many independent programs i like this feature.</p>
<p>I am already using ZendStudio 8. This is also eclipse with some Zend plugins installed. So i descided to use Zend for Java coding, so don&#8217;t have to run two eclipses.</p>
<p>To install Java Support, go to</p>
<pre>
ZendStudio > Help > Install New Software
</pre>
<p>Click <strong>Available Sofftware sites</strong> link below Add button, enable Eclipse Repository</p>
<p><a href="http://blog.hostonnet.com/wp-content/uploads/2011/10/enable_java_zend_studio.jpg"><img src="http://blog.hostonnet.com/wp-content/uploads/2011/10/enable_java_zend_studio.jpg" alt="" title="enable_java_zend_studio" width="887" height="572" class="alignnone size-full wp-image-1037" /></a></p>
<p><a href="http://blog.hostonnet.com/wp-content/uploads/2011/10/zend_studio_install_java.jpg"><img src="http://blog.hostonnet.com/wp-content/uploads/2011/10/zend_studio_install_java.jpg" alt="" title="zend_studio_install_java" width="745" height="680" class="alignnone size-full wp-image-1038" /></a></p>
<p>Zend already have Java development installed, so you may not need to do above steps.</p>
<p>Go to</p>
<pre>
File > New Project
</pre>
<p>Check the &#8220;Show All Wizzards&#8221; check box.</p>
<p>Now you will able to See Java Project.</p>
<p><a href="http://blog.hostonnet.com/wp-content/uploads/2011/10/zend_studio_new_project.jpg"><img src="http://blog.hostonnet.com/wp-content/uploads/2011/10/zend_studio_new_project.jpg" alt="" title="zend_studio_new_project" width="519" height="503" class="alignnone size-full wp-image-1039" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/develop-java-project-in-zendstudio/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>pre style for wordpress</title>
		<link>http://blog.hostonnet.com/pre-style-for-wordpress</link>
		<comments>http://blog.hostonnet.com/pre-style-for-wordpress#comments</comments>
		<pubDate>Sun, 16 Oct 2011 16:25:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1034</guid>
		<description><![CDATA[pre { background: url("http://blog.hostonnet.com/files_hon/wp_pre_bg.gif") repeat scroll left top #FFFFFF; border: 1px solid #999999; color: #000000; display: block; font-family: "Courier New",Courier,monospace; font-size: 13px; line-height: 18px; margin: 10px 0 20px; overflow-x: scroll; overflow-y: auto; padding: 18px 10px 17px; position: relative; z-index: 50; &#8230; <a href="http://blog.hostonnet.com/pre-style-for-wordpress">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>
pre {
    background: url("http://blog.hostonnet.com/files_hon/wp_pre_bg.gif") repeat scroll left top #FFFFFF;
    border: 1px solid #999999;
    color: #000000;
    display: block;
    font-family: "Courier New",Courier,monospace;
    font-size: 13px;
    line-height: 18px;
    margin: 10px 0 20px;
    overflow-x: scroll;
    overflow-y: auto;
    padding: 18px 10px 17px;
    position: relative;
    z-index: 50;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/pre-style-for-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using host command</title>
		<link>http://blog.hostonnet.com/using-host-command</link>
		<comments>http://blog.hostonnet.com/using-host-command#comments</comments>
		<pubDate>Sun, 16 Oct 2011 15:12:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[nslookup]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1009</guid>
		<description><![CDATA[host command is used for dns lookup root@server1 [~]# host -t mx gmail.com gmail.com mail is handled by 5 gmail-smtp-in.l.google.com. gmail.com mail is handled by 40 alt4.gmail-smtp-in.l.google.com. gmail.com mail is handled by 30 alt3.gmail-smtp-in.l.google.com. gmail.com mail is handled by 10 &#8230; <a href="http://blog.hostonnet.com/using-host-command">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>host command is used for dns lookup</p>
<pre>
root@server1 [~]# host -t mx gmail.com
gmail.com mail is handled by 5 gmail-smtp-in.l.google.com.
gmail.com mail is handled by 40 alt4.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 30 alt3.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 10 alt1.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 20 alt2.gmail-smtp-in.l.google.com.
root@server1 [~]# host gmail.com
gmail.com has address 74.125.113.18
gmail.com has address 74.125.113.83
gmail.com has address 74.125.113.17
gmail.com has address 74.125.113.19
gmail.com mail is handled by 30 alt3.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 5 gmail-smtp-in.l.google.com.
gmail.com mail is handled by 10 alt1.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 20 alt2.gmail-smtp-in.l.google.com.
gmail.com mail is handled by 40 alt4.gmail-smtp-in.l.google.com.
root@server1 [~]#
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/using-host-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Missing Dependency: libjpeg.so.62 is needed by package xulrunner-1.9.2.22-1.el5_7.i386 (updates)</title>
		<link>http://blog.hostonnet.com/missing-dependency-libjpeg-so-62-is-needed-by-package-xulrunner-1-9-2-22-1-el5_7-i386-updates</link>
		<comments>http://blog.hostonnet.com/missing-dependency-libjpeg-so-62-is-needed-by-package-xulrunner-1-9-2-22-1-el5_7-i386-updates#comments</comments>
		<pubDate>Sat, 24 Sep 2011 10:14:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos yum error]]></category>
		<category><![CDATA[yum error]]></category>
		<category><![CDATA[yum update]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1003</guid>
		<description><![CDATA[On a cpanel sever, when running yum update, i get following error xulrunner-1.9.2.22-1.el5_7.i386 from updates has depsolving problems --&#62; Missing Dependency: libjpeg.so.62 is needed by package xulrunner-1.9.2.22-1.el5_7.i386 (updates) ghostscript-8.70-6.el5_7.3.i386 from updates has depsolving problems --&#62; Missing Dependency: libjpeg.so.62 is needed &#8230; <a href="http://blog.hostonnet.com/missing-dependency-libjpeg-so-62-is-needed-by-package-xulrunner-1-9-2-22-1-el5_7-i386-updates">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On a cpanel sever, when running yum update, i get following error</p>
<pre lang="bash">
xulrunner-1.9.2.22-1.el5_7.i386 from updates has depsolving problems
  --&gt; Missing Dependency: libjpeg.so.62 is needed by package xulrunner-1.9.2.22-1.el5_7.i386 (updates)
ghostscript-8.70-6.el5_7.3.i386 from updates has depsolving problems
  --&gt; Missing Dependency: libjpeg.so.62 is needed by package ghostscript-8.70-6.el5_7.3.i386 (updates)
--&gt; Running transaction check
---&gt; Package ghostscript.i386 0:8.70-6.el5_7.3 set to be updated
--&gt; Processing Dependency: libjpeg.so.62 for package: ghostscript
---&gt; Package kernel-PAE.i686 0:2.6.18-194.26.1.el5 set to be erased
---&gt; Package kernel-PAE-devel.i686 0:2.6.18-194.32.1.el5 set to be erased
---&gt; Package xulrunner.i386 0:1.9.2.22-1.el5_7 set to be updated
--&gt; Processing Dependency: libjpeg.so.62 for package: xulrunner
--&gt; Finished Dependency Resolution
xulrunner-1.9.2.22-1.el5_7.i386 from updates has depsolving problems
  --&gt; Missing Dependency: libjpeg.so.62 is needed by package xulrunner-1.9.2.22-1.el5_7.i386 (updates)
ghostscript-8.70-6.el5_7.3.i386 from updates has depsolving problems
  --&gt; Missing Dependency: libjpeg.so.62 is needed by package ghostscript-8.70-6.el5_7.3.i386 (updates)
Error: Missing Dependency: libjpeg.so.62 is needed by package ghostscript-8.70-6.el5_7.3.i386 (updates)
Error: Missing Dependency: libjpeg.so.62 is needed by package xulrunner-1.9.2.22-1.el5_7.i386 (updates)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
</pre>
<p>I checked if libjpeg is disabled in /etc/yum.conf</p>
<pre lang="bash">
root@server20 [~]# cat /etc/yum.conf | grep jpeg
exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* libjpeg* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
root@server20 [~]#
</pre>
<p>I checked another cpanel server, found libjpeg* is not disabled in that server. So i removed libjpeg* from /etc/yum.conf and yum update worked properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/missing-dependency-libjpeg-so-62-is-needed-by-package-xulrunner-1-9-2-22-1-el5_7-i386-updates/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide X-Powered-By: PHP</title>
		<link>http://blog.hostonnet.com/hide-x-powered-by-php</link>
		<comments>http://blog.hostonnet.com/hide-x-powered-by-php#comments</comments>
		<pubDate>Sun, 11 Sep 2011 20:12:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[expose_php]]></category>
		<category><![CDATA[hide php]]></category>
		<category><![CDATA[X-Powered-By: PHP]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1000</guid>
		<description><![CDATA[On a web site, HTTP headers show PHP version like X-Powered-By: PHP/5.1.6 [root@server12 ~]# curl -I http://netfree.netfreehost.com HTTP/1.1 200 OK Server: nginx/1.1.0 Date: Sun, 11 Sep 2011 20:00:40 GMT Content-Type: text/html Connection: keep-alive X-Powered-By: PHP/5.1.6 Cache-Control: no-cache, pre-check=0, post-check=0 Expires: &#8230; <a href="http://blog.hostonnet.com/hide-x-powered-by-php">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On a web site, HTTP headers show PHP version like X-Powered-By: PHP/5.1.6</p>
<pre>
[root@server12 ~]#  curl -I http://netfree.netfreehost.com
HTTP/1.1 200 OK
Server: nginx/1.1.0
Date: Sun, 11 Sep 2011 20:00:40 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: PHP/5.1.6
Cache-Control: no-cache, pre-check=0, post-check=0
Expires: 0
Pragma: no-cache
[root@server12 ~]#
</pre>
<p>To disable PHP version showing in header, edit /etc/php.ini</p>
<pre>
vi /etc/php.ini
</pre>
<p>Set expose_php to off</p>
<pre>
expose_php=Off
</pre>
<p>Now restart web server.</p>
<p>After restarting, Http headers stopped showing X-Powered-By: PHP/5.1.6</p>
<pre>
[root@server12 ~]#  curl -I http://netfree.netfreehost.com
HTTP/1.1 200 OK
Server: nginx/1.1.0
Date: Sun, 11 Sep 2011 20:04:41 GMT
Content-Type: text/html
Connection: keep-alive
Cache-Control: no-cache, pre-check=0, post-check=0
Expires: 0
Pragma: no-cache

[root@server12 ~]#
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/hide-x-powered-by-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Block IP in Windows 2003</title>
		<link>http://blog.hostonnet.com/block-ip-in-windows-2003</link>
		<comments>http://blog.hostonnet.com/block-ip-in-windows-2003#comments</comments>
		<pubDate>Sun, 04 Sep 2011 12:58:54 +0000</pubDate>
		<dc:creator>Annie</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[block ips]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[mmc]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=992</guid>
		<description><![CDATA[1. Start > Run > Type mmc and click run 2. In the console select Add/Remove Snap-in from the File menu and click the Add button in the Standalone tab. 3. In the Add Standalone Snap-in dialog box select IP &#8230; <a href="http://blog.hostonnet.com/block-ip-in-windows-2003">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>1. Start > Run > Type mmc and click run<br />
2. In the console select Add/Remove Snap-in from the File menu and click the Add button in the Standalone tab.<br />
3. In the Add Standalone Snap-in dialog box select IP Security Policy Management and click Add<br />
4. In the Select Computer or Domain dialog box select Local Computer and click Finish.<br />
5. Now just close the Add Standalone Snap-in and Add/Remove Snap-in dialog boxes by clicking the Close and OK buttons respectively.<br />
6. You should now be back to the console. In the left frame right click IP Security Policies on Local Computer and select Create IP Security Policy.<br />
7. Click Next and in the Name textbox give the policy a descriptive name. The Description textbox is optional.<br />
8. Click Next, leave Activate the default response rule checkbox ticked and click Next again.<br />
9. Leave the Edit Properties checkbox ticked and click Finish.<br />
10. The Properties dialog box should be open now. Click Add button and click Next in the wizard.<br />
11. Leave This rule does not specify a tunnel selected and click Next.<br />
12.  Leave All network connections selected and click Next.<br />
13.  You should now see the IP Filter List step of the wizard. You need to create a new filter, so don’t select any of the default ones, just click Add.<br />
14. Type a descriptive name for the filter list. The Description textbox is optional.<br />
15. Click Add again to start yet another wizard that will create a filter and add it to the list. Click Next.<br />
16. Leave the IP Traffic Source to My IP Address and click Next.<br />
17. For the IP Traffic Destination you could choose A specific IP Address or A specific IP Subnet to block an IP address or a range of IP address.<br />
18. Enter the IP address you would like to block and the Subnet mask if you selected A specific IP Subnet. Then click Next.<br />
19. Leave the protocol type as Any and click Next then Finish.</p>
<p>You now have the IP or a range of IPs blocked from accessing any service the local computer provides.</p>
<p><strong>To Block from Command line</strong></p>
<pre>
netsh ipsec static add filter filterlist=&quot;Banned IPS&quot; srcaddr=121.32.0.0 srcmask=255.252.0.0 dstaddr=me description=&quot;121.32.0.0/14&quot; protocol=any srcport=0 dstport=0
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/block-ip-in-windows-2003/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

