<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-21651778</id><updated>2012-01-27T15:50:14.755+06:00</updated><category term='Server Virtualization'/><category term='MySQL Server'/><category term='Windows Administration'/><category term='Web Server IIS'/><category term='Windows Tips'/><category term='Linux Administration'/><category term='Troubleshooting'/><category term='Networking'/><category term='Varnish'/><category term='Web Server Apache'/><category term='Microsoft SQL Server'/><category term='Ektron CMS400.NET'/><category term='Nginx Web Server'/><category term='MS Exchange 2003'/><title type='text'>Home of online tutorial</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>99</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-21651778.post-969524675737801079</id><published>2012-01-04T10:38:00.001+06:00</published><updated>2012-01-04T10:39:10.254+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Varnish'/><title type='text'>How to configure varnishd to log client IP addresses in Apache log</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Step-1: Add this line to "/etc/httpd/conf/httpd.conf" under the LogFormat Section.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %&amp;gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" varnishcombined&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Step-2: Add the varnishcombined to CustomLog&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Verdana,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;virtualhost *:80=""&gt;&lt;br /&gt;&amp;nbsp; CustomLog /var/log/apache2/www.example.com/access.log varnishcombined&lt;br /&gt;&lt;br /&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-969524675737801079?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/969524675737801079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2012/01/how-to-configure-varnishd-to-log-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/969524675737801079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/969524675737801079'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2012/01/how-to-configure-varnishd-to-log-client.html' title='How to configure varnishd to log client IP addresses in Apache log'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-4169874024625449387</id><published>2011-11-28T12:52:00.001+06:00</published><updated>2011-11-28T12:55:25.922+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Nginx Web Server'/><title type='text'>A Default Catchall Virtual Host For Nginx</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;default virtual host to catch all domains without a proper match. Thankfully this is as simple as adding the default_server flag to the listen directive. This causes all request without a HOST header or without another vhost matching the HOST header to be sent to this vhost instead. Examples are requests accessing the IP directly or if someone points a random domain at your IP. The server_name _; which you will see mentioned in a lot of guides means nothing and does nothing. It’s just a bogus invalid HOST header that can be used to make sure nothing ever matches it. You should be able to simply not define a server_name. &lt;br /&gt;&lt;br /&gt;server {&lt;br /&gt;&amp;nbsp; listen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80 default_server;&lt;br /&gt;&amp;nbsp; server_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; index&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index.html;&lt;br /&gt;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/www/default;&lt;br /&gt;}&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-4169874024625449387?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/4169874024625449387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/11/default-catchall-virtual-host-for-nginx.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4169874024625449387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4169874024625449387'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/11/default-catchall-virtual-host-for-nginx.html' title='A Default Catchall Virtual Host For Nginx'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2079948090224505072</id><published>2011-10-13T22:43:00.000+06:00</published><updated>2011-10-13T22:43:47.594+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to add second IP address to Debian Linux Using Command-Line</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size: x-small;"&gt;If you are a server system administrator or normal user some time you need to assign a second ipaddress to your server.For this you need to &lt;br /&gt;edit the /etc/network/interfaces file and you need to add the following syntax.&lt;br /&gt;&lt;br /&gt;#vi /etc/network/interfaces&lt;br /&gt;&lt;br /&gt;auto eth0:1&lt;br /&gt;iface eth0:1 inet static&lt;br /&gt;address 192.168.1.60&lt;br /&gt;netmask 255.255.255.0&lt;br /&gt;&lt;br /&gt;After entering all the details you need to restart networking services using the following command&lt;br /&gt;&lt;br /&gt;#/etc/init.d/networking restart&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2079948090224505072?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2079948090224505072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/10/how-to-add-second-ip-address-to-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2079948090224505072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2079948090224505072'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/10/how-to-add-second-ip-address-to-debian.html' title='How to add second IP address to Debian Linux Using Command-Line'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1529104676166297236</id><published>2011-10-08T16:35:00.000+06:00</published><updated>2011-10-08T16:35:27.283+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Nginx Web Server'/><title type='text'>Wordpress Permalink on Nginx</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Permalink wordpress&lt;br /&gt;0. Go to Permalinks&lt;br /&gt;1. Common settings – Custom Structure : /%postname%/ or /%category%/%postname%/&lt;br /&gt;2. Save Changes&lt;br /&gt;&lt;br /&gt;Setup nginx for permalink on wordpress:&lt;br /&gt;&lt;br /&gt;add this line on nginx.conf or vhost conf file:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;location / {&lt;br /&gt;root /var/html;&lt;br /&gt;index index.php index.html index.htm;&lt;br /&gt;&lt;br /&gt;# permalink wp&lt;br /&gt;if (!-e $request_filename) {&lt;br /&gt;rewrite ^(.*)$ /index.php?q=$1 last;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Restarting nginx&lt;br /&gt;&lt;br /&gt;# /etc/init.d/nginx restart&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1529104676166297236?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1529104676166297236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/10/wordpress-permalink-on-nginx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1529104676166297236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1529104676166297236'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/10/wordpress-permalink-on-nginx.html' title='Wordpress Permalink on Nginx'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6446383630956715556</id><published>2011-06-21T10:30:00.000+06:00</published><updated>2011-06-21T10:30:09.030+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Server'/><title type='text'>ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corrupted</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;A simple command may solve the problem, just issue the command show below&lt;br /&gt;#mysql_upgrade -uroot -p password&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, sans-serif; font-size: 12px; line-height: 19px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6446383630956715556?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6446383630956715556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/06/error-1548-hy000-cannot-load-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6446383630956715556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6446383630956715556'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/06/error-1548-hy000-cannot-load-from.html' title='ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corrupted'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7297073231283544838</id><published>2011-06-16T10:43:00.002+06:00</published><updated>2011-06-16T10:43:59.075+06:00</updated><title type='text'>How to Disable SSLv2 and Weak Ciphers(PCI Compliance )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;According to section 4.1 of the the Payment Card Industry Data Security Standard (PCI-DSS) v1.2, merchants handling credit card data are required to “use strong cryptography and security protocols such as SSL/TLS or IPSEC to safeguard sensitive cardholder data during transmission over open, public networks.”&lt;br /&gt;&lt;br /&gt;What does this mean? In order to validate your PCI DSS compliance in this area you will need to ensure that your relevant server(s) within your PCI environment are configured to disallow Secure Sockets Layer (SSL) version 2 as well as "weak" cryptography. You are also required to have quarterly PCI security vulnerability scans conducted against your externally facing PCI systems. Without disabling SSLv2 and weak ciphers you are almost guaranteed to fail the scans. In turn this will lead to falling out of compliance along with the associated risks and consequences.&lt;br /&gt;&lt;br /&gt;The SSLv2 Conundrum&lt;br /&gt;&lt;br /&gt;Does your server support SSLv2?&lt;br /&gt;&lt;br /&gt;How to test:&lt;br /&gt;&lt;br /&gt;You will need to have OpenSSL installed on the system that you will perform the tests from. Once installed, use the following command to test your web server, assuming port 443 is where you're providing https connections:&lt;br /&gt;&lt;br /&gt;# openssl s_client -ssl2 -connect SERVERNAME:443&lt;br /&gt;&lt;br /&gt;If the server does not support SSLv2 you should receive an error similar to the following:&lt;br /&gt;&lt;br /&gt;# openssl s_client -ssl2 -connect SERVERNAME:443&lt;br /&gt;&lt;br /&gt;CONNECTED(00000003)&lt;br /&gt;&lt;br /&gt;458:error:1407F0E5:SSL routines:SSL2_WRITE:ssl handshake failure:s2_pkt.c:428:&lt;br /&gt;&lt;br /&gt;How to configure Apache v2 to not accept SSLv2 connections:&lt;br /&gt;&lt;br /&gt;You will need to modify the SSLCipherSuite directive in the httpd.conf or ssl.conf file.&lt;br /&gt;&lt;br /&gt;An example would be editing the following lines to look similar to:&lt;br /&gt;&lt;br /&gt;SSLProtocol -ALL +SSLv3 +TLSv1&lt;br /&gt;&lt;br /&gt;Restart the Apache process and ensure that the server is functional. Also retest using OpenSSL to confirm that SSLv2 is no longer accepted.&lt;br /&gt;&lt;br /&gt;How to configure Microsoft IIS to not accept SSLv2 connections:&lt;br /&gt;&lt;br /&gt;You will need to modify the system’s registry.&lt;br /&gt;&lt;br /&gt;Merge the following keys to the Windows registry:&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\PCT 1.0\Server]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;Restart the system and ensure that the server is functional. Also retest using OpenSSL to confirm that SSLv2 is no longer accepted.&lt;br /&gt;&lt;br /&gt;Those Pesky Weak SSL Ciphers&lt;br /&gt;&lt;br /&gt;Does your server support weak SSL ciphers?&lt;br /&gt;&lt;br /&gt;How to test:&lt;br /&gt;&lt;br /&gt;You will need to have OpenSSL installed on the system that you will perform the tests from. Once installed, use the following command to test your web server, assuming port 443 is where you're providing https connections:&lt;br /&gt;&lt;br /&gt;# openssl s_client -connect SERVERNAME:443 -cipher LOW:EXP&lt;br /&gt;&lt;br /&gt;If the server does not support weak ciphers you should receive an error similar to the following:&lt;br /&gt;&lt;br /&gt;# openssl s_client -connect SERVERNAME:443 -cipher LOW:EXP&lt;br /&gt;&lt;br /&gt;CONNECTED(00000003)&lt;br /&gt;&lt;br /&gt;461:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:226:&lt;br /&gt;&lt;br /&gt;How to configure Apache v2 to not accept weak SSL ciphers:&lt;br /&gt;&lt;br /&gt;You will need to modify the SSLCipherSuite directive in the httpd.conf or ssl.conf file.&lt;br /&gt;&lt;br /&gt;An example would be editing the following lines to look similar to:&lt;br /&gt;&lt;br /&gt;SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM&lt;br /&gt;&lt;br /&gt;Restart the Apache process and ensure that the server is functional. Also retest using OpenSSL to confirm that weak SSL ciphers are no longer accepted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to configure Microsoft IIS to not accept weak SSL ciphers:&lt;br /&gt;&lt;br /&gt;You will need to modify the system’s registry.&lt;br /&gt;&lt;br /&gt;Merge the following keys to the Windows registry:&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\DES 56/56]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\NULL]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 40/128]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC2 56/128]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 40/128]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 56/128]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:00000000&lt;br /&gt;&lt;br /&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4 64/128]&lt;br /&gt;&lt;br /&gt;"Enabled"=dword:0000000&lt;br /&gt;&lt;br /&gt;Restart the system and ensure that the server is functional. Also retest using OpenSSL to confirm that weak SSL ciphers are no longer accepted..&lt;br /&gt;&lt;br /&gt;At this point have your Approved Scanning Vendor (ASV) scan your external facing PCI environment to validate. Making the above changes should cause the ASV scans to not tag and fail you on the following vulnerabilities:&lt;br /&gt;&lt;br /&gt;SSL Server Supports Weak Encryption&lt;br /&gt;SSL Server Allows Cleartext Encryption&lt;br /&gt;SSL Server May Be Forced to Use Weak Encryption&lt;br /&gt;SSL Server Allows Anonymous Authentication&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7297073231283544838?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7297073231283544838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/06/how-to-disable-sslv2-and-weak.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7297073231283544838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7297073231283544838'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/06/how-to-disable-sslv2-and-weak.html' title='How to Disable SSLv2 and Weak Ciphers(PCI Compliance )'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1595539960309114084</id><published>2011-06-16T10:38:00.001+06:00</published><updated>2011-06-16T10:39:57.120+06:00</updated><title type='text'>How to disable TCP/IP timestamps</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;The Problem: &amp;nbsp;&amp;nbsp; &lt;br /&gt;TCP timestamps are enabled on the remote host. This could allow a remote attacker to estimate the amount of time since the remote host was last booted. &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;Resolution: &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;TCP timestamps are generally only useful for testing, and support for them should be disabled if not needed.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;To disable TCP timestamps on Linux, add the following line to the /etc/sysctl.conf file:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; net.ipv4.tcp_timestamps = 0&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;To disable TCP timestamps on Windows, set the following registry value:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value: Tcp1323Opts&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data: 0 or 1 &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;To disable TCP timestamps on Cisco, use the following command:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; no ip tcp timestamp&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1595539960309114084?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1595539960309114084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/06/how-to-disable-tcpip-timestamps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1595539960309114084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1595539960309114084'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/06/how-to-disable-tcpip-timestamps.html' title='How to disable TCP/IP timestamps'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2521834772787276680</id><published>2011-05-06T11:51:00.001+06:00</published><updated>2011-05-06T12:10:56.542+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>VSFTP with virtual users on CentOS 5.6</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;A virtual user is a user login which does not exist as a real user in the system in /etc/passwd and /etc/shadow file. Virtual users can therefore be more secure than real users, because a compromised account can only use the FTP server but cannot login to system to use other services. As vsftpd supports virtual users with PAM, we can take full advantages of it.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Requirements:&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;1. Berkeley DB (version 4) databases&lt;br /&gt;2. pam_userdb.so&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Step-1: Install Vsftpd, Berkeley DB And Utilities&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Type the following command as root user&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;# yum install db4-utils db4&amp;nbsp; vsftpd&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Step-2: Create The Virtual Users Database&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To create a "db4" format file, first create a plain text files with the usernames and password on alternating lines.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;For e.g. create user called "ftpuser1" with password called "ftpuserpass1" &lt;br /&gt;# cd /etc/vsftpd&lt;br /&gt;# vi vsftpd.passwd.raw&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;ftpuser1&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;ftpuserpass1&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;ftpuser2&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;ftpuserpass2&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Save the file and Exit. Next, we need to create the actual database file like this way:&lt;br /&gt;# db_load -T -t hash -f vsftpd.passwd.raw vsftpd.passwd.db&lt;br /&gt;# chmod 600 vsftpd.passwd.db&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; Step-3: Configure Vsftpd for virtual user&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#cd /etc/vsftpd/&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Add and modify the following settings in vsftpd config file. &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#vi vsftpd.conf&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;# Allow anonymous FTP? (Beware - allowed by default if you comment this out).&lt;br /&gt;anonymous_enable=NO&lt;br /&gt;Local_enable=YES&lt;br /&gt;# Virtual users will use the same privileges as local users.&lt;br /&gt;# It will grant write access to virtual users. Virtual users will use the&lt;br /&gt;# same privileges as anonymous users, which tends to be more restrictive&lt;br /&gt;# (especially in terms of write access).&lt;br /&gt;virtual_use_local_privs=YES&lt;br /&gt;write_enable=YES&lt;br /&gt;#Get chmod Right for Apache,This will set new uploaded files chmod to 644 and folders to 755.&lt;br /&gt;file_open_mode=0666&lt;br /&gt;local_umask=0022&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;# Set the name of the PAM service vsftpd will use&lt;br /&gt;# RHEL / centos user should use /etc/pam.d/vsftpd&lt;br /&gt;pam_service_name=vsftpd.virtual&lt;br /&gt;&lt;br /&gt;# Activates virtual users&lt;br /&gt;guest_enable=YES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#Specify Guest user name&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;guest_username=apache&lt;br /&gt;# Chroot user and lock down to their home directories&lt;br /&gt;chroot_local_user=YES&lt;br /&gt;# User Level configuration file such as user home directory.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; user_config_dir=/etc/vsftpd/user_conf&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;## Hide ids from user, all user and group information in directory listings will be hidden&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;hide_ids=YES&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Save and exit the file.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Step-4Create a PAM File Which Uses Your New Database&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;The following PAM is used to authenticate users using your new database. Create /etc/pam.d/vsftpd.virtual:&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#vi /etc/pam.d/vsftpd.virtual&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Append the following:&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#%PAM-1.0&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;auth required pam_userdb.so db=/etc/vsftpd/vsftpd.passwd&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;account required pam_userdb.so db=/etc/vsftpd/vsftpd.passwd&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;session&amp;nbsp;&amp;nbsp;&amp;nbsp; required&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pam_loginuid.so&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Save &amp;amp; Exit.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Step-5: Creating User Configuration file&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#cd /etc/vsftpd&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#mkdir user_conf&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#vi ftpuser1&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;local_root=/var/www/vhosts/domain1.com/public_html &lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#vi ftpuser2&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;local_root=/var/www/vhosts/domain2.com/public_html&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;for each user, you have to create one file.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Create The Location Of The Files&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Step-7: You need to set up the location of the files / dirs for the virtual users. Type the following command:&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;# mkdir -p /var/www/vhosts/domain1.com/public_html&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;# mkdir -p /var/www/vhosts/domain2.com/public_html&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;# chown -R apache:apache /var/www/vhosts&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Step-8:Restart The FTP Server&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Type the following command:&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;# service vsftpd restart&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Step-9: Test Your Setup&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Test with your favorite ftp client program.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2521834772787276680?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2521834772787276680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/05/vsftp-with-virtual-users-on-centos-56.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2521834772787276680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2521834772787276680'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/05/vsftp-with-virtual-users-on-centos-56.html' title='VSFTP with virtual users on CentOS 5.6'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3872211835365803096</id><published>2011-04-27T11:54:00.001+06:00</published><updated>2011-04-27T11:55:38.413+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to install Apache Solr on CentOS 5.5</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Requirements:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Java 1.6 or greater. Running java -version at the command line should indicate a version number starting with 1.6. Gnu's GCJ is not supported and does not work with Solr&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Step-1: Install  sun Jdk&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;First remove the openjdk if already installed with the following command:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#yum remove java&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Download the sun jdk from this location http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586-rpm.bin&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#cd /tmp&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-i586-rpm.bin&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#chmod +x &lt;/span&gt;&lt;span style="font-size: small;"&gt;jdk-6u25-linux-i586-rpm.bin&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#./&lt;/span&gt;&lt;span style="font-size: small;"&gt;jdk-6u25-linux-i586-rpm.bin&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#java -version&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Output should be something like this:-&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;java version "1.6.0_25"&lt;br /&gt;Java(TM) SE Runtime Environment (build 1.6.0_25-b06)&lt;br /&gt;Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Step-2: Install Tomcat 6&lt;br /&gt;&lt;br /&gt;We will use jpackage repository for installing tomcat rpm as latest version of tomcat not present in centos base repos. Go to /etc/yum.repos.d/ and issue the following command.&lt;br /&gt;&lt;br /&gt;#cd /etc/yum.repos.d/&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;# wget http://jpackage.org/jpackage50.repo&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Step-3: Setting up Tomcat Manager account&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Go to /etc/tomcat6 directory and edit the tomcat-users.xml file&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#cd /etc/tomcat6/&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#vi tomcat-users.xml&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Add the following line just before the end tag of &lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;role rolename="manager"&gt;&amp;nbsp;&lt;/role&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;user password="s3cret" roles="manager" username="tomcat"&gt;&lt;/user&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Finally start tomcat with the following command and test it with any browser.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;#service tomcat6 start&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Open your favorite internet browser and browse the tomcat url http://serverip:8080&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Step-5: Download &amp;amp; Setup Apache Solr&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Download the latest stable version of Solr, in this tutorial, i have used 3.1.0, you can download it from http://mirrors.bd-servers.net/apache//lucene/solr/3.1.0/apache-solr-3.1.0.tgz&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#cd /tmp&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#wget http://mirrors.bd-servers.net/apache/lucene/solr/3.1.0/apache-solr-3.1.0.tgz&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#tar -zxvf apache-solr-3.1.0.tgz&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#mv &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;apache-solr-3.1.0 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;apache-solr&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#mv &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;apache-solr /etc/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#cp /etc/&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;apache-solr/dist/apache-solr-3.1.0.war /usr/share/tomcat6/webapps/solr.war&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#vi /etc/tomcat6/Catalina/localhost/solr.xml [This will be a new file]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Add the following lines&lt;br /&gt;&lt;br /&gt;&lt;context crosscontext="true" debug="0" docbase="/usr/local/tomcat/webapps/solr.war"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;environment name="solr/home" override="true" type="java.lang.String" value="/etc/apache-solr/example/solr"&gt;&lt;br /&gt;&lt;/environment&gt;&lt;/context&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;#vi /etc/apache-solr/example/solr/conf/solrconfig.xml&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;# Fine &lt;datadir&gt; $ {solr.data.dir:}  and modify to&lt;/datadir&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;datadir&gt; $ {solr.data.dir: /etc/apache-solr/solr/example/solr/data} &lt;br /&gt;&lt;/datadir&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Save the file&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Make sure /etc/apache-solr/example/solr/data directory is writable by tomcat user and finally restart Tocamt6 and browse http://serverip:8080/solr&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;You should see the solr page&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Hope this tutorial helps.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3872211835365803096?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3872211835365803096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/04/how-to-install-apache-solr-on-centos-55.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3872211835365803096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3872211835365803096'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/04/how-to-install-apache-solr-on-centos-55.html' title='How to install Apache Solr on CentOS 5.5'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1299435896468399560</id><published>2011-04-06T12:15:00.001+06:00</published><updated>2011-04-27T09:22:21.760+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How To Install Sun Java JDK on CentOS 5.5</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Installing Sun Java JDK in CentOS 5.2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Download the Sun Java JDK from the Java SE Downloads page.&lt;br /&gt;&lt;br /&gt;Using your root account, or the sudo command, run the jdk-6u11-linux-i586-rpm.bin (chmod it if necessary). This will install Java packages.&lt;br /&gt;&lt;br /&gt;Type java -version. In my case, it show gcj info instead of Sun one.&lt;br /&gt;For selecting the java command, we can use the alternatives program. Use:&lt;br /&gt;&lt;br /&gt;/usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2&lt;br /&gt;&lt;br /&gt;Now run&lt;br /&gt;&lt;br /&gt;/usr/sbin/alternatives --config java&lt;br /&gt;&lt;br /&gt;and select option 2.&lt;br /&gt;&lt;br /&gt;Running java -version now should show Sun JVM info.&lt;br /&gt;&lt;br /&gt;Remember that maybe you want to do the same with javac and other Java commands.&lt;br /&gt;&lt;br /&gt;Hope this helps.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1299435896468399560?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1299435896468399560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/04/how-to-install-sun-java-jdk-on-centos.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1299435896468399560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1299435896468399560'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/04/how-to-install-sun-java-jdk-on-centos.html' title='How To Install Sun Java JDK on CentOS 5.5'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6408068760267669812</id><published>2011-04-06T12:14:00.000+06:00</published><updated>2011-04-06T12:14:21.903+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Administration'/><title type='text'>How To Synchronize the Windows 2003 Domain controller with an external time source</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;To synchronize the domain controller with an external time source&lt;br /&gt;1. &lt;br /&gt;&amp;nbsp;Click Start, and then click Command Prompt.&lt;br /&gt;&amp;nbsp;2. &lt;br /&gt;&amp;nbsp;In the Command Prompt window, type the following line, where peers is a comma-separated list of IP addresses of the appropriate time sources, and press ENTER: &lt;br /&gt;&lt;br /&gt;w32tm /config /manualpeerlist: peers /syncfromflags:MANUAL&lt;br /&gt;&lt;br /&gt;The time sources you choose depend on your time zone. For example, if your domain controller is located in the Pacific Time zone, this line might read:&lt;br /&gt;&lt;br /&gt;w32tm /config /manualpeerlist:131.107.1.10 /syncfromflags:MANUAL&lt;br /&gt;&lt;br /&gt;In this example, the IP address of the timeserver is used instead of the fully qualified domain name for security purposes.&lt;br /&gt;&lt;br /&gt;3. &lt;br /&gt;&amp;nbsp;Press ENTER. You should get a message that the command completed successfully.&lt;br /&gt;&lt;br /&gt;4. &lt;br /&gt;&amp;nbsp;Type w32tm /config /update&lt;br /&gt;&lt;br /&gt;5. &lt;br /&gt;&amp;nbsp;Press ENTER. You should get a message that the command completed successfully. &lt;br /&gt;&lt;br /&gt;W32time uses a variable poll interval based on the quality of timesync with the server. On DCs, this interval defaults to between 64 and 1024 seconds.&lt;br /&gt;&lt;br /&gt;6. &lt;br /&gt;&amp;nbsp;To immediately synchronize with the external time server, type w32tm /resync and press ENTER. You should get a message that the command completed successfully.&lt;br /&gt;&lt;br /&gt;7. &lt;br /&gt;&amp;nbsp;Type Exit and press ENTER.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6408068760267669812?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6408068760267669812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/04/how-to-synchronize-windows-2003-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6408068760267669812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6408068760267669812'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/04/how-to-synchronize-windows-2003-domain.html' title='How To Synchronize the Windows 2003 Domain controller with an external time source'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8262266383133232816</id><published>2011-03-16T20:36:00.000+06:00</published><updated>2011-03-16T20:36:45.697+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Server'/><title type='text'>How to Reset MySql root password in Debian</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Login as root to the machine where your MySQL server is installed&lt;br /&gt;&lt;br /&gt;Stop the MySQL server by using either of the following command&lt;br /&gt;&lt;br /&gt;#/etc/init.d/mysql stop&lt;br /&gt;&lt;br /&gt;Now you need to Start MySQL server without password&lt;br /&gt;&lt;br /&gt;# mysqld_safe --skip-grant-tables &amp;amp;&lt;br /&gt;&lt;br /&gt;Connect to mysql server using mysql client with the following command&lt;br /&gt;&lt;br /&gt;# mysql -u root&lt;br /&gt;&lt;br /&gt;Now you should be having mysql prompt&lt;br /&gt;&lt;br /&gt;mysql&amp;gt;&lt;br /&gt;&lt;br /&gt;Now you need to Setup new MySQL root user password&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; use mysql;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; update user set password=PASSWORD(“newrootpassword”) where user=’root’;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; flush privileges;&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; quit&lt;br /&gt;&lt;br /&gt;Note: Replace newrootpassword with the new root password for MySQL server. Flush Privileges is needed to making the password change effect immediately.&lt;br /&gt;&lt;br /&gt;Now you need to Stop MySQL Server using the following command&lt;br /&gt;&lt;br /&gt;# /etc/init.d/mysql stop&lt;br /&gt;&lt;br /&gt;Test Your New Mysql root password&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8262266383133232816?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8262266383133232816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/03/how-to-reset-mysql-root-password-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8262266383133232816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8262266383133232816'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/03/how-to-reset-mysql-root-password-in.html' title='How to Reset MySql root password in Debian'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-676137598582778499</id><published>2011-02-15T20:51:00.000+06:00</published><updated>2011-02-15T20:51:01.287+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to change email envelope from address using PHP mail</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Recently i had to configure one of my email server to relay all email through a third party email service provider name Authsmtp. Authsmtp email server has sender verification policy enabled. so all the email generating from my php application had to use pre defined from address for successful email delivery, my php application was using php mail function to send email. But by default phpmail doesn't change email envelope from address, so though i was using required from address, still the mail server was getting email from apache@localhost. After some search i have found this solution to overwrite email envelope from address.&lt;br /&gt;&lt;br /&gt;mail(‘to@somedomain.com’,'subject!’,'body!’,'From: from@yourdomain.com’,'-f from@example.com’);&lt;br /&gt;&lt;br /&gt;Hope this will save some ones precious time.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-676137598582778499?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/676137598582778499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/02/how-to-change-email-envelope-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/676137598582778499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/676137598582778499'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/02/how-to-change-email-envelope-from.html' title='How to change email envelope from address using PHP mail'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3596853278646524309</id><published>2011-02-11T10:00:00.000+06:00</published><updated>2011-02-11T10:00:05.328+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to masquerade or change outgoing SMTP email or from mail address in postfix</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;address rewriting allows changing outgoing email ID or domain name itself. This is good for hiding internal user names. For example:&lt;br /&gt;SMTP user: jack&lt;br /&gt;EMAIL ID: jack @domain.com&lt;br /&gt;Server name: srv01.domain.com&lt;br /&gt;&lt;br /&gt;Postfix MTA offers smtp_generic_maps parameter. You can specify lookup tables that replace local mail addresses by valid Internet addresses when mail leaves the machine via SMTP.&lt;br /&gt;&lt;br /&gt;Open your main.cf file&lt;br /&gt;# vi /etc/postfix/main.cf&lt;br /&gt;&lt;br /&gt;Append following parameter&lt;br /&gt;smtp_generic_maps = hash:/etc/postfix/generic&lt;br /&gt;&lt;br /&gt;Save and close the file. Open /etc/postfix/generic file:&lt;br /&gt;# vi /etc/postfix/generic&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;jack@domain.com&amp;nbsp; mamun@example.com&lt;br /&gt;&lt;br /&gt;Save and close the file. Create or update generic postfix table:&lt;br /&gt;# postmap /etc/postfix/generic&lt;br /&gt;&lt;br /&gt;Restart postfix:&lt;br /&gt;# /etc/init.d/postfix restart&lt;br /&gt;&lt;br /&gt;When mail is sent to a remote host via SMTP this replaces jack@domain.com by mamun@example.com mail address. You can use this trick to replace address with your ISP address if you are connected via local SMTP.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3596853278646524309?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3596853278646524309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/02/how-to-masquerade-or-change-outgoing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3596853278646524309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3596853278646524309'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/02/how-to-masquerade-or-change-outgoing.html' title='How to masquerade or change outgoing SMTP email or from mail address in postfix'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3785458062253732196</id><published>2011-02-10T12:01:00.000+06:00</published><updated>2011-02-10T12:01:22.286+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to setup smart hosts with authentication in postfix</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Step-1: Create a text file as follows:&lt;br /&gt;&lt;br /&gt;# P=/etc/postfix/password&lt;br /&gt;# vi $P&lt;br /&gt;&lt;br /&gt;The format of the client password file is as follows:&lt;br /&gt;&lt;br /&gt;#smtp.isp.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username:password&lt;br /&gt;new.smtp.com&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; jack:pass123&lt;br /&gt;&lt;br /&gt;Save and close the file. Set permissions:&lt;br /&gt;&lt;br /&gt;Step-2: Make the password file readable only to root&lt;br /&gt;&lt;br /&gt;# chown root:root $P&lt;br /&gt;# chmod 0600 $P&lt;br /&gt;# postmap hash:$P&lt;br /&gt;&lt;br /&gt;Step-3: Enable relayhost with authentication.&lt;br /&gt;&lt;br /&gt;Open main.cf file, enter:&lt;br /&gt;# vi /etc/postfix/main.cf&lt;br /&gt;&lt;br /&gt;Append following config directives:&lt;br /&gt;&lt;br /&gt;relayhost = new.smtp.com&lt;br /&gt;smtp_sasl_auth_enable = yes&lt;br /&gt;smtp_sasl_password_maps = hash:/etc/postfix/password&lt;br /&gt;smtp_sasl_security_options =&lt;br /&gt;&lt;br /&gt;Save and close the file. &lt;br /&gt;&lt;br /&gt;Step-4: Restart Postfix:&lt;br /&gt;# /etc/init.d/postfix reload&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3785458062253732196?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3785458062253732196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/02/how-to-setup-smart-hosts-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3785458062253732196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3785458062253732196'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/02/how-to-setup-smart-hosts-with.html' title='How to setup smart hosts with authentication in postfix'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8976639902745305318</id><published>2011-01-26T15:28:00.000+06:00</published><updated>2011-01-26T15:28:27.176+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Multiple FTP Accounts for a single Domain in Linux</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Login to server via SSH as root.&lt;br /&gt;Issue the shell command:&lt;br /&gt;&lt;br /&gt;#cat /etc/passwd |grep ‘jerry’&lt;br /&gt;&lt;br /&gt;This will show you a line similar to the following:&lt;br /&gt;&lt;br /&gt;jerry:x:10041:10001::/var/www/vhosts/example.com:/bin/false&lt;br /&gt;&lt;br /&gt;The first number (after the 2nd colon : ) is 10041, so this is the UID of user jerry. You will need this in the ‘useradd’ lines since useradd wants a number for the UID.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then run the following shell commands to create the users and passwords:&lt;br /&gt;#useradd -u 10041 -o -d /var/www/vhosts/example.com -g jerry -s /bin/false mouse&lt;br /&gt;&lt;br /&gt;#useradd -u 10041 -o -d /var/www/vhosts/example.com -g jerry -s /bin/false tomcat&lt;br /&gt;&lt;br /&gt;#passwd mouse (enter the new password and confirm it)&lt;br /&gt;#passwd tomcat (enter the new password and confirm it)&lt;br /&gt;&lt;br /&gt;You should now be able to use an FTP client to login with that user’s name and password.&lt;br /&gt;&lt;br /&gt;User jerry and tomcat should be able to see the example.com docroot just as user jerry can. You should NOT be able to browse above the example.com docroot directory. All 3 users should have the same access to the files since they belong to the same group, so no matter which of the users created or edited the file(s), all should be able to access/edit/whatever the same files.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you wanted to change their default directory and limit them to a subdomain docroot, in the useradd line above, you would change “/var/www/vhosts/example.com” to “/var/www/vhosts/example.com/subdomains/subname”. So if you wanted to create the same users, but for a subdomain called ‘admin’:&lt;br /&gt;Then do the following shell commands to create the users and passwords:&lt;br /&gt;&lt;br /&gt;#useradd -u 10041 -o -d /var/www/vhosts/example.com/subdomains/admin -g jerry -s /bin/false mouse&lt;br /&gt;#useradd -u 10041 -o -d /var/www/vhosts/example.com/subdomains/admin -g jerry -s /bin/false tomcat&lt;br /&gt;&lt;br /&gt;#passwd jill (enter the new password and confirm it)&lt;br /&gt;#passwd bob (enter the new password and confirm it)&lt;br /&gt;&lt;br /&gt;Deleting an FTP user:&lt;br /&gt;&lt;br /&gt;#userdel fptusername&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8976639902745305318?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8976639902745305318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/01/multiple-ftp-accounts-for-single-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8976639902745305318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8976639902745305318'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/01/multiple-ftp-accounts-for-single-domain.html' title='Multiple FTP Accounts for a single Domain in Linux'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3813862934558738527</id><published>2011-01-13T09:18:00.002+06:00</published><updated>2011-01-13T09:21:37.472+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>MySQL Db backups using PHP script</title><content type='html'>Yesterday, i was transferring one of my php/mysql site to another hosts, at the time of migration i found that i forgot the control panel password, but luckily my ftp password were working. So i could transfer my files to the new server but then i face problem transferring the mysql database, as i don't have the PC/PhpMyAdmin access, i was thinking its impossible, latter i found that its very simple to take the db backup with a small php scripts. I am posting it here so that it can be helpful to others if ever needed.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;------$results = exec('mysqldump -uUserName --pPassword dbname &amp;gt; --dbname.sql');&lt;br /&gt;&lt;br /&gt;---?&amp;gt;&lt;/blockquote&gt;&lt;/blockquote&gt;I wrote this simple php script and uploaded to my old server, and browsed the page, it backed up my db and placed it on my webroot.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3813862934558738527?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3813862934558738527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/01/mysql-db-backups-using-php-script.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3813862934558738527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3813862934558738527'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/01/mysql-db-backups-using-php-script.html' title='MySQL Db backups using PHP script'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7883966856465811272</id><published>2011-01-05T13:13:00.000+06:00</published><updated>2011-01-05T13:13:18.226+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Server'/><title type='text'>mysqldump: Got error: 145: Table './dbname/tablename' is marked as crashed and should be repaired when using LOCK TABLES</title><content type='html'>If you get this error message while backing up mysql database with mysqldump, you can fix it simply using a command.&lt;br /&gt;# myisamchk -r /var/lib/mysql/dbname/tablename.MYI&lt;br /&gt;- recovering (with sort) MyISAM-table '/var/lib/mysql/dbname/tablename.MYI'&lt;br /&gt;Data records: 4301&lt;br /&gt;- Fixing index 1&lt;br /&gt;Found block that points outside data file at 2051036&lt;br /&gt;Found block that points outside data file at 2051040&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is myisamchk is the utility tool that we need to use and "/var/lib/mysql/dbname/tablename.MYI" is the physical path of the table.&lt;br /&gt;&lt;br /&gt;Hope this will help you to solve your problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7883966856465811272?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7883966856465811272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2011/01/mysqldump-got-error-145-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7883966856465811272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7883966856465811272'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2011/01/mysqldump-got-error-145-table.html' title='mysqldump: Got error: 145: Table &apos;./dbname/tablename&apos; is marked as crashed and should be repaired when using LOCK TABLES'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-60106415353332121</id><published>2010-11-03T11:04:00.000+06:00</published><updated>2010-11-03T11:04:59.899+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Mount directory with another directory in Linux</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px;"&gt;&amp;nbsp;To mount a linux directory with another directory on the same system, issue the following command:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px;"&gt;#mount --bind /source/directory/ /destination/directory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px;"&gt;To unmount, issue the following command:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px;"&gt;#umount /destination/directory&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-60106415353332121?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/60106415353332121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/11/mount-directory-with-another-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/60106415353332121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/60106415353332121'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/11/mount-directory-with-another-directory.html' title='Mount directory with another directory in Linux'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3473338963916894057</id><published>2010-11-01T10:16:00.000+06:00</published><updated>2010-11-01T10:16:45.642+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Administration'/><title type='text'>How to move SSL from windows to linux</title><content type='html'>Step-1: First Export your IIS certificate into a pfx file &lt;br /&gt;Run mmc.exe from command prompt&lt;br /&gt;Click the 'Console' menu and then click 'Add/Remove Snap-in'.&lt;br /&gt;Click the 'Add' button and then choose the 'certificates' snap-in and click on 'Add'.&lt;br /&gt;Select 'Computer Account' then click 'Next'.&lt;br /&gt;Select 'Local Computer' and then click 'OK'.&lt;br /&gt;Click 'Close' and then click 'OK'.&lt;br /&gt;Expand the menu for 'Certificates' and click on the 'Personal' folder.&lt;br /&gt;Right click on the certificate that you want to export and select 'All tasks' -&amp;gt; 'Export'.&lt;br /&gt;A wizard will appear. Make sure you check the box to include the private key and continue through with this wizard until you have a .PFX file.&lt;br /&gt;&lt;br /&gt;Step-2: Next run openssl to extract the private key, and the cert file.&lt;br /&gt;# Export the private key file from the pfx file&lt;br /&gt;openssl pkcs12 -in filename.pfx -nocerts -out key.pem&lt;br /&gt;# Export the certificate file from the pfx file&lt;br /&gt;openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem&lt;br /&gt;# This removes the passphrase from the private key so Apache won't&lt;br /&gt;# prompt you for your passphase when it starts&lt;br /&gt;openssl rsa -in key.pem -out server.key&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3473338963916894057?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3473338963916894057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/11/how-to-move-ssl-from-windows-to-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3473338963916894057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3473338963916894057'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/11/how-to-move-ssl-from-windows-to-linux.html' title='How to move SSL from windows to linux'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-355585082891187621</id><published>2010-10-15T16:02:00.000+06:00</published><updated>2010-10-15T16:02:23.839+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft SQL Server'/><title type='text'>Only 480 error messages, but it should contain at least 641 error messages</title><content type='html'>Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,&lt;br /&gt;but it should contain at least 641 error messages.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#yum list installed | grep mysql&lt;br /&gt;&lt;br /&gt;In my case, the both package mysql.i386 and mysql.x86_64 is installed. So, i have to remove the mysql.i386 package (old version) and reinstall mysql.x86_64.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#yum remove mysql.i386&lt;br /&gt;#yum install --enablerepo=remi mysql.x86_64&lt;br /&gt;&lt;br /&gt;then run mysql_install_db, then mysqld start to get the server running&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-355585082891187621?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/355585082891187621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/10/only-480-error-messages-but-it-should.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/355585082891187621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/355585082891187621'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/10/only-480-error-messages-but-it-should.html' title='Only 480 error messages, but it should contain at least 641 error messages'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-764541933202226957</id><published>2010-06-14T11:52:00.029+06:00</published><updated>2010-07-05T17:15:37.748+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How To Install MS-Sql extension for php on CentOS 5.4</title><content type='html'>If you want your php application&amp;nbsp; to connect to MSSQL database on windows server, then you need to install mssql extension(php-mssql) for php and also a tool named FreeTDS. Its very simple, just follow the steps provided below:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step-1&lt;/b&gt;: Install php-mssql modules using the yum tools as a root user. This will enable php application mssql extension for php.&lt;br /&gt;#yum install php-mssql&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step-2&lt;/b&gt;: Now we need to install the freeTDS tools, To install freeTDS on CentOS 5, install the following packages as root:&lt;br /&gt;&lt;br /&gt;Before installing FreeTDS, It may be necessary to install&amp;nbsp; CentOS Development tools for the installation to work properly:&lt;br /&gt;#yum groupinstall 'Development Tools'&lt;br /&gt;&lt;br /&gt;#yum install freetds freetds-devel unixODBC unixODBC-devel php-devel&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Installing these packages will install freetds, unixODBC and development components. &amp;nbsp;The &amp;nbsp;‘libtdsodbc.so’ library will also be installed in /usr/lib (32bit) &amp;nbsp;or /usr/lib64 (64bit) depending on the version of OS you are using.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step-3:Configuration freeTDS&lt;/b&gt;&lt;br /&gt;In the config file, default TDS version for all database servers is set to 4.2 and we will overwrite this setting using our own setting.For a typical Microsoft SQL Server 2005 configuration, add these lines. Look at the tds version number which is 8.0 works fine with sql server 2000, 2005.&lt;br /&gt;&lt;br /&gt;Note: the host need to be the same as the declaration. ie if you have [hostname1], ur host will be = hostname1&lt;br /&gt;&lt;br /&gt;#vi /etc/freetds.conf&lt;br /&gt;&lt;br /&gt;[HOSTNAME]&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;host = HOSTNAME&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;port = 1433&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tds version = 8.0&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step-4: Configuration – unixODBC&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;vi /etc/odbcinst.ini&lt;br /&gt;- add a freeTDS entry:&lt;br /&gt;&lt;br /&gt;[TDS]&lt;br /&gt;Description = FreeTDS driver&lt;br /&gt;Driver = /usr/lib/libtdsodbc.so&lt;br /&gt;Setup = /usr/lib/libtdsodbc.so&lt;br /&gt;Trace = Yes&lt;br /&gt;TraceFile = /tmp/freetds.log&lt;br /&gt;FileUsage = 1&lt;br /&gt;&lt;br /&gt;Note: Before making above entries, make sure libtdsodbc.so exists in the /usr/lib dir.&lt;br /&gt;In the above configuration, we have define TDS as driver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The second file is odbc.ini. This file has information about your MS SQL database.&lt;br /&gt;&lt;br /&gt;#vi /etc/odbc.ini &lt;br /&gt;&lt;br /&gt;[HOSTNAME]&lt;br /&gt;Driver = TDS&lt;br /&gt;Description = Test DB&lt;br /&gt;Trace = Yes&lt;br /&gt;TraceFile = /tmp/mstest.log&lt;br /&gt;Servername = SERVER_IP_ADDRESS&lt;br /&gt;Database = DATABASE_NAME&lt;br /&gt;Port = 1433&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step-5: Testing you configuration&lt;/b&gt;&lt;br /&gt;To test, create a connection to a SQL Server instance:&lt;br /&gt;&lt;br /&gt;tsql -S &lt;server-ip&gt; -U &lt;username&gt; -P &lt;password&gt;&lt;/password&gt;&lt;/username&gt;&lt;/server-ip&gt;&lt;br /&gt;&lt;br /&gt;Once connected, a command prompt should be displayed. &amp;nbsp;Issue test commands:&lt;br /&gt;&lt;br /&gt;use dbname&lt;actual database="" name=""&gt;&lt;/actual&gt;&lt;br /&gt;go&lt;br /&gt;select * from tablename&lt;actual name="" table=""&gt;&lt;/actual&gt;&lt;br /&gt;go&lt;br /&gt;To exit the connection, type exit.&lt;br /&gt;&lt;br /&gt;If everything goes as expected, then you are done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-764541933202226957?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/764541933202226957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-install-ms-sql-extension-for-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/764541933202226957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/764541933202226957'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-install-ms-sql-extension-for-php.html' title='How To Install MS-Sql extension for php on CentOS 5.4'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8181757181856587052</id><published>2010-06-06T12:51:00.000+06:00</published><updated>2010-06-06T12:51:45.358+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to run  java application as a service in debian</title><content type='html'>Here is the scrtip, modify it as need.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="white-space: pre-wrap; word-wrap: break-word;"&gt;#! /bin/sh&lt;br /&gt;&lt;br /&gt;#Original /etc/init.d/skeleton modified for http://mydebian.blogdns.org&lt;br /&gt;&lt;br /&gt;# PATH should only include /usr/* if it runs after the mountnfs.sh script&lt;br /&gt;PATH=/sbin:/usr/sbin:/bin:/usr/bin&lt;br /&gt;DESC="Description"&lt;br /&gt;NAME="Name"&lt;br /&gt;DAEMON=/usr/bin/java&lt;br /&gt;DAEMON_ARGS="-jar yourjar.jar"&lt;br /&gt;PIDFILE=/var/run/$NAME.pid&lt;br /&gt;SCRIPTNAME=/etc/init.d/YourScriptName&lt;br /&gt;#the user that will run the script&lt;br /&gt;USER=UserName&lt;br /&gt;&lt;br /&gt;# NO NEED TO MODIFY THE LINES BELOW&lt;br /&gt;&lt;br /&gt;# Load the VERBOSE setting and other rcS variables&lt;br /&gt;. /lib/init/vars.sh&lt;br /&gt;&lt;br /&gt;# Define LSB log_* functions.&lt;br /&gt;# Depend on lsb-base (&amp;gt;= 3.0-6) to ensure that this file is present.&lt;br /&gt;. /lib/lsb/init-functions&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Function that starts the daemon/service&lt;br /&gt;#&lt;br /&gt;do_start()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt; start-stop-daemon -b --start --quiet --chuid $USER -m -p $PIDFILE --exec $DAEMON -- $DAEMON_ARGS \&lt;br /&gt;  || return 2&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# Function that stops the daemon/service&lt;br /&gt;#&lt;br /&gt;do_stop()&lt;br /&gt;{&lt;br /&gt; start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE&lt;br /&gt; RETVAL="$?"&lt;br /&gt; rm -f $PIDFILE&lt;br /&gt; return "$RETVAL"&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;  start)&lt;br /&gt; [ "$VERBOSE" != no ] &amp;amp;&amp;amp; log_daemon_msg "Starting $DESC" "$NAME"&lt;br /&gt; do_start&lt;br /&gt; case "$?" in&lt;br /&gt;  0|1) [ "$VERBOSE" != no ] &amp;amp;&amp;amp; log_end_msg 0 ;;&lt;br /&gt;  2) [ "$VERBOSE" != no ] &amp;amp;&amp;amp; log_end_msg 1 ;;&lt;br /&gt; esac&lt;br /&gt; ;;&lt;br /&gt;  stop)&lt;br /&gt; [ "$VERBOSE" != no ] &amp;amp;&amp;amp; log_daemon_msg "Stopping $DESC" "$NAME"&lt;br /&gt; do_stop&lt;br /&gt; case "$?" in&lt;br /&gt;  0|1) [ "$VERBOSE" != no ] &amp;amp;&amp;amp; log_end_msg 0 ;;&lt;br /&gt;  2) [ "$VERBOSE" != no ] &amp;amp;&amp;amp; log_end_msg 1 ;;&lt;br /&gt; esac&lt;br /&gt; ;;&lt;br /&gt;  restart)&lt;br /&gt; #&lt;br /&gt; # If the "reload" option is implemented then remove the&lt;br /&gt; # 'force-reload' alias&lt;br /&gt; #&lt;br /&gt; log_daemon_msg "Restarting $DESC" "$NAME"&lt;br /&gt; do_stop&lt;br /&gt; case "$?" in&lt;br /&gt;   0|1)&lt;br /&gt;  do_start&lt;br /&gt;  case "$?" in&lt;br /&gt;   0) log_end_msg 0 ;;&lt;br /&gt;   1) log_end_msg 1 ;; # Old process is still running&lt;br /&gt;   *) log_end_msg 1 ;; # Failed to start&lt;br /&gt;  esac&lt;br /&gt;  ;;&lt;br /&gt;   *)&lt;br /&gt;    # Failed to stop&lt;br /&gt;  log_end_msg 1&lt;br /&gt;  ;;&lt;br /&gt; esac&lt;br /&gt; ;;&lt;br /&gt;  *)&lt;br /&gt; echo "Usage: $SCRIPTNAME {start|stop|restart}" &amp;gt;&amp;amp;2&lt;br /&gt; exit 3&lt;br /&gt; ;;&lt;br /&gt;esac&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8181757181856587052?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8181757181856587052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-run-java-application-as-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8181757181856587052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8181757181856587052'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-run-java-application-as-service.html' title='How to run  java application as a service in debian'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8987967535193286909</id><published>2010-06-03T17:17:00.000+06:00</published><updated>2010-06-03T17:17:08.515+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to Install JDK 1.6 on Debian</title><content type='html'>If you want to install JDK 1.6 on debian 5, then you can use&amp;nbsp;etch-backports repositories. You have to add the&amp;nbsp;etch-backports repository to your apt sourcelist first.&amp;nbsp;First you must add this line to your /etc/apt/sources.list&lt;br /&gt;&lt;br /&gt;Login to system as root&lt;br /&gt;#vi&amp;nbsp;/etc/apt/sources.list&lt;br /&gt;Then add this line&lt;br /&gt;deb http://www.backports.org/debian/ etch-backports main contrib non-free&lt;br /&gt;&lt;br /&gt;Save the file. Now issue&lt;br /&gt;#apt-get update&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then you imports the keyring:&lt;br /&gt;#apt-get install debian-backports-keyring&lt;br /&gt;&lt;br /&gt;Enter this command to update apt-get application:&lt;br /&gt;#apt-get update&lt;br /&gt;&lt;br /&gt;Now you will gain access to the Backport repository. Finally issue the following command&lt;br /&gt;#apt-get install sun-java6-jdk&lt;br /&gt;This will download and install jdk 1.6&lt;br /&gt;&lt;br /&gt;To verify the installation run the following command&lt;br /&gt;# java -version&lt;br /&gt;&lt;br /&gt;You should get this:&lt;br /&gt;java version "1.6.0_07"&lt;br /&gt;Java(TM) SE Runtime Environment (build 1.6.0_07-b06)&lt;br /&gt;Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)&lt;br /&gt;&lt;br /&gt;Next, we need to setup the environment variable JAVA_HOME for java to find it's libraries.&lt;br /&gt;&lt;br /&gt;#JAVA_HOME=/usr/lib/jvm/java-6-sun&lt;br /&gt;#export JAVA_HOME&lt;br /&gt;#echo $JAVA_HOME&lt;br /&gt;/usr/lib/jvm/java-6-sun&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You are done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8987967535193286909?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8987967535193286909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-install-jdk-16-on-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8987967535193286909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8987967535193286909'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-install-jdk-16-on-debian.html' title='How to Install JDK 1.6 on Debian'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-142257525705144764</id><published>2010-06-02T21:27:00.000+06:00</published><updated>2010-06-02T21:27:04.750+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure SSH on Debian Linux</title><content type='html'>By default Debian does note install the ssh server if you start with just a base install of the OS. But we can install it later with a very simple and easy steps.&lt;br /&gt;&lt;br /&gt;Step-1: First verify if ssh is installed, you can easily find it with this command. Login to your debian box from the console and issue the following command.&lt;br /&gt;#dpkg -l ssh&lt;br /&gt;If the output is something like this "No packages found matching ssh" then the ssh package is not installed. If your box is has internet connection then you can easily install it with "apt-get"&lt;br /&gt;&lt;br /&gt;Step-2: Install ssh with the following command.&lt;br /&gt;#apt-get install ssh&lt;br /&gt;This will download and install ssh server on your box.&lt;br /&gt;&lt;br /&gt;Step-3: Verify if ssh is running with the following command.&lt;br /&gt;#netstat -nlp | grep ::22&lt;br /&gt;If the output is something like this, then your ssh server is running.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;tcp6 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 :::22 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :::* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LISTEN &amp;nbsp; &amp;nbsp; &amp;nbsp;3270/sshd&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Now you can connect to your server with any ssh client.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-142257525705144764?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/142257525705144764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-configure-ssh-on-debian-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/142257525705144764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/142257525705144764'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/06/how-to-configure-ssh-on-debian-linux.html' title='How to configure SSH on Debian Linux'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-4972918287633233887</id><published>2010-05-28T10:57:00.000+06:00</published><updated>2010-05-28T10:57:14.268+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure Sun VirtualBox on CentOS 5.4</title><content type='html'>This article will briefly cover the installation process of VirtualBox on a fresh centos5.4 server. The installation of VirtualBox will require the building of kernel modules. If the development environment and kernel source are not already installed:&lt;br /&gt;Step-1: Install the necessary tools, just issue the following command from command prompt, you must have root privilege for this.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#yum groupinstall "Development Tools"&lt;br /&gt;#yum install kernel-devel&lt;br /&gt;&lt;br /&gt;Step-2: Download the rpm from VirtualBox.org Site&lt;br /&gt;&lt;br /&gt;#wget http://download.virtualbox.org/virtualbox/3.2.0/VirtualBox-3.2-3.2.0_61806_rhel5-1.i386.rpm&lt;br /&gt;&lt;br /&gt;Step-3: Install the VirtualBox&lt;br /&gt;#rpm -Uvh&amp;nbsp;VirtualBox-3.2-3.2.0_61806_rhel5-1.i386.rpm&lt;br /&gt;&lt;br /&gt;This will install the VirtualBox into the system&lt;br /&gt;&lt;br /&gt;Step-4: We need to assign user to vboxusers group which is created by the installation now who will run VirtualBox&lt;br /&gt;#usermod -G vboxusers username&lt;br /&gt;&lt;br /&gt;Step-5: Run the VirtualBox&lt;br /&gt;#VirtualBox &amp;amp;&lt;br /&gt;&lt;br /&gt;Now from GNOME or KDE run under "Applications / System Tools / Sun xVM VirtualBox" and start using it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-4972918287633233887?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/4972918287633233887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-sun-virtualbox-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4972918287633233887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4972918287633233887'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-sun-virtualbox-on.html' title='How to configure Sun VirtualBox on CentOS 5.4'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2089094897727808731</id><published>2010-05-26T16:19:00.000+06:00</published><updated>2010-05-26T16:19:06.562+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure Debin linux to run in text mode</title><content type='html'>By default debin linux runs in run level 2 which is full multi-user mode. Most installation comes with default login to graphical user mode, but it is possible to change the run level so that it starts with text mode&amp;nbsp;instead&amp;nbsp;of graphical mode. To configure a debian system run in text mode, we can take help of some useful tools like sysvconfig, rccconf, sysv-rc-conf etc. In this tutorial, i will use "rcconf" to configure debian to run in text mode when it boots.&lt;br /&gt;&lt;br /&gt;Step-1: Install the rcconf tool&lt;br /&gt;Run the following command to install the tools into your system&lt;br /&gt;#apt-get install rcconf&lt;br /&gt;Step-2: Run the following command to run rcconf&lt;br /&gt;#rcconf&lt;br /&gt;This will open the debian run level configuration window, from list, un-check the gdm or kdm then select ok&lt;br /&gt;Step-3: Reboot your system&lt;br /&gt;#reboot&lt;br /&gt;&lt;br /&gt;when the system will boot again, it will boot into text mode. If you want to enable graphical mode again, then just execute the "rcconf" again the check the gdm or kdm and reboot again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2089094897727808731?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2089094897727808731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-debin-linux-to-run-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2089094897727808731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2089094897727808731'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-debin-linux-to-run-in.html' title='How to configure Debin linux to run in text mode'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7067527276865841113</id><published>2010-05-25T17:28:00.001+06:00</published><updated>2010-05-25T17:41:07.220+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Administration'/><title type='text'>How to Configure Squid Proxy on Windows 2003</title><content type='html'>Most of the network admin today knows that Squid is the best and widely used proxy server in the world. In this tutorial, i will show you how to configure Squid proxy server on windows 2003 server. When Squid came, it has only linux version, now we have windows version too. Windows version of squid can be downloaded from this link&amp;nbsp;http://squid.acmeconsulting.it/download/squid-2.6.STABLE23-bin-DELAYP.zip . Download this to your local drive.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Server Requirements:&lt;/b&gt;&lt;br /&gt;1. Windows 2003 Server&lt;br /&gt;2. Two Network Interface Card&lt;br /&gt;3. Internet Connection&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Preparing the server:&lt;/b&gt;&lt;br /&gt;First we need to configure the server so that it has internet connection. Suppose we have internet connection on network interface card1. other card is attached to our local LAN.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;coming soon....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7067527276865841113?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7067527276865841113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-squid-proxy-on-windows.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7067527276865841113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7067527276865841113'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-squid-proxy-on-windows.html' title='How to Configure Squid Proxy on Windows 2003'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7587455416280521858</id><published>2010-05-22T00:43:00.000+06:00</published><updated>2010-05-22T00:43:52.320+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure additional IP address on NIC under Red Hat Linux or CentOS</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div&gt;In this tutorial, i am going to show you how to add a second ip address on nic under RedHat linux or CentOS&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The following tutorial uses eth0 as an example for assigning a second TCP/IP address.From the command prompt, issue the following command as root&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#ifconfig eth0:1 xxx.xxx.xxx.xxx&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Where xxx.xxx.xxx.xxx is the second IP address.&lt;/div&gt;&lt;div&gt;Note that eth0:1 is in case you add only a second IP address. Same way you can add eth0:2, eth0:3 and so on.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To make the changes permanent you will need to add the IP also in the network scripts which are being started on system boot.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. Verify that your /etc/sysconfig/network-scripts/ifcfg-eth0 file does not have a GATEWAY= parameter in it. If it does, remove it and add that parameter to /etc/sysconfig/network.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Copy your /etc/sysconfig/network-scripts/ifcfg-eth0 file to a new file called: /etc/sysconfig/network-scripts/ifcfg-eth0:1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. In /etc/sysconfig/network-scripts/ifcfg-eth0:1 change DEVICE=eth0 to DEVICE=eth0:1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. In /etc/sysconfig/network-scripts/ifcfg-eth0:1 modify IPADDR= to match the additional TCP/IP address you wish to use.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5. Start the secondary interface:&lt;/div&gt;&lt;div&gt;ifup eth0:1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;6. Restart the server if necessary.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hope this tutorial helps,,&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7587455416280521858?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7587455416280521858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-additional-ip-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7587455416280521858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7587455416280521858'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/05/how-to-configure-additional-ip-address.html' title='How to configure additional IP address on NIC under Red Hat Linux or CentOS'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1704863709389334012</id><published>2010-03-11T14:16:00.000+06:00</published><updated>2010-03-11T14:16:28.463+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure PPTP with freeradius and mysql</title><content type='html'>Poptop (http://www.poptop.org/) is the PPTP server solution for Linux and is used for establishing VPN (Virtual Private Network) tunnels across the Internet.&lt;br /&gt;It uses pppd to establish the network link and thus can benefit the radius pppd-radius plugin to work with FreeRADIUS:&lt;br /&gt;authorization of the access can be done on several parameters (username, user group, VPN server IP address or name, VPN client IP address, connection time...)&lt;br /&gt;authentication of the user can be delegated to the radius server (which can use several backends to store user profiles)&lt;br /&gt;IP pool management for the VPN client can be delegated to the FreeRADIUS server&lt;br /&gt;if MPPE encryption is required, MPPE keys can be generated by the FreeRADIUS server&lt;br /&gt;Accounting data can be sent to FreeRADIUS&lt;br /&gt;In order to use MPPE, authentication must be setup to use MS-CHAP or MS-CHAPv2 which requires the user password to be stored in NTLM hashed format or in cleartext format in the FreeRADIUS backend.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1704863709389334012?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1704863709389334012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/03/how-to-configure-pptp-with-freeradius.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1704863709389334012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1704863709389334012'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/03/how-to-configure-pptp-with-freeradius.html' title='How to configure PPTP with freeradius and mysql'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6990755501547676059</id><published>2010-03-08T13:12:00.002+06:00</published><updated>2010-05-21T18:02:46.068+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to install Denyhosts on CentOS 5.4 to block SSHD attack</title><content type='html'>DenyHosts is a script intended to be run by Linux system administrators to prevent SSH server attacks (also known as dictionary based attacks and brute force attacks).&lt;br /&gt;&lt;br /&gt;In this tutorial, i am going to show you how to configure denyhosts in centos 5.4. We will use yum to install the software, but centos base repository doesn't have the denyhosts software, so in this case we can use Rpmforge repository because they maintain this software in their repositories.&lt;br /&gt;&lt;br /&gt;Installing Rpmforge repository:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RPMforge is a collaboration of Dag, Dries, and other packagers. They provide over 4000 packages for CentOS, including mplayer, xmms-mp3, and other popular media tools. It is not part of RedHat or CentOS but is designed to work with these major distributions.&lt;br /&gt;&lt;br /&gt;Packages are supplied in RPM format and in most cases are ready to use. Beware that some packages are newer than the official CentOS version and you should not blindly install those packages. Before you replace a CentOS package you should make sure that will not break anything important. In most cases you can revert any mistakes but it is best to avoid the mess.&lt;br /&gt;&lt;br /&gt;Step-1: Install the Rpmforge repo&lt;br /&gt;#rpm -Ivh&amp;nbsp;http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step-2: Installation of &amp;nbsp;denyhosts:&lt;br /&gt;#yum install denyhosts&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step-3:&amp;nbsp;Starting the service and marking it to run at boot time&lt;br /&gt;#chkconfig --level 2345 denyhosts on&lt;br /&gt;#service denyhosts start&lt;br /&gt;[note: It could take a minute or 2 start start initially, give this command at least 2-3 min to return you to a bash prompt]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Step-5:&amp;nbsp;Allowing yourself unrestricted access with the allowed-hosts and hosts.allow lists:&lt;br /&gt;# vi /var/lib/denyhosts/allowed-hosts&lt;br /&gt;192.168.4.10&lt;br /&gt;# vi /etc/hosts.allow&lt;br /&gt;192.168.4.10&lt;br /&gt;&lt;br /&gt;[note: you'll want to add in these 2 files the IP(s) you will use to connect to your system that's running Denyhosts so that you aren't inadvertently denied access to your own system(s).]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Step-6: Configuration of denyhosts:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;#vi /etc/denyhosts/denyhosts.cfg&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; ############ THESE SETTINGS ARE REQUIRED ############&lt;br /&gt;&lt;br /&gt;########################################################################&lt;br /&gt;#&lt;br /&gt;# SECURE_LOG: the log file that contains sshd logging info&lt;br /&gt;# if you are not sure, grep "sshd:" /var/log/*&lt;br /&gt;#&lt;br /&gt;# The file to process can be overridden with the --file command line&lt;br /&gt;# argument&lt;br /&gt;#&lt;br /&gt;# Redhat or Fedora Core:&lt;br /&gt;SECURE_LOG = /var/log/secure&lt;br /&gt;#&lt;br /&gt;# Mandrake, FreeBSD or OpenBSD:&lt;br /&gt;#SECURE_LOG = /var/log/auth.log&lt;br /&gt;#&lt;br /&gt;# SuSE:&lt;br /&gt;#SECURE_LOG = /var/log/messages&lt;br /&gt;#&lt;br /&gt;# Mac OS X (v10.4 or greater -&lt;br /&gt;# &amp;nbsp; also refer to: &amp;nbsp; http://www.denyhosts.net/faq.html#macos&lt;br /&gt;#SECURE_LOG = /private/var/log/asl.log&lt;br /&gt;#&lt;br /&gt;# Mac OS X (v10.3 or earlier):&lt;br /&gt;#SECURE_LOG=/private/var/log/system.log&lt;br /&gt;#&lt;br /&gt;########################################################################&lt;br /&gt;&lt;br /&gt;########################################################################&lt;br /&gt;#&lt;br /&gt;# HOSTS_DENY: the file which contains restricted host access information&lt;br /&gt;#&lt;br /&gt;# Most operating systems:&lt;br /&gt;HOSTS_DENY = /etc/hosts.deny&lt;br /&gt;# Defines the active ban list.&lt;br /&gt;# Some BSD (FreeBSD) Unixes:&lt;br /&gt;#HOSTS_DENY = /etc/hosts.allow&lt;br /&gt;#&lt;br /&gt;# Another possibility (also see the next option):&lt;br /&gt;#HOSTS_DENY = /etc/hosts.evil&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;########################################################################&lt;br /&gt;#&lt;br /&gt;# PURGE_DENY: removed HOSTS_DENY entries that are older than this time&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when DenyHosts is invoked with the --purge flag&lt;br /&gt;#&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp;format is: i[dhwmy]&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp;Where 'i' is an integer (eg. 7)&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'m' = minutes&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'h' = hours&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'d' = days&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'w' = weeks&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'y' = years&lt;br /&gt;#&lt;br /&gt;# never purge:&lt;br /&gt;PURGE_DENY = 6y&lt;br /&gt;# I figure the average hardware lifecycle of servers is 2 years or less&lt;br /&gt;# so 6 years should be plenty if i want an IP permanently banned.&lt;br /&gt;# purge entries older than 1 week&lt;br /&gt;#PURGE_DENY = 1w&lt;br /&gt;#&lt;br /&gt;# purge entries older than 5 days&lt;br /&gt;#PURGE_DENY = 5d&lt;br /&gt;#&lt;br /&gt;# For the default Fedora Extras install, we want timestamping but no&lt;br /&gt;# expiration (at least by default) so this is deliberately set high.&lt;br /&gt;# Adjust to taste.&lt;br /&gt;#PURGE_DENY = 4w&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# PURGE_THRESHOLD: defines the maximum times a host will be purged. &lt;br /&gt;# Once this value has been exceeded then this host will not be purged.&lt;br /&gt;# Setting this parameter to 0 (the default) disables this feature.&lt;br /&gt;#&lt;br /&gt;# default: a denied host can be purged/re-added indefinitely&lt;br /&gt;PURGE_THRESHOLD = 1&lt;br /&gt;#&lt;br /&gt;# a denied host will be purged at most 2 times.&lt;br /&gt;#PURGE_THRESHOLD = 2&lt;br /&gt;# This step assures a repeat offender is forever banned and maintained in /etc/hosts.deny&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# BLOCK_SERVICE: the service name that should be blocked in HOSTS_DENY&lt;br /&gt;#&lt;br /&gt;# man 5 hosts_access for details&lt;br /&gt;#&lt;br /&gt;# eg. &amp;nbsp; sshd: 127.0.0.1 &amp;nbsp;# will block sshd logins from 127.0.0.1&lt;br /&gt;#&lt;br /&gt;# To block all services for the offending host:&lt;br /&gt;BLOCK_SERVICE = ALL&lt;br /&gt;# To block only sshd:&lt;br /&gt;#BLOCK_SERVICE &amp;nbsp;= sshd&lt;br /&gt;# To only record the offending host and nothing else (if using&lt;br /&gt;# an auxilary file to list the hosts). &amp;nbsp;Refer to:&lt;br /&gt;# http://denyhosts.sourceforge.net/faq.html#aux&lt;br /&gt;#BLOCK_SERVICE = &amp;nbsp; &lt;br /&gt;# I've set this to "ALL" because if any user is attempting malicious entry to the system,&lt;br /&gt;# I want all potential avenues of damage to be cut-off instantly. Bans can easily be lifted,&lt;br /&gt;# a compromised system could rob you of a lifetime of work and effort.&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DENY_THRESHOLD_INVALID: block each host after the number of failed login&lt;br /&gt;# attempts has exceeded this value. &amp;nbsp;This value applies to invalid&lt;br /&gt;# user login attempts (eg. non-existent user accounts)&lt;br /&gt;#&lt;br /&gt;DENY_THRESHOLD_INVALID = 1&lt;br /&gt;# I've set this value to 1 attempt for a user without an account on the system&lt;br /&gt;# attempting to login, they obviously have no right even trying to login so they&lt;br /&gt;# should be blocked immediately.&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DENY_THRESHOLD_VALID: block each host after the number of failed&lt;br /&gt;# login attempts has exceeded this value. &amp;nbsp;This value applies to valid&lt;br /&gt;# user login attempts (eg. user accounts that exist in /etc/passwd) except&lt;br /&gt;# for the "root" user&lt;br /&gt;#&lt;br /&gt;DENY_THRESHOLD_VALID = 3&lt;br /&gt;# I've set known user login attempts to 3 for increased security in a login/pass scenario.&lt;br /&gt;# For added security you can restrict access only to users with the proper ssh id_dsa or&lt;br /&gt;# id_rsa keys. (see fedorasolved.org for more info on setting this up.)&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DENY_THRESHOLD_ROOT: block each host after the number of failed&lt;br /&gt;# login attempts has exceeded this value. &amp;nbsp;This value applies to&lt;br /&gt;# "root" user login attempts only.&lt;br /&gt;#&lt;br /&gt;DENY_THRESHOLD_ROOT = 1&lt;br /&gt;# Since i've set my sshd_config to refuse root logins, I want this set to only 1 attempt&lt;br /&gt;# at root login before the offending IP is banned since no one should be logging in as root.&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DENY_THRESHOLD_RESTRICTED: block each host after the number of failed&lt;br /&gt;# login attempts has exceeded this value. &amp;nbsp;This value applies to&lt;br /&gt;# usernames that appear in the WORK_DIR/restricted-usernames file only.&lt;br /&gt;#&lt;br /&gt;DENY_THRESHOLD_RESTRICTED = 1&lt;br /&gt;# This refers to /var/lib/denyhosts/hosts-restricted, I don't want these people logging in&lt;br /&gt;# at all so i set the failed threshold to 1 attempt before banning the IP.&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# WORK_DIR: the path that DenyHosts will use for writing data to&lt;br /&gt;# (it will be created if it does not already exist). &lt;br /&gt;#&lt;br /&gt;# Note: it is recommended that you use an absolute pathname&lt;br /&gt;# for this value (eg. /home/foo/denyhosts/data)&lt;br /&gt;#&lt;br /&gt;WORK_DIR = /var/lib/denyhosts&lt;br /&gt;# This defines the working directory for Denyhosts&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS&lt;br /&gt;#&lt;br /&gt;# SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES|NO&lt;br /&gt;# If set to YES, if a suspicious login attempt results from an allowed-host&lt;br /&gt;# then it is considered suspicious. &amp;nbsp;If this is NO, then suspicious logins&lt;br /&gt;# from allowed-hosts will not be reported. &amp;nbsp;All suspicious logins from&lt;br /&gt;# ip addresses that are not in allowed-hosts will always be reported.&lt;br /&gt;#&lt;br /&gt;SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES&lt;br /&gt;# This (YES) setting monitors all IPs (even allowed IPs) for suspicious connections&lt;br /&gt;# or attempts and logs/reports this activity for investigation.&lt;br /&gt;####################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# HOSTNAME_LOOKUP&lt;br /&gt;#&lt;br /&gt;# HOSTNAME_LOOKUP=YES|NO&lt;br /&gt;# If set to YES, for each IP address that is reported by Denyhosts,&lt;br /&gt;# the corresponding hostname will be looked up and reported as well&lt;br /&gt;# (if available).&lt;br /&gt;#&lt;br /&gt;HOSTNAME_LOOKUP=YES&lt;br /&gt;# This setting allows for hostname lookup on all IPs reported by denyhosts.&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# LOCK_FILE&lt;br /&gt;#&lt;br /&gt;# LOCK_FILE=/path/denyhosts&lt;br /&gt;# If this file exists when DenyHosts is run, then DenyHosts will exit&lt;br /&gt;# immediately. &amp;nbsp;Otherwise, this file will be created upon invocation&lt;br /&gt;# and deleted upon exit. &amp;nbsp;This ensures that only one instance is&lt;br /&gt;# running at a time.&lt;br /&gt;#&lt;br /&gt;# Redhat/Fedora:&lt;br /&gt;LOCK_FILE = /var/lock/subsys/denyhosts&lt;br /&gt;#&lt;br /&gt;# Debian&lt;br /&gt;#LOCK_FILE = /var/run/denyhosts.pid&lt;br /&gt;#&lt;br /&gt;# Misc&lt;br /&gt;#LOCK_FILE = /tmp/denyhosts.lock&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; ############ THESE SETTINGS ARE OPTIONAL ############&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# ADMIN_EMAIL: if you would like to receive emails regarding newly&lt;br /&gt;# restricted hosts and suspicious logins, set this address to&lt;br /&gt;# match your email address. &amp;nbsp;If you do not want to receive these reports&lt;br /&gt;# leave this field blank (or run with the --noemail option)&lt;br /&gt;#&lt;br /&gt;# Multiple email addresses can be delimited by a comma, eg:&lt;br /&gt;# ADMIN_EMAIL = foo@bar.com, bar@foo.com, etc@foobar.com&lt;br /&gt;#&lt;br /&gt;ADMIN_EMAIL = put the email address here you want mailed when new IP entries are added.&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SMTP_HOST and SMTP_PORT: if DenyHosts is configured to email&lt;br /&gt;# reports (see ADMIN_EMAIL) then these settings specify the&lt;br /&gt;# email server address (SMTP_HOST) and the server port (SMTP_PORT)&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;SMTP_HOST = localhost&lt;br /&gt;#SMTP_HOST = smtp1.your_server_here.net&lt;br /&gt;SMTP_PORT = 25&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SMTP_USERNAME and SMTP_PASSWORD: set these parameters if your&lt;br /&gt;# smtp email server requires authentication&lt;br /&gt;#&lt;br /&gt;#SMTP_USERNAME=foo&lt;br /&gt;#SMTP_PASSWORD=bar&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SMTP_FROM: you can specify the "From:" address in messages sent&lt;br /&gt;# from DenyHosts when it reports thwarted abuse attempts&lt;br /&gt;#&lt;br /&gt;SMTP_FROM = DenyHosts &lt;denyhosts@your_site.com&gt;&lt;/denyhosts@your_site.com&gt;&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SMTP_SUBJECT: you can specify the "Subject:" of messages sent&lt;br /&gt;# by DenyHosts when it reports thwarted abuse attempts&lt;br /&gt;SMTP_SUBJECT = DenyHosts Report from $[HOSTNAME]&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# SMTP_DATE_FORMAT: specifies the format used for the "Date:" header&lt;br /&gt;# when sending email messages.&lt;br /&gt;#&lt;br /&gt;# for possible values for this parameter refer to: man strftime&lt;br /&gt;#&lt;br /&gt;# the default:&lt;br /&gt;#&lt;br /&gt;SMTP_DATE_FORMAT = %a, %d %b %Y %H:%M:%S %z&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# SYSLOG_REPORT&lt;br /&gt;#&lt;br /&gt;# SYSLOG_REPORT=YES|NO&lt;br /&gt;# If set to yes, when denied hosts are recorded the report data&lt;br /&gt;# will be sent to syslog (syslog must be present on your system).&lt;br /&gt;# The default is: NO&lt;br /&gt;#&lt;br /&gt;SYSLOG_REPORT=YES&lt;br /&gt;#&lt;br /&gt;#SYSLOG_REPORT=NO&lt;br /&gt;# Obvious.&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# ALLOWED_HOSTS_HOSTNAME_LOOKUP&lt;br /&gt;#&lt;br /&gt;# ALLOWED_HOSTS_HOSTNAME_LOOKUP=YES|NO&lt;br /&gt;# If set to YES, for each entry in the WORK_DIR/allowed-hosts file,&lt;br /&gt;# the hostname will be looked up. &amp;nbsp;If your versions of tcp_wrappers&lt;br /&gt;# and sshd sometimes log hostnames in addition to ip addresses&lt;br /&gt;# then you may wish to specify this option.&lt;br /&gt;#&lt;br /&gt;ALLOWED_HOSTS_HOSTNAME_LOOKUP=YES&lt;br /&gt;# This section refers to /var/lib/denyhosts/allowed-hosts file, which adds in a hostname&lt;br /&gt;# lookup into the log entry.&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# AGE_RESET_VALID: Specifies the period of time between failed login&lt;br /&gt;# attempts that, when exceeded will result in the failed count for&lt;br /&gt;# this host to be reset to 0. &amp;nbsp;This value applies to login attempts&lt;br /&gt;# to all valid users (those within /etc/passwd) with the&lt;br /&gt;# exception of root. &amp;nbsp;If not defined, this count will never&lt;br /&gt;# be reset.&lt;br /&gt;#&lt;br /&gt;# See the comments in the PURGE_DENY section (above)&lt;br /&gt;# for details on specifying this value or for complete details&lt;br /&gt;# refer to: &amp;nbsp;http://denyhosts.sourceforge.net/faq.html#timespec&lt;br /&gt;#&lt;br /&gt;AGE_RESET_VALID=5m&lt;br /&gt;# This section refers to resetting the allowed login attempts to 0 for valid users&lt;br /&gt;# on the system after being locked out or using any of the 3 given attempts in the&lt;br /&gt;# "DENY_THRESHOLD_VALID" variable above. Currently, this is set to reset to 0 after&lt;br /&gt;# 5 minutes of inactivity (i.e. logging into the system).&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# AGE_RESET_ROOT: Specifies the period of time between failed login&lt;br /&gt;# attempts that, when exceeded will result in the failed count for&lt;br /&gt;# this host to be reset to 0. &amp;nbsp;This value applies to all login&lt;br /&gt;# attempts to the "root" user account. &amp;nbsp;If not defined,&lt;br /&gt;# this count will never be reset.&lt;br /&gt;#&lt;br /&gt;# See the comments in the PURGE_DENY section (above)&lt;br /&gt;# for details on specifying this value or for complete details&lt;br /&gt;# refer to: &amp;nbsp;http://denyhosts.sourceforge.net/faq.html#timespec&lt;br /&gt;#&lt;br /&gt;AGE_RESET_ROOT=6y&lt;br /&gt;# This essentially is another step to make *sure* a specific banned IP *stays* banned.&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# AGE_RESET_RESTRICTED: Specifies the period of time between failed login&lt;br /&gt;# attempts that, when exceeded will result in the failed count for&lt;br /&gt;# this host to be reset to 0. &amp;nbsp;This value applies to all login&lt;br /&gt;# attempts to entries found in the WORK_DIR/restricted-usernames file. &lt;br /&gt;# If not defined, the count will never be reset.&lt;br /&gt;#&lt;br /&gt;# See the comments in the PURGE_DENY section (above)&lt;br /&gt;# for details on specifying this value or for complete details&lt;br /&gt;# refer to: &amp;nbsp;http://denyhosts.sourceforge.net/faq.html#timespec&lt;br /&gt;#&lt;br /&gt;AGE_RESET_RESTRICTED=25d&lt;br /&gt;# This section refers to login attempts made by the IPs listed in the&lt;br /&gt;# /var/lib/denyhosts/hosts-restricted file. This lets us specify a time period&lt;br /&gt;# after which the login attempts defined in the variable DENY_THRESHOLD_RESTRICTED&lt;br /&gt;# is reset to 0 failed attempts.&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# AGE_RESET_INVALID: Specifies the period of time between failed login&lt;br /&gt;# attempts that, when exceeded will result in the failed count for&lt;br /&gt;# this host to be reset to 0. &amp;nbsp;This value applies to login attempts&lt;br /&gt;# made to any invalid username (those that do not appear&lt;br /&gt;# in /etc/passwd). &amp;nbsp;If not defined, count will never be reset.&lt;br /&gt;#&lt;br /&gt;# See the comments in the PURGE_DENY section (above)&lt;br /&gt;# for details on specifying this value or for complete details&lt;br /&gt;# refer to: &amp;nbsp;http://denyhosts.sourceforge.net/faq.html#timespec&lt;br /&gt;#&lt;br /&gt;AGE_RESET_INVALID=10d&lt;br /&gt;# Same as DENY_THRESHOLD_RESTRICTED above but for the variable DENY_THRESHOLD_INVALID&lt;br /&gt;# which defines login attempts by usernames nonexistent on the system.&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# RESET_ON_SUCCESS: If this parameter is set to "yes" then the&lt;br /&gt;# failed count for the respective ip address will be reset to 0&lt;br /&gt;# if the login is successful. &lt;br /&gt;#&lt;br /&gt;# The default is RESET_ON_SUCCESS = no&lt;br /&gt;#&lt;br /&gt;RESET_ON_SUCCESS = yes&lt;br /&gt;# This basically tells us if a valid user on the system accidentally fails logging&lt;br /&gt;# in twice but then has success on the third attempt that we should immediately reset&lt;br /&gt;# his faulty login attempt threshold to 0 again. (even admins forget logins ;))&lt;br /&gt;#####################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# PLUGIN_DENY: If set, this value should point to an executable&lt;br /&gt;# program that will be invoked when a host is added to the&lt;br /&gt;# HOSTS_DENY file. &amp;nbsp;This executable will be passed the host&lt;br /&gt;# that will be added as it's only argument.&lt;br /&gt;#&lt;br /&gt;#PLUGIN_DENY=/usr/bin/true&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# PLUGIN_PURGE: If set, this value should point to an executable&lt;br /&gt;# program that will be invoked when a host is removed from the&lt;br /&gt;# HOSTS_DENY file. &amp;nbsp;This executable will be passed the host&lt;br /&gt;# that is to be purged as it's only argument.&lt;br /&gt;#&lt;br /&gt;#PLUGIN_PURGE=/usr/bin/true&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;######################################################################&lt;br /&gt;#&lt;br /&gt;# USERDEF_FAILED_ENTRY_REGEX: if set, this value should contain&lt;br /&gt;# a regular expression that can be used to identify additional&lt;br /&gt;# hackers for your particular ssh configuration. &amp;nbsp;This functionality&lt;br /&gt;# extends the built-in regular expressions that DenyHosts uses.&lt;br /&gt;# This parameter can be specified multiple times.&lt;br /&gt;# See this faq entry for more details:&lt;br /&gt;# &amp;nbsp; &amp;nbsp;http://denyhosts.sf.net/faq.html#userdef_regex&lt;br /&gt;#&lt;br /&gt;#USERDEF_FAILED_ENTRY_REGEX=&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; ######### THESE SETTINGS ARE SPECIFIC TO DAEMON MODE &amp;nbsp;##########&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DAEMON_LOG: when DenyHosts is run in daemon mode (--daemon flag)&lt;br /&gt;# this is the logfile that DenyHosts uses to report it's status.&lt;br /&gt;# To disable logging, leave blank. &amp;nbsp;(default is: /var/log/denyhosts)&lt;br /&gt;#&lt;br /&gt;DAEMON_LOG = /var/log/denyhosts&lt;br /&gt;#&lt;br /&gt;# disable logging:&lt;br /&gt;#DAEMON_LOG =&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DAEMON_LOG_TIME_FORMAT: when DenyHosts is run in daemon mode&lt;br /&gt;# (--daemon flag) this specifies the timestamp format of&lt;br /&gt;# the DAEMON_LOG messages (default is the ISO8061 format:&lt;br /&gt;# ie. 2005-07-22 10:38:01,745)&lt;br /&gt;#&lt;br /&gt;# for possible values for this parameter refer to: man strftime&lt;br /&gt;#&lt;br /&gt;# Jan 1 13:05:59 &lt;br /&gt;DAEMON_LOG_TIME_FORMAT = %b %d %H:%M:%S&lt;br /&gt;#&lt;br /&gt;# Jan 1 01:05:59&lt;br /&gt;#DAEMON_LOG_TIME_FORMAT = %b %d %I:%M:%S&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DAEMON_LOG_MESSAGE_FORMAT: when DenyHosts is run in daemon mode&lt;br /&gt;# (--daemon flag) this specifies the message format of each logged&lt;br /&gt;# entry. &amp;nbsp;By default the following format is used:&lt;br /&gt;#&lt;br /&gt;# %(asctime)s - %(name)-12s: %(levelname)-8s %(message)s&lt;br /&gt;#&lt;br /&gt;# Where the "%(asctime)s" portion is expanded to the format&lt;br /&gt;# defined by DAEMON_LOG_TIME_FORMAT&lt;br /&gt;#&lt;br /&gt;# This string is passed to python's logging.Formatter contstuctor.&lt;br /&gt;# For details on the possible format types please refer to:&lt;br /&gt;# http://docs.python.org/lib/node357.html&lt;br /&gt;#&lt;br /&gt;# This is the default:&lt;br /&gt;DAEMON_LOG_MESSAGE_FORMAT = %(asctime)s - %(name)-12s: %(levelname)-8s %(message)s&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DAEMON_SLEEP: when DenyHosts is run in daemon mode (--daemon flag)&lt;br /&gt;# this is the amount of time DenyHosts will sleep between polling&lt;br /&gt;# the SECURE_LOG. &amp;nbsp;See the comments in the PURGE_DENY section (above)&lt;br /&gt;# for details on specifying this value or for complete details&lt;br /&gt;# refer to: &amp;nbsp; &amp;nbsp;http://denyhosts.sourceforge.net/faq.html#timespec&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;DAEMON_SLEEP = 30s&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# DAEMON_PURGE: How often should DenyHosts, when run in daemon mode,&lt;br /&gt;# run the purge mechanism to expire old entries in HOSTS_DENY&lt;br /&gt;# This has no effect if PURGE_DENY is blank.&lt;br /&gt;#&lt;br /&gt;DAEMON_PURGE = 1h&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; ######### &amp;nbsp; THESE SETTINGS ARE SPECIFIC TO &amp;nbsp; &amp;nbsp; ##########&lt;br /&gt;&amp;nbsp;&amp;nbsp; ######### &amp;nbsp; &amp;nbsp; &amp;nbsp; DAEMON SYNCHRONIZATION &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ###########&lt;br /&gt;# Note: I do *not* recommend using this "feature". With security it's good to be paranoid.&lt;br /&gt;# The function of this setting is to talk to other servers and share ban lists.&lt;br /&gt;# I do not want other remote systems altering ban settings for core security&lt;br /&gt;# programs (i.e. Denyhosts).&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# Synchronization mode allows the DenyHosts daemon the ability&lt;br /&gt;# to periodically send and receive denied host data such that&lt;br /&gt;# DenyHosts daemons worldwide can automatically inform one&lt;br /&gt;# another regarding banned hosts. &amp;nbsp; This mode is disabled by&lt;br /&gt;# default, you must uncomment SYNC_SERVER to enable this mode.&lt;br /&gt;#&lt;br /&gt;# for more information, please refer to:&lt;br /&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;http:/denyhosts.sourceforge.net/faq.html#sync&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SYNC_SERVER: The central server that communicates with DenyHost&lt;br /&gt;# daemons. &amp;nbsp;Currently, denyhosts.net is the only available server&lt;br /&gt;# however, in the future, it may be possible for organizations to&lt;br /&gt;# install their own server for internal network synchronization&lt;br /&gt;#&lt;br /&gt;# To disable synchronization (the default), do nothing.&lt;br /&gt;#&lt;br /&gt;# To enable synchronization, you must uncomment the following line:&lt;br /&gt;#SYNC_SERVER = http://xmlrpc.denyhosts.net:9911&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SYNC_INTERVAL: the interval of time to perform synchronizations if&lt;br /&gt;# SYNC_SERVER has been uncommented. &amp;nbsp;The default is 1 hour.&lt;br /&gt;#&lt;br /&gt;#SYNC_INTERVAL = 1h&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SYNC_UPLOAD: allow your DenyHosts daemon to transmit hosts that have&lt;br /&gt;# been denied? &amp;nbsp;This option only applies if SYNC_SERVER has&lt;br /&gt;# been uncommented.&lt;br /&gt;# The default is SYNC_UPLOAD = yes&lt;br /&gt;#&lt;br /&gt;#SYNC_UPLOAD = no&lt;br /&gt;#SYNC_UPLOAD = yes&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SYNC_DOWNLOAD: allow your DenyHosts daemon to receive hosts that have&lt;br /&gt;# been denied by others? &amp;nbsp;This option only applies if SYNC_SERVER has&lt;br /&gt;# been uncommented.&lt;br /&gt;# The default is SYNC_DOWNLOAD = yes&lt;br /&gt;#&lt;br /&gt;#SYNC_DOWNLOAD = no&lt;br /&gt;#SYNC_DOWNLOAD = yes&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SYNC_DOWNLOAD_THRESHOLD: If SYNC_DOWNLOAD is enabled this parameter&lt;br /&gt;# filters the returned hosts to those that have been blocked this many&lt;br /&gt;# times by others. &amp;nbsp;That is, if set to 1, then if a single DenyHosts&lt;br /&gt;# server has denied an ip address then you will receive the denied host.&lt;br /&gt;#&lt;br /&gt;# See also SYNC_DOWNLOAD_RESILIENCY&lt;br /&gt;#&lt;br /&gt;#SYNC_DOWNLOAD_THRESHOLD = 10&lt;br /&gt;#&lt;br /&gt;# The default is SYNC_DOWNLOAD_THRESHOLD = 3&lt;br /&gt;#&lt;br /&gt;#SYNC_DOWNLOAD_THRESHOLD = 3&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#&lt;br /&gt;# SYNC_DOWNLOAD_RESILIENCY: &amp;nbsp;If SYNC_DOWNLOAD is enabled then the&lt;br /&gt;# value specified for this option limits the downloaded data&lt;br /&gt;# to this resiliency period or greater.&lt;br /&gt;#&lt;br /&gt;# Resiliency is defined as the timespan between a hackers first known&lt;br /&gt;# attack and it's most recent attack. &amp;nbsp;Example:&lt;br /&gt;#&lt;br /&gt;# If the centralized &amp;nbsp; denyhosts.net server records an attack at 2 PM&lt;br /&gt;# and then again at 5 PM, specifying a SYNC_DOWNLOAD_RESILIENCY = 4h&lt;br /&gt;# will not download this ip address.&lt;br /&gt;#&lt;br /&gt;# However, if the attacker is recorded again at 6:15 PM then the&lt;br /&gt;# ip address will be downloaded by your DenyHosts instance. &lt;br /&gt;#&lt;br /&gt;# This value is used in conjunction with the SYNC_DOWNLOAD_THRESHOLD&lt;br /&gt;# and only hosts that satisfy both values will be downloaded. &lt;br /&gt;# This value has no effect if SYNC_DOWNLOAD_THRESHOLD = 1&lt;br /&gt;#&lt;br /&gt;# The default is SYNC_DOWNLOAD_RESILIENCY = 5h (5 hours)&lt;br /&gt;#&lt;br /&gt;# Only obtain hackers that have been at it for 2 days or more:&lt;br /&gt;#SYNC_DOWNLOAD_RESILIENCY = 2d&lt;br /&gt;#&lt;br /&gt;# Only obtain hackers that have been at it for 5 hours or more:&lt;br /&gt;#SYNC_DOWNLOAD_RESILIENCY = 5h&lt;br /&gt;#&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6990755501547676059?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6990755501547676059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/03/how-to-install-denyhosts-on-centos-54.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6990755501547676059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6990755501547676059'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/03/how-to-install-denyhosts-on-centos-54.html' title='How to install Denyhosts on CentOS 5.4 to block SSHD attack'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7873854197100932372</id><published>2010-01-26T16:17:00.007+06:00</published><updated>2010-03-09T13:25:26.216+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Default web site on apache when browsing with IP</title><content type='html'>Default Vhost&lt;br /&gt;&lt;br /&gt;Remember that although we created a vhost for domain1.com and domain2.com, if someone enters the IP address of the Slice they are served the contents of the domain1.com vhosts.&lt;br /&gt;&lt;br /&gt;Why are they served from that vhost?&lt;br /&gt;&lt;br /&gt;Apache searches the enabled vhosts from the top down. Therefore, once it finds a matching vhost for the IP address entered, the contents of that domain are displayed. As we setup domain1.com initially in this example, the contents for this domain will be shown if you enter your slice's IP address in a browser.&lt;br /&gt;&lt;br /&gt;This is something to keep in mind when planning your websites. Do you want a particular domain to be the default? Do you want the IP address to have completely different content?&lt;br /&gt;&lt;br /&gt;If you want the IP address to have separate content than your domains, you will need to create an additional vhost and use the IP of your slice as the ServerName.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#Default site when browsing with IP address&lt;br /&gt;&lt;virtualhost *:80=""&gt;&lt;/virtualhost&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;DocumentRoot /var/www/vhosts/defaultsite&lt;br /&gt;&amp;nbsp;&amp;nbsp;ServerName &amp;nbsp;your server ip&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#&lt;virtualhost *:80=""&gt;&lt;/virtualhost&gt;&lt;br /&gt;#DocumentRoot /var/www/vhosts/aaf.dev/public_html&lt;br /&gt;#ServerName aaf.dev.lin.bd.panth.com&lt;br /&gt;#AddHandler php5-fastcgi .php&lt;br /&gt;#Action php5-fastcgi /cgi-bin/phpfcgid.fcgi&lt;br /&gt;#&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7873854197100932372?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7873854197100932372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/01/default-web-site-on-apache-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7873854197100932372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7873854197100932372'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/01/default-web-site-on-apache-when.html' title='Default web site on apache when browsing with IP'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-9064073563239613697</id><published>2010-01-26T15:57:00.002+06:00</published><updated>2010-03-08T17:02:10.987+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Shell script to backup mysql database</title><content type='html'>Taking all mysql db backup is very simple if you use this small shell scripts, just create a file named mysqlbackup.sh and paste the all the text below:&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;NOW=$(date +"%m-%d-%Y") # mm-dd-yyyy format&lt;br /&gt;FILE=""&lt;span style="white-space: pre;"&gt;   &lt;/span&gt;# used in a loop&lt;br /&gt;&lt;br /&gt;BAK="/home/backups/mysql" # Path to backup dir&lt;br /&gt;&lt;br /&gt;### Server Setup ###&lt;br /&gt;#* MySQL login user name *#&lt;br /&gt;MUSER="dbbackup"&lt;br /&gt;&lt;br /&gt;#* MySQL login PASSWORD name *#&lt;br /&gt;MPASS="password"&lt;br /&gt;&lt;br /&gt;#* MySQL login HOST name *#&lt;br /&gt;MHOST="localhost"&lt;br /&gt;&lt;br /&gt;#* MySQL binaries *#&lt;br /&gt;MYSQL="$(which mysql)"&lt;br /&gt;MYSQLDUMP="$(which mysqldump)"&lt;br /&gt;GZIP="$(which gzip)"&lt;br /&gt;&lt;br /&gt;# get all database listing&lt;br /&gt;DBS="$($MYSQL -u $MUSER -h $MHOST -p$MPASS -Bse 'show databases')"&lt;br /&gt;&lt;br /&gt;# start to dump database one by one&lt;br /&gt;for db in $DBS&lt;br /&gt;do&lt;br /&gt;&amp;nbsp;FILE=$BAK/$db-backkup.$NOW-$(date +"%T").gz&lt;br /&gt;&amp;nbsp;# gzip compression for each backup file&lt;br /&gt;&amp;nbsp;$MYSQLDUMP -u $MUSER -h $MHOST -p$MPASS $db | $GZIP -9 &amp;gt; $FILE&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The MySQL permissions required for the script above are SHOW DATABASES, SELECT, LOCK TABLES, and RELOAD. Grant them by entering the mysql command line and issuing these commands (choosing a better password than 'readonly' of course)&lt;br /&gt;&lt;br /&gt;GRANT SHOW DATABASES, SELECT, LOCK TABLES, RELOAD ON *.* to backup@localhost&lt;br /&gt;&amp;nbsp;IDENTIFIED BY 'readonly';&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Create a cron job that will execute this script regularly at a specific time, in my case i set it to 22:30 PM every night and here is my cron job&lt;br /&gt;&lt;br /&gt;30 22 * * * sh &amp;nbsp;/path/to/your/mysqlbackup.sh&lt;br /&gt;&lt;br /&gt;Create another cron job that will execute at a specific time to clean your backup files older than 5 days&lt;br /&gt;&lt;br /&gt;25 22 * * *&amp;nbsp;find /home/backups/mysql/ -name '*.sql' -and -mtime +4 | xargs rm -f&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-9064073563239613697?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/9064073563239613697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/01/shell-script-to-backup-mysql-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/9064073563239613697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/9064073563239613697'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/01/shell-script-to-backup-mysql-database.html' title='Shell script to backup mysql database'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-4419017054010344975</id><published>2010-01-19T17:19:00.000+06:00</published><updated>2010-01-19T17:19:06.369+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Downgrading php 5.3 to php 5.2 using yum on centos 5.4</title><content type='html'>First you need to allow downgrade for yum and for that you need to install yum-allowdowngrad utility program, but its very easy to install, Just issue the following command:&lt;br /&gt;&lt;br /&gt;#yum install yum-allowdowngrade&lt;br /&gt;&lt;br /&gt;Now add a line to your &amp;nbsp;yum.conf file, its located in /etc/yum.conf&lt;br /&gt;#vi /etc/yum.conf&lt;br /&gt;showdupesfromrepos=1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After that list all php packages:&lt;br /&gt;&lt;br /&gt;yum list php&lt;br /&gt;&lt;br /&gt;If php 5.2.8 is available, remove new one:&lt;br /&gt;&lt;br /&gt;yum remove php&lt;br /&gt;&lt;br /&gt;and install an old one:&lt;br /&gt;&lt;br /&gt;yum --allow-downgrade install php-5.2.8&lt;br /&gt;&lt;br /&gt;You are done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-4419017054010344975?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/4419017054010344975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2010/01/downgrading-php-53-to-php-52-using-yum.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4419017054010344975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4419017054010344975'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2010/01/downgrading-php-53-to-php-52-using-yum.html' title='Downgrading php 5.3 to php 5.2 using yum on centos 5.4'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1181054687153687072</id><published>2009-12-29T21:52:00.004+07:00</published><updated>2009-12-29T22:07:21.669+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to install subversion 1.6.6 on CentOS 5.4</title><content type='html'>&lt;b&gt;Step-1:&lt;/b&gt; Download all the required .rpm file from this location(http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.6/rhel5/i386/) to your local drive.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;step-2: Remove Cadaver: yum remove cadaver&lt;/div&gt;&lt;div&gt;Step-3: Remoe old Neon and Neon Devel: yum remove neon neon-devel&lt;/div&gt;&lt;div&gt;Step-4: Install latest version of neon: rpm-Uvh neon-0.28.4-1.i386.rpm&lt;/div&gt;&lt;div&gt;Step-5: Install latest version of neon devel: rpm -Uvh neon-devel-0.28.4-1.i386.rpm&lt;/div&gt;&lt;div&gt;Step-6: Remove sqlite-devel: yum remove sqlite-devel&lt;/div&gt;&lt;div&gt;Step-7: Install latest sqlite and sqlite-devel: yum install sqlite sqlite-devel&lt;/div&gt;&lt;div&gt;Step-8: Install latest subversion and mod_dav_svn:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;to be continued..........&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1181054687153687072?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1181054687153687072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/12/how-to-install-subversion-166-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1181054687153687072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1181054687153687072'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/12/how-to-install-subversion-166-on-centos.html' title='How to install subversion 1.6.6 on CentOS 5.4'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2759878976957401572</id><published>2009-12-27T17:10:00.001+07:00</published><updated>2009-12-27T17:14:31.451+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to install sun java JDK</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_17/bin/java 100&lt;/div&gt;&lt;div&gt;alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_17/bin/jar 100&lt;/div&gt;&lt;div&gt;alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_17/bin/javac 100&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', Times, serif; font-size: 14px; color: rgb(17, 17, 17); line-height: 22px; "&gt;&lt;h2 style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 1.8em; font-weight: normal; line-height: 1.267em; "&gt;Set JAVA_HOME / PATH for all user&lt;/h2&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;You need to setup global config in &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(153, 102, 51); "&gt;/etc/profile&lt;/span&gt; OR &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(153, 51, 153); "&gt;/etc/bash.bashrc&lt;/span&gt; file for all users:&lt;br /&gt;&lt;code style="padding-top: 0.615em; padding-right: 0.846em; padding-bottom: 0.615em; padding-left: 0.846em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.692em; margin-left: 0px; font-family: Consolas, 'Andale Mono', Courier, 'Courier New'; line-height: 1.385em; background-image: none; background-repeat: repeat; background-attachment: scroll; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-size: 0.929em; display: block; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); background-position: 0px 0px; "&gt;# vi /etc/profile&lt;/code&gt;&lt;br /&gt;Next setup PATH / JAVA_PATH variables as follows:&lt;br /&gt;&lt;code style="padding-top: 0.615em; padding-right: 0.846em; padding-bottom: 0.615em; padding-left: 0.846em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.692em; margin-left: 0px; font-family: Consolas, 'Andale Mono', Courier, 'Courier New'; line-height: 1.385em; background-image: none; background-repeat: repeat; background-attachment: scroll; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-size: 0.929em; display: block; overflow-x: auto; overflow-y: auto; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); background-position: 0px 0px; "&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;br /&gt;export PATH=$PATH:/usr/java/jdk1.5.0_07/bin&lt;/code&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2759878976957401572?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2759878976957401572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/12/how-to-install-sun-java-jdk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2759878976957401572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2759878976957401572'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/12/how-to-install-sun-java-jdk.html' title='How to install sun java JDK'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-5375805254374685026</id><published>2009-12-27T10:21:00.000+07:00</published><updated>2009-12-27T10:22:27.012+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to create a self-signed SSL Certificate with OpenSSL</title><content type='html'>&lt;div&gt; Overview&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where security and privacy is necessary, such as in credit card data and bank transactions. The Secure Socket Layer is used to encrypt the data stream between the web server and the web client (the browser).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    SSL makes use of what is known as asymmetric cryptography, commonly referred to as public key cryptography (PKI). With public key cryptography, two keys are created, one public, one private. Anything encrypted with either key can only be decrypted with its corresponding key. Thus if a message or data stream were encrypted with the server's private key, it can be decrypted only using its corresponding public key, ensuring that the data only could have come from the server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    If SSL utilizes public key cryptography to encrypt the data stream traveling over the Internet, why is a certificate necessary? The technical answer to that question is that a certificate is not really necessary - the data is secure and cannot easily be decrypted by a third party. However, certificates do serve a crucial role in the communication process. The certificate, signed by a trusted Certificate Authority (CA), ensures that the certificate holder is really who he claims to be. Without a trusted signed certificate, your data may be encrypted, however, the party you are communicating with may not be whom you think. Without certificates, impersonation attacks would be much more common.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 1: Generate a Private Key&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    The openssl toolkit is used to generate an RSA Private Key and CSR (Certificate Signing Request). It can also be used to generate self-signed certificates which can be used for testing purposes or internal usage.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    The first step is to create your RSA Private Key. This key is a 1024 bit RSA key which is encrypted using Triple-DES and stored in a PEM format so that it is readable as ASCII text.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    openssl genrsa -des3 -out server.key 1024&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    Generating RSA private key, 1024 bit long modulus&lt;/div&gt;&lt;div&gt;    .........................................................++++++&lt;/div&gt;&lt;div&gt;    ........++++++&lt;/div&gt;&lt;div&gt;    e is 65537 (0x10001)&lt;/div&gt;&lt;div&gt;    Enter PEM pass phrase:&lt;/div&gt;&lt;div&gt;    Verifying password - Enter PEM pass phrase:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 2: Generate a CSR (Certificate Signing Request)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    Once the private key is generated a Certificate Signing Request can be generated. The CSR is then used in one of two ways. Ideally, the CSR will be sent to a Certificate Authority, such as Thawte or Verisign who will verify the identity of the requestor and issue a signed certificate. The second option is to self-sign the CSR, which will be demonstrated in the next section.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    During the generation of the CSR, you will be prompted for several pieces of information. These are the X.509 attributes of the certificate. One of the prompts will be for "Common Name (e.g., YOUR name)". It is important that this field be filled in with the fully qualified domain name of the server to be protected by SSL. If the website to be protected will be https://public.akadia.com, then enter public.akadia.com at this prompt. The command to generate the CSR is as follows:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    openssl req -new -key server.key -out server.csr&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    Country Name (2 letter code) [GB]:CH&lt;/div&gt;&lt;div&gt;    State or Province Name (full name) [Berkshire]:Bern&lt;/div&gt;&lt;div&gt;    Locality Name (eg, city) [Newbury]:Oberdiessbach&lt;/div&gt;&lt;div&gt;    Organization Name (eg, company) [My Company Ltd]:Akadia AG&lt;/div&gt;&lt;div&gt;    Organizational Unit Name (eg, section) []:Information Technology&lt;/div&gt;&lt;div&gt;    Common Name (eg, your name or your server's hostname) []:public.akadia.com&lt;/div&gt;&lt;div&gt;    Email Address []:martin dot zahn at akadia dot ch&lt;/div&gt;&lt;div&gt;    Please enter the following 'extra' attributes&lt;/div&gt;&lt;div&gt;    to be sent with your certificate request&lt;/div&gt;&lt;div&gt;    A challenge password []:&lt;/div&gt;&lt;div&gt;    An optional company name []:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 3: Remove Passphrase from Key&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    One unfortunate side-effect of the pass-phrased private key is that Apache will ask for the pass-phrase each time the web server is started. Obviously this is not necessarily convenient as someone will not always be around to type in the pass-phrase, such as after a reboot or crash. mod_ssl includes the ability to use an external program in place of the built-in pass-phrase dialog, however, this is not necessarily the most secure option either. It is possible to remove the Triple-DES encryption from the key, thereby no longer needing to type in a pass-phrase. If the private key is no longer encrypted, it is critical that this file only be readable by the root user! If your system is ever compromised and a third party obtains your unencrypted private key, the corresponding certificate will need to be revoked. With that being said, use the following command to remove the pass-phrase from the key:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    cp server.key server.key.org&lt;/div&gt;&lt;div&gt;    openssl rsa -in server.key.org -out server.key&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    The newly created server.key file has no more passphrase in it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    -rw-r--r-- 1 root root 745 Jun 29 12:19 server.csr&lt;/div&gt;&lt;div&gt;    -rw-r--r-- 1 root root 891 Jun 29 13:22 server.key&lt;/div&gt;&lt;div&gt;    -rw-r--r-- 1 root root 963 Jun 29 13:22 server.key.org&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 4: Generating a Self-Signed Certificate&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    At this point you will need to generate a self-signed certificate because you either don't plan on having your certificate signed by a CA, or you wish to test your new SSL implementation while the CA is signing your certificate. This temporary certificate will generate an error in the client browser to the effect that the signing certificate authority is unknown and not trusted.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    To generate a temporary certificate which is good for 365 days, issue the following command:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt&lt;/div&gt;&lt;div&gt;    Signature ok&lt;/div&gt;&lt;div&gt;    subject=/C=CH/ST=Bern/L=Oberdiessbach/O=Akadia AG/OU=Information&lt;/div&gt;&lt;div&gt;    Technology/CN=public.akadia.com/Email=martin dot zahn at akadia dot ch&lt;/div&gt;&lt;div&gt;    Getting Private key&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 5: Installing the Private Key and Certificate&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    When Apache with mod_ssl is installed, it creates several directories in the Apache config directory. The location of this directory will differ depending on how Apache was compiled.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    cp server.crt /usr/local/apache/conf/ssl.crt&lt;/div&gt;&lt;div&gt;    cp server.key /usr/local/apache/conf/ssl.key&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 6: Configuring SSL Enabled Virtual Hosts&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    SSLEngine on&lt;/div&gt;&lt;div&gt;    SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt&lt;/div&gt;&lt;div&gt;    SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key&lt;/div&gt;&lt;div&gt;    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown&lt;/div&gt;&lt;div&gt;    CustomLog logs/ssl_request_log \&lt;/div&gt;&lt;div&gt;       "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 7: Restart Apache and Test&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    /etc/init.d/httpd stop&lt;/div&gt;&lt;div&gt;    /etc/init.d/httpd stop &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-5375805254374685026?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/5375805254374685026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/12/how-to-create-self-signed-ssl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5375805254374685026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5375805254374685026'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/12/how-to-create-self-signed-ssl.html' title='How to create a self-signed SSL Certificate with OpenSSL'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-898754597333989287</id><published>2009-10-27T16:52:00.003+07:00</published><updated>2009-10-27T17:01:49.133+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Generating a Certificate Signing Request (CSR)</title><content type='html'>This howto describes the instructions to generate a CSR for your Web site. In this guide I use OpenSSL. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Step-1:&lt;/b&gt; Create a RSA private key for your Apache server, PEM-formatted:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#openssl genrsa -des3 -out &lt;name&gt;.key 2048&lt;/name&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It will ask for a pass phrase, provide a pass phrase of your own here.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step-2:&lt;/b&gt; Create a Certificate Signing Request using the RSA private key created above (output will be PEM format):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#openssl req -new -key &lt;name&gt;.key -out &lt;name&gt;.csr&lt;/name&gt;&lt;/name&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note that the Common Name field is the field where the domain name should be stated.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you want to read your generated .csr file, then issue the following command&lt;/div&gt;&lt;div&gt;#openssl req -text -noout -in &lt;your&gt;.csr&lt;/your&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-898754597333989287?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/898754597333989287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/10/generating-certificate-signing-request.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/898754597333989287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/898754597333989287'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/10/generating-certificate-signing-request.html' title='Generating a Certificate Signing Request (CSR)'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1807354139797831049</id><published>2009-10-04T16:46:00.002+07:00</published><updated>2010-04-21T10:42:07.661+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Troubleshooting'/><title type='text'>How to remove a Hidded Network Adaptor from windows pc</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Some times we face problem while configuring a NIC, the error message says the address is already assigned to a other NIC but we do not see any NIC from device manager or Network Manage because the other NIC is hidden. To resolve this problem we can troubleshoot in two ways.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Troubleshooting Step-1:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-1: Type the following commands at a command prompt&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="white-space: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;set DEVMGR_SHOW_NONPRESENT_DEVICES=1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;Step-2: Open Device Manager enable "Show Hidden Devices" from the View Menu bar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;Step-3: Locate the hidden device and uninstall it.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;Step-4: Reboot the pc&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;If you are lucky then this will solve your hidden network card problem, if not then you have to go little more&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;Troubleshooting Step-2:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: small;"&gt;Microsoft has Device Configuration Utility called devcon which can be use to&amp;nbsp;enable, disable, restart, update, remove, and query individual devices or groups of devices. To use DevCon, follow these steps:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-1: Download the DevCon tool by clicking the following article number to view the article in the Microsoft Knowledge Base:311272 &amp;nbsp;(http://support.microsoft.com/kb/311272/ ) The DevCon command-line utility functions as an alternative to Device Manager&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-2: Unpack the 32-bit or 64-bit DevCon tool binary to a local folder.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-3: Click Start, click Run, then type cmd and press ENTER.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Type CD:\path_to_binaries to navigate to the devcon.exe is located.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-4:Use the following syntax to find installed network adapters:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;devcon findall =net or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;devcon listclass net&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Note In the output of the previous commands, there is a line for the ghosted network adapter that is similar to the following:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;PCI\VEN_10B7&amp;amp;DEV_9200&amp;amp;SUBSYS_00D81028&amp;amp;REV_78\4&amp;amp;19FD8D60&amp;amp;0&amp;amp;58F0: 3Com 3C920 Integrated Fast Ethernet Controller (3C905C-TX Compatible)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-5:Remove the ghosted device by typing the following syntax:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;devcon -r remove "@PCI\VEN_10B7&amp;amp;DEV_9200&amp;amp;SUBSYS_00D81028&amp;amp;REV_78\4&amp;amp;19FD8D60&amp;amp;0&amp;amp;58F0"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1807354139797831049?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1807354139797831049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/10/how-to-remove-hidded-network-adaptor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1807354139797831049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1807354139797831049'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/10/how-to-remove-hidded-network-adaptor.html' title='How to remove a Hidded Network Adaptor from windows pc'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-5788377425475003935</id><published>2009-07-13T13:40:00.000+07:00</published><updated>2009-07-13T13:41:49.729+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure sendmail for dns based blacklisting</title><content type='html'>&lt;div&gt;Sendmail can be configured to check and block IP addresses of incoming emails that are found to be listed on one or more DNS blacklists.&lt;/div&gt;&lt;div&gt;This can be achieved by configuring sendmail directive dnsbl or DNS blacklists. During the SMTP handshake and conversation of host’s IP address to sendmail SMTP port,&lt;/div&gt;&lt;div&gt;sendmail can check the connecting hosts for possible black listed IP address from DNS blacklists, lowering down the percentage of incoming SPAM emails.&lt;/div&gt;&lt;div&gt;In this tutorial, i am going to show you how to do that in quick simple and easy steps&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Steps on how to configure sendmail to check with DNS Blacklists&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step-1:&lt;/div&gt;&lt;div&gt;Choose which DNS blacklists are active with a high history of reliability for blacklisting IP address. As an example here, &lt;/div&gt;&lt;div&gt;we would be using three DNS blacklists servers&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;zen.spamhaus.org&lt;/div&gt;&lt;div&gt;list.dsbl.org&lt;/div&gt;&lt;div&gt;combined.njabl.org&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can use your choice of DNS blacklists server sources to suit your needs.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step-2:&lt;/div&gt;&lt;div&gt;Configure sendmail to use dnsbl sendmail directive. Backup and modify /etc/mail/sendmail.mc and insert the below details&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;FEATURE(`dnsbl', `zen.spamhaus.org', `"550 Refused unsolicited email from " $`'&amp;amp;{client_addr} " - Request access at http://www.spamhaus.org/query/bl?ip=" $`'&amp;amp;{client_addr} ')dnl&lt;/div&gt;&lt;div&gt;FEATURE(`dnsbl', `list.dsbl.org', `"550  Refused unsolicited email from  " $`'&amp;amp;{client_addr} " - Request access see http://dsbl.org/listing?"$&amp;amp;{client_addr}')dnl&lt;/div&gt;&lt;div&gt;FEATURE(`dnsbl', `combined.njabl.org', `"550  Refused unsolicited email from  " $`'&amp;amp;{client_addr} " - Request access see http://njabl.org/lookup?$&amp;amp;{client_addr}')dnl&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The above has been customized to reflect the following useful details&lt;/div&gt;&lt;div&gt;a. IP address of the denied computer hosts&lt;/div&gt;&lt;div&gt;b. DNS blacklist server that has been used for checking the denied host&lt;/div&gt;&lt;div&gt;c. Error message with URL site to be shown to computer host for further course of action and why he has been blocked&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The above sendmail details would also be reflected to sendmail’s default log file for further statistics and monitoring details.&lt;/div&gt;&lt;div&gt;By default, dnsbl sendmail directive is not included with default sendmail configuration setup.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step-3:&lt;/div&gt;&lt;div&gt;Recompile and restart sendmail daemon service&lt;/div&gt;&lt;div&gt;# m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf&lt;/div&gt;&lt;div&gt;# service sendmail restart&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Monitoring DNS Blacklist Logs with Sendmail&lt;/div&gt;&lt;div&gt;# tailf /var/log/maillog | grep ‘Refused unsolicited’&lt;/div&gt;&lt;div&gt;Counting blocked hosts by Sendmail DNS blacklists&lt;/div&gt;&lt;div&gt;# cat /var/log/maillog | grep ‘Refused unsolicited’ | wc -l&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-5788377425475003935?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/5788377425475003935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/07/how-to-configure-sendmail-for-dns-based.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5788377425475003935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5788377425475003935'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/07/how-to-configure-sendmail-for-dns-based.html' title='How to configure sendmail for dns based blacklisting'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1465221137363693480</id><published>2009-07-13T11:34:00.001+07:00</published><updated>2009-07-13T13:34:56.771+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure Sendmail as Smart Host</title><content type='html'>&lt;div&gt;We can configure sendmail to send emails directly to destination host or email server. but, network traffic congestion, destination location, and connectivity issue sometimes affect successful mail delivery.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this tutorial, we are going to configure Sendmail as a smart email host&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;i am assuming that you have a existing and working Sendmail Setup&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Configuration Steps for Sendmail as Smart Host&lt;/div&gt;&lt;div&gt;To create a smart host from your sendmail, backup and edit your sendmail conf file&lt;/div&gt;&lt;div&gt;# vi /etc/mail/sendmail.cdf&lt;/div&gt;&lt;div&gt;Look for sendmail directive line similar below and modify it&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;dnl define(`SMART_HOST’, `smtp.your.provider’)dnl&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Simply replace ’smtp.your.provider’ with your email gateway server and remove the starting and ending ‘dnl’ words from the line . The new sendmail smart host directive will look like&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;define(`SMART_HOST’, `you-smtp.your.provider’)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Save and exit.&lt;/div&gt;&lt;div&gt;Recompile sendmail configuration file&lt;/div&gt;&lt;div&gt;# m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf&lt;/div&gt;&lt;div&gt;Restart sendmail daemon service&lt;/div&gt;&lt;div&gt;# service sendmail restart&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When an email failed to be delivered, sendmail smart host will act as a fallback failover mechanism on sending failed emails from local sendmail source to smart host STMP server then going to email destination server.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1465221137363693480?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1465221137363693480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/07/how-to-configure-sendmail-as-smart-host.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1465221137363693480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1465221137363693480'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/07/how-to-configure-sendmail-as-smart-host.html' title='How to configure Sendmail as Smart Host'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3416964373601210289</id><published>2009-06-29T14:04:00.005+07:00</published><updated>2009-07-02T20:47:57.112+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure SSL VPN on centos 5.3</title><content type='html'>SSL VPN is an integrated software solution enabling secure, clientless remote access to internal network resources from any Web browser. Designed for remote employees, SSL VPN provides comprehensive control over file systems and Web-based applications requiring external access.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In this tutorial, i am going to show you how to configure a web based SSL VPN on CentOS 5.3 using Adito,  Adito is a web-based SSL VPN server written in Java. It has a browser-based AJAX UI which allows easy access to intranet services. Adito is a fork of SSL-Explorer. For more informaiton, see http://adito.wiki.sourceforge.net&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Requirements:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;1. JRE&lt;/div&gt;&lt;div&gt;2. Ant&lt;/div&gt;&lt;div&gt;3. Adito Binaries&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step-1&lt;/b&gt;: Installing JRE and Configuring JAVA Environment.&lt;/div&gt;&lt;div&gt;You can install JRE in two ways, one using YUM and another is manual way,  that means downloading JRE rpm and manual configuration. In this article i am using YUM to install JRE.&lt;/div&gt;&lt;div&gt;#yum install jre&lt;/div&gt;&lt;div&gt;JRE has some dependencies, but don’t worry, yum will handle that automatically for you.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step-2&lt;/b&gt;: Installing ANT&lt;/div&gt;&lt;div&gt;You can also install ANT using YUM utility, Just issue the following command;&lt;/div&gt;&lt;div&gt;#yum install ant&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It also has some dependencies, but dont worry YUM will install them for you automatically.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step-3&lt;/b&gt;: Adito configuration&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First download the binary release of Adito from sourceforge (http://nchc.dl.sourceforge.net/sourceforge/adito/adito-0.9.1-bin.tar.gz)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#wget http://nchc.dl.sourceforge.net/sourceforge/adito/adito-0.9.1-bin.tar.gz&lt;/div&gt;&lt;div&gt;After downloading, un compress it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#tar -zxvf adito-0.9.1-bin.tar.gz&lt;/div&gt;&lt;div&gt;#cd adito-0.9.1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now we need to configure adito, its very simple, just issue the following command:&lt;/div&gt;&lt;div&gt;#ant install&lt;/div&gt;&lt;div&gt;Output will be something like this;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;Buildfile: build.xml&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;set-tools:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;check-tools:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;check-permissions:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;install:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [java] Starting installation wizard.........Point your browser to http://ServerName:28080.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [java] Press CTRL+C or use the 'Shutdown' option from the web interface to leave the installation wizard.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Its asking to point your browser to http://ServerName:28080, open browser and type url with port. you will the Adito Server Configuration Page. Complete the Configuration wizard and click finish.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then in the terminal, output will be something like this; that means configuration done&lt;/div&gt;&lt;div&gt;   &lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;[java] .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [java] Jun 29, 2009 8:19:53 PM java.util.prefs.FileSystemPreferences$3 run&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [java] INFO: Created system preferences directory in java.home.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;BUILD SUCCESSFUL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;Total time: 3 minutes 17 seconds&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now Run adito by issuing the following command:&lt;/div&gt;&lt;div&gt;#ant start&lt;/div&gt;&lt;div&gt;terminal output will be something like this;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;Buildfile: build.xml&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;create-wrapper-conf:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [copy] Copying 1 file to /opt/adito-0.9.1/conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [echo] Creating wrapper configuration dynamically&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [echo]    Java executable: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [echo]    Wrapper directory: install/platforms/linux/x86&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;set-tools:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;check-tools:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;check-permissions:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;start:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [exec] Starting Adito...&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;     [echo] Adito started&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;BUILD SUCCESSFUL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;Total time: 0 seconds&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Now you can browse the Adito simply typing the server name or ip in the browser and play with it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To install Adito as linux service, issue the following command;&lt;/div&gt;&lt;div&gt;#ant install-service&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thats it. We are done with SSL VPN Configuration.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3416964373601210289?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3416964373601210289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-configure-ssl-vpn-on-centos-53.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3416964373601210289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3416964373601210289'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-configure-ssl-vpn-on-centos-53.html' title='How to configure SSL VPN on centos 5.3'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3532840669292812286</id><published>2009-06-25T11:44:00.002+07:00</published><updated>2009-06-25T12:10:14.043+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>How to download Youtube video with goog chrome</title><content type='html'>You are watching youtube video using google chrome browser, suddenly you thought you need to download this video, but how??&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just follow this steps:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Open your chrome browser if already not open, create a book mark named "Download YouTube" and for the address, paste the following code:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; font-size: 15px; "&gt;javascript&lt;b&gt;&lt;/b&gt;:window.location.href = 'http://youtube.com/get_video?video_id=' + swfArgs['video_id']+ "&amp;amp;l=" + swfArgs['l'] + "&amp;amp;sk=" + swfArgs['sk'] + '&amp;amp;fmt_map' + swfArgs['fmt_map'] + '&amp;amp;t=' + swfArgs['t'];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:verdana;font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:verdana;font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;div&gt;Then save your bookmark. Next go to the YouTube video you want to download, when it starts playing click your "Download YouTube" bookmark and you will see the .flv start to download in Chrome's download status bar.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3532840669292812286?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3532840669292812286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-download-youtube-video-with-goog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3532840669292812286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3532840669292812286'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-download-youtube-video-with-goog.html' title='How to download Youtube video with goog chrome'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1526104413766568508</id><published>2009-06-22T16:16:00.000+07:00</published><updated>2009-06-22T16:17:32.347+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Troubleshooting'/><title type='text'>Disable the Application Error Reporting tool DW20.exe</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Lucida Sans Unicode'; font-size: 11px; line-height: 19px; "&gt;To disable the Application Error Reporting tool, add a DWReportee value of 1 to following registry keys:&lt;br /&gt;HKEY_CURRENT_USER\Software\Policies\Microsoft\PCHealth\ErrorReporting\DW&lt;br /&gt;HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\PCHealth\ErrorReporting\DW&lt;br /&gt;HKEY_CURRENT_USER\Software\Microsoft\PCHealth\ErrorReporting\DW&lt;br /&gt;HKEY_LOCAL_MACHINE\Software\Microsoft\PCHealth\ErrorReporting\DW&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1526104413766568508?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1526104413766568508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/06/disable-application-error-reporting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1526104413766568508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1526104413766568508'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/06/disable-application-error-reporting.html' title='Disable the Application Error Reporting tool DW20.exe'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2053478056454247160</id><published>2009-06-21T12:06:00.006+07:00</published><updated>2009-06-28T14:24:30.839+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to install PhyMyAdmin on Centos 5.3</title><content type='html'>PhpMyAdmin is a very usefull tool to manage and control MySql Server database from browser. Installation is also very easy and straight forward. Just follow the steps below:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step-1&lt;/b&gt;: Download Latest Version of PhpMyAdmin&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Latest version of phpmyadmin is 3.2 but it requires to have php 5.3 installed in the web server. Currenlty php 5.3 doesn't support in CentOS 5.3, so better to install the early verstion.&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Login to the web server console using ssh with root privilege and issue the following command&lt;/div&gt;&lt;div&gt;#wget http://nchc.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.11.9.5-all-languages.tar.gz&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Uncompressed the downloaded file and rename it to phpmyadmin. Move the phpmyadmin folder to /usr/share/&lt;/div&gt;&lt;div&gt;#mv phpmyadmin /usr/share&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;S&lt;b&gt;tep-2&lt;/b&gt;: Configuration&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;There are two ways of configuring PhpMyAdmin, you can place the files where they need to be and edit configuration files to suit or there is an setup script for those that are more comfortable doing it that way. I'll go through the manual installation process here.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Go to /usr/share/phpmyadmin and copy the sample config file as config.inc.php&lt;/div&gt;&lt;div&gt;#cd /usr/share/phpmyadmin/&lt;/div&gt;&lt;div&gt;#cp config.sample.inc.php config.inc.php&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now edit the config.inc.php for our own setting.&lt;/div&gt;&lt;div&gt;#vi config.inc.php&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Go to authentication section and change the auth_type to http and in the server parameters, change host name if mysql installed in different server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;/* Authentication type */&lt;/div&gt;&lt;div&gt;$cfg['Servers'][$i]['auth_type'] = 'http';&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/* Server parameters */&lt;/div&gt;&lt;div&gt;$cfg['Servers'][$i]['host'] = 'localhost';&lt;/div&gt;&lt;div&gt;$cfg['Servers'][$i]['connect_type'] = 'tcp';&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Save the file and exit.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now create one file named phpmyadmin.conf under /etc/httpd/conf.d/ and add the following lines to it&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#touch /etc/httpd/conf.d/phpmyadmin.conf&lt;/div&gt;&lt;div&gt;#vi /etc/httpd/conf.d/phpmyadmin.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;#Application to manage MySQL&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Alias /phpMyAdmin /usr/share/phpmyadmin&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Save the file and Exit. Now to read the phpmyadmin configuration file, Reload Apache or Restart apache&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#Service httpd restart&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now time to test. from a browser, type http://servername/phpmyadmin&lt;/div&gt;&lt;div&gt;It will ask for user name and password, Provide mysql login user name and password, if everything this is ok, then you will be in phpmyadmin control  panel, now do what ever you need.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2053478056454247160?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2053478056454247160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-install-phymyadmin-on-centos-53.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2053478056454247160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2053478056454247160'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-install-phymyadmin-on-centos-53.html' title='How to install PhyMyAdmin on Centos 5.3'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1899994775902570873</id><published>2009-06-15T14:20:00.003+06:00</published><updated>2009-06-15T14:30:34.187+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Server IIS'/><title type='text'>How to switch IIS to 32bit mode in windows 2003 64 bit edition</title><content type='html'>On a 64bit windows 2003 server, you can run 32 bit web applications by switching IIS to 32bit mode. To do this you need to execute few command.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First check IIS current mode by executing the following command:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs get W3SVC/AppPools/Enable32bitAppOnWin64&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;Microsoft (R) Windows Script Host Version 5.6&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-small;"&gt;The parameter "Enable32bitAppOnWin64" is not set at this mode&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;you should see that it returns a value of false as shown below, which shows that IIS is currently running in 64-bit mode.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;In order to configure IIS to run in 32-bit mode you need to execute this command :&lt;/p&gt; &lt;p&gt;cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1&lt;/p&gt; &lt;p&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Microsoft (R) Windows Script Host Version 5.6&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Enable32bitAppOnWin64           : (BOOLEAN) True&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You should now see that it returns a value of True as shown here. This means that IIS is now running in 32-bit mode on your server.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1899994775902570873?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1899994775902570873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-switch-iis-to-32bit-mode-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1899994775902570873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1899994775902570873'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-switch-iis-to-32bit-mode-in.html' title='How to switch IIS to 32bit mode in windows 2003 64 bit edition'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7168254785904315862</id><published>2009-06-14T15:09:00.001+06:00</published><updated>2009-06-14T15:40:18.459+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to Configure VPN (PPTP) Server on CentOS 5.3</title><content type='html'>&lt;p class="MsoNormalCxSpFirst" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;In this document you will find the steps on how to build a Linux Point to Point Tunneling Protocol (PPTP) server using Poptop. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;This allows roaming users to connect to their corporate network from anywhere on the Internet securely and inexpensively.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;It supports Windows 95/98/Me/NT/2000/XP PPTP clients and Linux PPTP clients. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Requirements&lt;/span&gt;&lt;/b&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Server: CentOS 5.3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;kernel-2.6.18-128.el5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;ppp-2.4.4-2.el5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;pptpd-1.3.4-1.rhel5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Kernel version 2.6.15 or above has MPPE built-in which is required for MSCHAPv2. CentOS 5 kernel version is 2.6.18 that means you do not need to install the MPPE module. CentOS 5comes with ppp-2.4.4-1.el5 and it is MPPE support enabled.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Step-1&lt;/span&gt;&lt;/b&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;: Install ppp if already not installed and Check if kernel supports MPPE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#yum install ppp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Run the command below to test if your kernel supports MPPE and you should get a return an “ok”: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#modprobe ppp-compress-18 &amp;amp;&amp;amp; echo ok&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Step-2&lt;/span&gt;&lt;/b&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;: Install PPTPD&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;You cannot install the pptpd using yum utility because it’s not in yum repo. Download the RPM file pptpd-1.3.4-1.rhel5.1.i386.rpm from http://poptop.sourceforge.net/yum/stable/packages/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-1.rhel5.1.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Install the RPM by running this command: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Step-3&lt;/span&gt;&lt;/b&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;: Configuration&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Change the /etc/ppp/options.pptpd as below: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#vi /etc/ppp/options.pptpd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;name pptpd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;refuse-pap&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;refuse-chap&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;refuse-mschap&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;require-mschap-v2&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;require-mppe-128&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;proxyarp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;lock&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;nobsdcomp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;novj&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;novjccomp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;nologfd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Change the following file /etc/pptpd.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#vi /etc/pptpd.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;option /etc/ppp/options.pptpd&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;logwtmp&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;localip 192.168.2.1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;remoteip 192.168.2.11-15&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Add the following username (johndie) and password (passwrd) in /etc/ppp/chap-secrets as below: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;# Secrets for authentication using CHAP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;# client server secret IP addresses&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;vpnuser pptpd passwrd *&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Step-4&lt;/span&gt;&lt;/b&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;: Run the following command to enable the pptpd to start automatically in runlevel 3 and 5 as below: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#chkconfig --level 35 pptpd on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Now, you can start the pptpd service as below: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#service pptpd start&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Step-5&lt;/span&gt;&lt;/b&gt;&lt;span style="Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;: For pptpd to work, the packet forwarding must be enabled. Edit /etc/sysctl.conf and change the line to below: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#vi /etc/sysctl.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;net.ipv4.ip_forward = 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;To enable it immediately, run following command: -&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;#sysctl -p&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;Now test your setup by creating a vpn connection from any windows or linux pc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormalCxSpMiddle" style="mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;line-height:normal"&gt;&lt;span style=" Tahoma&amp;quot;,&amp;quot;sans-serif&amp;quot;font-family:&amp;quot;;font-size:8.0pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7168254785904315862?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7168254785904315862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-configure-vpn-pptp-server-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7168254785904315862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7168254785904315862'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/06/how-to-configure-vpn-pptp-server-on.html' title='How to Configure VPN (PPTP) Server on CentOS 5.3'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2240449818721263399</id><published>2009-05-28T10:49:00.007+06:00</published><updated>2009-05-28T16:37:22.737+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>How to configure MySQL High Availability with DRBD and Heartbeat on Centos 5.3</title><content type='html'>&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;In this tutorial, we're going to go through the entire process of installing, configuring and testing DRBD, Heartbeat and MySQL running in a 2 node cluster environment. This will be a general configuration for learning.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Best practices and security will take a back seat while we learn how all the different pieces work together.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Let’s get started.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Requirements:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;In this setup we need two server. To continue farther, you should be very comfortable with installing and configuring MySQL and other software packe before starting this step by step process.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;I am using CentOs 5.3 distribution for this tutorial.I am using CentOs 5.3 distribution for this tutorial. you will need two server, i am using vmware server for this tutorial as it is the best for this type setup testing.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Server 1: &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Host Name: CentOS5a&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IP Address eth0: 192.168.4.220/24&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;eth1:192.168.1.1/24&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Server 2: &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Host Name: CentOS5b&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;IP Address eth0: 192.168.4.222/24&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;eth1:192.168.1.2/24&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-1&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;: Installation&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@node0 ~]# yum install drbd&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@node0 ~]# rpm install kmod-drbd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@node0 ~]# yum install heartbeat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@node0 ~]# yum install mysql&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@node0 ~]# yum install mysql-devel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;This will install drbr 8.2, heartbeat 2.1.3, drbd kernel module 8.0.13, mysql 5.0.45, which will work just fine for learning DRBD and Heartbeat. Now that we have all our software installed,  Now need to start the configuration.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-2:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Configuring DRBD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;We’re ready to start configuring DRBD on our two node system. Centos5a will become our primary node, making Centos5b our secondary node. These are our steps for configuring DRBD:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;1.&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Create partitions on both nodes.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;2.&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Create drbd.conf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;o&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Configure global drbd options.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;3.&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Configure resource which consists of:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;o&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Disk partitions on node0 and node1.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;o&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Network connection between nodes.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;o&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Error handling&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;o&lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Synchronization&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-3: &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;On each node, use fdisk to create a type 83 linux partition:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style=" font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#fdisk /dev/sda&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style=" font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-4:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Editing the configuration file.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Now edit the drbd.conf file. Location of this file is /etc/drbd.conf, make sure you backup first.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#vi drbd.conf&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#Here is a sample but working configuration file.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;global {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;minor-count 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;resource mysql {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;protocol C; # There are A, B and C protocols. Stick with C.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;# incon-degr-cmd "echo 'DRBD Degraded!' | wall; sleep 60 ; halt -f";&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;# If a cluster starts up in degraded mode, i&lt;/span&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;t will echo a message to all&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;# users. It'll wait 60 seconds then halt the system.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;                &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;on centos5a {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;device /dev/drbd0; # The name of our drbd device.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;disk /dev/sdb1;    # Partition we wish drbd to use.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;address 192.168.4.220:7788; # Centos5a IP address and port number.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;meta-disk internal; # Stores meta-data in lower portion of sdb1.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;on centos5b {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;device /dev/drbd0; # Our drbd device, must match node0.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;disk /dev/sdb1;    # Partition drbd should use.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;address 192.168.4.222:7788; # IP address of Centos5b, and port number.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;meta-disk internal; #Stores meta-data in&lt;/span&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style=" "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; lower portion of sdb1.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;disk {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;on-io-error detach; # What to do when the lower level device errors.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;net {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;max-buffers 2048; #datablock buffers used before writing to disk.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ko-count 4; # Peer is dead if this count is exceeded.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#on-disconnect reconnect; # Peer disconnected, try to reconnect.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;syncer {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;rate 10M; # Synchronization rate, in megebytes. Good for 100Mb network.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#group 1;  # Used for grouping resources, parallel sync.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;al-extents 257; # Must be prime, number of active sets.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;startup {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;wfc-timeout 0; # drbd init script will wait infinitely on resources.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;degr-wfc-timeout 120; # 2 minutes.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; # End of resource mysql&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-5:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Bringing up DRBD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;All software, drbd.conf, and devices have been created, make sure only Centos5a is running. Login as root, then issue the following command:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@node0 ~]# drbdadm create-md mysql&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;After that reboot Centos5a server and login to it as root and issue the following command:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#cat /proc/drbd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Output will be something like this.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;img src="http://1.bp.blogspot.com/_-iB4xap-wXY/Sh4m7Uo7eRI/AAAAAAAACgc/-_Vl8PGGY98/s400/image1.jpg" style="cursor:pointer; cursor:hand;width: 400px; height: 84px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5340749008702503186" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Note that centos5a  is in a secondary state,  we will fix this by promoting it to the primary. &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-6:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Now Start up second node that means Centos5b then you'll have to issue the following command:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@centos5b ~]# drbdadm create-md mysql&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style=" line-height: 19px; "&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Complete the process and issue another command&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#cat /proc/drbd&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Output will be something like this:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;img src="http://3.bp.blogspot.com/_-iB4xap-wXY/Sh5itm74YYI/AAAAAAAACgs/Pd989xqgzoE/s400/image2.jpg" style="cursor:pointer; cursor:hand;width: 400px; height: 89px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5340814743793328514" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style=" line-height: 19px; "&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;You can see that both server is in seconday state. now we will promote the centos5a to primary.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-7:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Promoting first node to Primary&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Login to first node that means Centos5a as root and issue the following command.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@Centos5a ~]# drbdadm -- --overwrite-data-of-peer primary mysql&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Now verify that it really promoted the first node to primary by running the following command again&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#cat /proc/drbd&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Output will be something like this&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="line-height: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;img src="http://1.bp.blogspot.com/_-iB4xap-wXY/Sh5mDnNWcmI/AAAAAAAACg0/Y6bO7w7GdT8/s400/image3.jpg" style="cursor:pointer; cursor:hand;width: 400px; height: 116px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5340818420358607458" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;You've now created a two node cluster. It's very basic, failover is not automatic. We need to take care of that with Heartbeat. First, we need to test DRBD.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="line-height: normal;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-8:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Testing DRBD&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;To have a working system, we need to create a filesystem on Centos5a. We do that just like normal, the difference is we use /dev/drbd0 device instead of /dev/sdb1:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;[root@Centos5a ~]# mkfs.ext3 -L mysql /dev/drbd0&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;[root@Centos5b ~]# mkfs.ext3 /dev/drbd0&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;mke2fs 1.35 (28-Feb-2004)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;mkfs.ext3: Wrong medium type while trying to determine filesystem size&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;You're on Centos5b, which is secondary and /dev/drbd0 is read only! Switch to Centos5a.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;Once that's done, we'll do some simple tests. On Centos5a, mount /dev/drbd0 on /mnt/. Change to that directory, then touch a few test files, create a directory. In order to check to see if our files have been replicated, we need to unmount /mnt/mysql, make Centos5a secondary, promote Centos5b to primary, remount /mnt/mysql then check to see if your files are on Centos5b. These steps are:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;[root@Centos5a ~]# umount /mnt/mysql&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@Centos5a ~]# drbdadm secondary mysql&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;Switch to Centos5b, then:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@Centos5b ~]# drbdadm primary mysql&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;[root@Centos5b ~]# mount /dev/drbd0 /mnt/mysql&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;Check /mnt/ and see what's in there. You should see your files and directories you created on Centos5a! You'll probably notice we didn't make a filesystem on Centos5b for /dev/drbd0. That's because /dev/drbd0 is replicated, so when we created the filesystem on Centos5a, it was also created on Centos5b. Matter of fact, anything we do in Centos5a:/dev/drbd0 will automatically get replicated to Centos5b:/dev/drdb0.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Apple-style-span" style="font-size: 13px; "&gt;Next, we'll configure MySQL to use our DRBD device. We'll practice manually failing MySQL over between nodes before automating it with Heartbeat. You want to make sure you understand how the entire system works before automation. That way, if there was a problem with our test files not showing up on Centos5b, then we know there's a problem with DRBD. If we tried to test the entire system as one large piece, it would be much more difficult to figure out which piece of the puzzle was giving us our problem. For practice, return Centos5a to primary node, and double check your files.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2240449818721263399?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2240449818721263399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/05/how-to-configure-mysql-high.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2240449818721263399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2240449818721263399'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/05/how-to-configure-mysql-high.html' title='How to configure MySQL High Availability with DRBD and Heartbeat on Centos 5.3'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_-iB4xap-wXY/Sh4m7Uo7eRI/AAAAAAAACgc/-_Vl8PGGY98/s72-c/image1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-4986579135843303257</id><published>2009-05-27T15:08:00.003+06:00</published><updated>2010-02-28T16:04:15.505+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft SQL Server'/><title type='text'>How to create SQL Agent Proxy Accounts in SQL 2005/2008 Server</title><content type='html'>&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;In SQL Server 2005 and 2008, to allow a non-sysadmin login to execute xp_cmdshell, you will need to create a special system credential&amp;nbsp;"xp_cmdshell_proxy_account" by running the extended stored procedure "sp_xp_cmdshell_proxy_account" and specify a Windows account.&amp;nbsp;This account will be used to run xp_cmdshell by users that are not members of the sysadmin role.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Before moving forward, we first need to enable the xp_cmndshell by using Sql Serface Area Configuration for Features:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Open it and from left pane, select DatabaseServer, expand it and expand Database Engine also, then select xp_cmdshell, now from the right pane, select check box that says Enable xp_cmdshell&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-1:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Execute the following query from sql management Studio login as sa.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;USE master&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-- Create a user that will be used for running xp_cmdshell called cmdshelluser&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;CREATE LOGIN cmdshelluser WITH PASSWORD='passcmdshell'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-- Add a Windows domain account Domain\User as the SQL Agent Proxy account&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EXEC sp_xp_cmdshell_proxy_account 'domain\sql2005proxy', 'password';&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-- Grant database access to the SQL Server login account that you want to provide access.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EXEC sp_grantdbaccess 'cmdshelluser'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;-- Grant execute permission on xp_cmdshell to the SQL Server login account.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;GRANT exec ON sys.xp_cmdshell TO cmdshelluser&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-2:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Verify that the account is created.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;--To confirm that the ##xp_cmdshell_proxy_account## credential has been created.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;select * from sys.credentials&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-3:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Test executing the xp_cmdshell sp.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EXECUTE AS login = 'cmdshelluser'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;--Execution of xp_cmdshell is allowed.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;--And executes successfully!!!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EXEC xp_cmdshell 'DIR C:\*.*'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Now we are going to explore more on xp_cmdshell with bcp utility. We will use xp_cmdshell and bcp utility to export database table data to remote pc as .csv file in a domain environment. Just follow the steps described below:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-4:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Grand data reader access to cmdshelluser to the database from where you want to export table data.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;USE Dbname&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EXEC sp_grantdbaccess 'cmdshelluser' &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EXEC sp_addrolemember N'db_datareader', N'cmdshelluser'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-5:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; Create one shared folder on remote computer in the same domain.From sharing Tab, allow everyone group change permission and from security tab, grant domainUsers Group modify Permission.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Step-6:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &amp;nbsp;Now time to test.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;declare @cmd nvarchar(1000)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;set @cmd = 'bcp "select * from db_name..table_name" queryout \\remoteserver\CSVReports\test.csv -U cmdshelluser -P passcmdshell -S"dbserver\SQL2005ENT" &amp;nbsp;-w'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;EXECUTE AS login = 'cmdshelluser'&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;exec master..xp_cmdshell @cmd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;If everything is ok, it will export table data to remote server.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-4986579135843303257?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/4986579135843303257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/05/how-to-create-sql-agent-proxy-accounts.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4986579135843303257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4986579135843303257'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/05/how-to-create-sql-agent-proxy-accounts.html' title='How to create SQL Agent Proxy Accounts in SQL 2005/2008 Server'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7917801289425496054</id><published>2009-04-29T15:27:00.001+06:00</published><updated>2009-06-14T15:56:39.595+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Server Virtualization'/><title type='text'>ISO Image Path Issue with vmware</title><content type='html'>If you want to install any virtual server in vmware using .iso file, then definitely you will face one issue, while providing image file path, vmware will say invalid path. You can overcome this isue by following this way,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1. First Install as CD/DVD drive and complete the Create new vitual machine creating wizard.&lt;/div&gt;&lt;div&gt;2. After virtual machine creation, edit the cd/dvd setting and provide the image path as following way&lt;/div&gt;&lt;div&gt;[] d:\path_to_image_dir\imagename.iso&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thats it, when you click ok, it will accept the path. and now you can install the OS using .iso file without any problem.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7917801289425496054?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7917801289425496054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/04/iso-image-path-issue-with-vmware.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7917801289425496054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7917801289425496054'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/04/iso-image-path-issue-with-vmware.html' title='ISO Image Path Issue with vmware'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8164585356888140950</id><published>2009-04-28T16:55:00.000+06:00</published><updated>2009-04-28T17:47:35.086+06:00</updated><title type='text'>File Synchronization with Rsync</title><content type='html'>Rsync can be used to compare files on the same physical machine, or between two different hosts on your network. If you're planning to sync files between two hosts, you should make sure that rsync is installed on both hosts - simply follow the process above to install the program on each host.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-1: Installing rsync&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can check if it is already installed on your system or not by using the following command.&lt;/div&gt;&lt;div&gt;#rpm -q rsync&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If it is not installed then install it, the easiest way to do this by using yum, Just issue the command&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#yum install rsync&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once you are done with the installation, you can go for a test drive. The first and most basic thing you can do with rsync involves using it as a more intelligent copy command on your local system. So, let's suppose that I have the following directory tree in my home area on my Linux box&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8164585356888140950?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8164585356888140950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/04/file-synchronization-with-rsync.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8164585356888140950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8164585356888140950'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/04/file-synchronization-with-rsync.html' title='File Synchronization with Rsync'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-5080456866293880178</id><published>2009-04-27T19:06:00.000+06:00</published><updated>2009-04-27T19:35:45.898+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Configurating High Availability Linux Apache cluster</title><content type='html'>&lt;div&gt;Failover clusters are used to ensure high availability of system services and applications even through crashes, hardware failures, and environmental mishaps. In this article, I'll show you how to implement a rock-solid two-node high availability Apache cluster with the heartbeat application from The High-Availability Linux Project.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In a cluster environment, a high availability (HA) system is responsible for starting and stopping services, mounting and dismounting resources, monitoring the system availability in the cluster environment, and handling the ownership of the virtual IP address that's shared between cluster nodes. The heartbeat service provides the basic functions required for the HA system.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The most common cluster configuration is called standby configuration, as described here. In the standby cluster configuration, one node performs all the work while the other node is idle. Heartbeat monitors health of particular service(s) usually through a separate Ethernet interface used only for HA purposes using special ping. If a node fails for some reason, heartbeat transfers all the HA components to the healthy node. When the node recovers, it can resume its former status.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Installation &amp;amp; Configuration:&lt;/span&gt; To setup High Availability Linux, you need a second Ethernet adapter on each node to devote to heartbeat. Install the Apache Web server and the heartbeat program on both nodes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-1: Install the heartbeat programs&lt;/span&gt;&lt;/div&gt;&lt;div&gt;#yum install httpd heartbeat&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-2: Copying the configuration file&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The configuration files for heartbeat are not in place when the software is installed. You need to copy them from the documentation folder to the /etc/ha.d/ folder:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;cp /usr/share/doc/heartbeat*/ha.cf /etc/ha.d/&lt;/div&gt;&lt;div&gt;cp /usr/share/doc/heartbeat*/haresources /etc/ha.d/&lt;/div&gt;&lt;div&gt;cp /usr/share/doc/heartbeat*/authkeys /etc/ha.d/&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-3: Configuring the hosts file&lt;/span&gt;&lt;/div&gt;&lt;div&gt;In the /etc/hosts file you must add hostnames and IP addresses to let the two nodes see each other. In my case it looks like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;192.168.1.1 node1.almamunbd.com    node1&lt;/div&gt;&lt;div&gt;192.168.1.2 node2.almamunbd.com    node2&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Make sure you have the exact same /etc/hosts file on both nodes and that you're able to ping both nodes. You can just copy the file from one node to another using secure copy:&lt;/div&gt;&lt;div&gt;scp /etc/hosts root@node2:/etc/&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-4: Modifying the heartbeat configuration file&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Next, modify the configuration file /etc/ha.d/ha.cf. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Edit the following entries in order to get heartbeat to work:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;logfile /var/log/ha-log #where to log everything from heartbeat&lt;/div&gt;&lt;div&gt;logfacility     local0   #Facility to use for syslog/logger&lt;/div&gt;&lt;div&gt;keepalive 2   # the time between the heartbeats&lt;/div&gt;&lt;div&gt;deadtime 30   #how long until the host is declared dead&lt;/div&gt;&lt;div&gt;warntime 10   #how long before issuing "late heartbeat" warning&lt;/div&gt;&lt;div&gt;initdead 120   # Very first dead time (initdead)&lt;/div&gt;&lt;div&gt;udpport 694   #udp port for the bcast/ucast communication&lt;/div&gt;&lt;div&gt;bcast   eth1    #on what interface to broadcast&lt;/div&gt;&lt;div&gt;ucast eth1 10.0.0.1   #this is a 2-node cluster, so no need to use multicast here&lt;/div&gt;&lt;div&gt;auto_failback on   #we want the resources to automatically fail back to its primary node&lt;/div&gt;&lt;div&gt;node    node1.almamunbd.com   #the name of the first node&lt;/div&gt;&lt;div&gt;node    node2.almamunbd.com   #the name of the second node&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This are the basic options necessary for heartbeat to work. The file has to be configured identically on both nodes, except for the "ucast" part where you define the IP address of peer to send packets to.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-5: Configuring the /etc/ha.d/haresources file&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;In this file you need to define the master node name, virtual IP address (cluster IP), and which resources to start. In our case, we're starting the Apache Web server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We need only one line of data here:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;node1.almamunbd.com 192.168.1.5 httpd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Make sure the file is exactly the same on both nodes. Note that the resource name is the name of the init script located in the /etc/init.d folder. If the resource name is not exactly the same as in /etc/init.d/, heartbeat will not be able to find it when it tries to read it and both Apache and heartbeat will fail to start.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-6: Configuring the /etc/ha.d/authkeys&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The last heartbeat-related file is /etc/ha.d/authkeys. This file must also be the same on both nodes, and it needs to be readable and writable only by the root user. If the permissions are different from what heartbeat expects, heartbeat will refuse to start. Make sure you have the file configured like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;auth 1&lt;/div&gt;&lt;div&gt;1 crc&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And make sure it's readable and writable by root only:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;chmod 600 /etc/ha.d/authkeys&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Now it's time to configure the Apache service. We want Apache to listen on the virtual IP address 192.168.1.5, and we need to point the Apache document root to the /var/www/vhosts/ mount point where our Web files will be kept. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Listen 192.168.1.5:80&lt;/div&gt;&lt;div&gt;DocumentRoot "/var/www/vhosts"&lt;/div&gt;&lt;div&gt;&lt;directory&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It's important for the Apache service to not start automatically at boot time, since heartbeat will start and stop the service as needed. Disable the automatic start with the command (on a Red Hat-based system):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;chkconfig httpd remove&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Make sure you have the same Apache configuration on both nodes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-7: Testing the configuration&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now it's time to start the newly created cluster. Start the heartbeat service on both nodes:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/etc/init.d/heartbeat start&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Watch the /var/log/ha-log on both nodes. If everything is configured correctly, you should see something like this in your log files:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Configuration validated. Starting heartbeat 1.2.3.cvs.20050927&lt;/div&gt;&lt;div&gt;heartbeat: version 1.2.3.cvs.20050927&lt;/div&gt;&lt;div&gt;Link node1.almamunbd.com:eth1 up.&lt;/div&gt;&lt;div&gt;Link node2.almamunbd.com:eth1 up.&lt;/div&gt;&lt;div&gt;Status update for node node2.almamunbd.com: status active&lt;/div&gt;&lt;div&gt;Local status now set to: 'active'&lt;/div&gt;&lt;div&gt;remote resource transition completed.&lt;/div&gt;&lt;div&gt;Local Resource acquisition completed. (none)&lt;/div&gt;&lt;div&gt;node2.almamunbd.com wants to go standby [foreign]&lt;/div&gt;&lt;div&gt;acquire local HA resources (standby).&lt;/div&gt;&lt;div&gt;local HA resource acquisition completed (standby).&lt;/div&gt;&lt;div&gt;Standby resource acquisition done [foreign].&lt;/div&gt;&lt;div&gt;Initial resource acquisition complete (auto_failback)&lt;/div&gt;&lt;div&gt;remote resource transition completed.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now test the failover. Reboot the master server. The slave should take over the Apache service. If everything works well, you should see something like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Received shutdown notice from 'node1.example.com'.&lt;/div&gt;&lt;div&gt;Resources being acquired from node1.example.com.&lt;/div&gt;&lt;div&gt;acquire local HA resources (standby).&lt;/div&gt;&lt;div&gt;local HA resource acquisition completed (standby).&lt;/div&gt;&lt;div&gt;Standby resource acquisition done [foreign].&lt;/div&gt;&lt;div&gt;Running /etc/ha.d/rc.d/status status&lt;/div&gt;&lt;div&gt;Taking over resource group 192.168.1.5&lt;/div&gt;&lt;div&gt;Acquiring resource group: node1.example.com 192.168.1.5 httpd&lt;/div&gt;&lt;div&gt;mach_down takeover complete for node node1.example.com.&lt;/div&gt;&lt;div&gt;node node1.example.com: is dead&lt;/div&gt;&lt;div&gt;Dead node node1.example.com gave up resources.&lt;/div&gt;&lt;div&gt;Link node1.example.com:eth1 dead.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And when the master comes back online again, he should take over the Apache service:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Heartbeat restart on node node1.example.comheartbeat&lt;/div&gt;&lt;div&gt;Link node1.example.com:eth1 up.&lt;/div&gt;&lt;div&gt;node2.example.com wants to go standby [foreign]&lt;/div&gt;&lt;div&gt;standby: node1.example.com can take our foreign resources&lt;/div&gt;&lt;div&gt;give up foreign HA resources (standby).&lt;/div&gt;&lt;div&gt;Releasing resource group: node1.example.com 192.168.1.5 httpd&lt;/div&gt;&lt;div&gt;Local standby process completed [foreign].&lt;/div&gt;&lt;div&gt;remote resource transition completed.&lt;/div&gt;&lt;div&gt;Other node completed standby takeover of foreign resources.&lt;/div&gt;&lt;div&gt;Conclusion&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That's all it takes to build a low-cost highly available Web server cluster. There are of course many commercial products that accomplish the same goal, but for the production needs for small business or any other institution, High Availability Linux and heartbeat are an excellent alternative.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-5080456866293880178?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/5080456866293880178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/04/configurating-high-availability-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5080456866293880178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5080456866293880178'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/04/configurating-high-availability-linux.html' title='Configurating High Availability Linux Apache cluster'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6884039266045510805</id><published>2009-04-26T18:37:00.001+06:00</published><updated>2009-06-14T15:44:10.768+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>Blocking AutoRun for all devices</title><content type='html'>&lt;div&gt;Step 1. Start Notepad or another text editor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 2. Copy the following text from this page and paste it into your text editor (everything between the square brackets should be all on one line):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;REGEDIT4&lt;/div&gt;&lt;div&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]&lt;/div&gt;&lt;div&gt;@="@SYS:DoesNotExist"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 3. Save the file with a name like NoAutoRun.reg, taking care to include the .reg extension.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 4. Right-click your .reg file and choose Merge. Confirm any warning prompts to add the information to the Registry.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;it's a good idea to reboot your PC after the step 4&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6884039266045510805?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6884039266045510805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/04/blocking-autorun-for-all-devices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6884039266045510805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6884039266045510805'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/04/blocking-autorun-for-all-devices.html' title='Blocking AutoRun for all devices'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-594806681475746973</id><published>2009-04-04T14:43:00.000+06:00</published><updated>2009-04-19T12:20:13.948+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Server Apache'/><title type='text'>How to configure Apache, SuExec, PHP/FastCGI on RedHat Fedora 6</title><content type='html'>More or less we suffer one problem while configuring linux based webserver with virtual hosting support. We need to provide client ftp account to upload scripts or files to his webroot directory. this is not a problem until client executes some script that creates a files or directories inside his webroot directories. because while clients uploads file using ftp, fileownership becomes ftpusername. but when file or directory gets created by scripts then the ownership becomes apache that means the user account under which apache is running. To solve this problem, we can use the suexec module with apache. so that when any files or directory gets created through web, it has the ownership the of the user that runs it.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Follow this steps to achieve this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 1: Install the required software and modules&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;# yum install httpd httpd-devel mod_fcgid php php-cli&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step-2: Add your virtual host&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;virtualhost&gt;&lt;/virtualhost&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;virtualhost 192.168.4.3:80&gt;&lt;/div&gt;&lt;div&gt;  ServerName    mamun.com&lt;/div&gt;&lt;div&gt;  DocumentRoot /var/www/vhosts/mamun.com/public_html&lt;/div&gt;&lt;div&gt;  # some settings for fastCGI&lt;/div&gt;&lt;div&gt;  PHP_Fix_Pathinfo_Enable 1&lt;/div&gt;&lt;div&gt;  MaxRequestsPerProcess 500&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  SuexecUserGroup mamun.com mamun.com&lt;/div&gt;&lt;div&gt;  directory /var/www/vhosts/mamun.com/public_html/&gt;&lt;/div&gt;&lt;div&gt;    AddHandler fcgid-script .php&lt;/div&gt;&lt;div&gt;    Options +ExecCGI&lt;/div&gt;&lt;div&gt;    FCGIWrapper /var/www/vhosts/mamun.com/public_html/cgi-bin/php-cgi .php&lt;/div&gt;&lt;div&gt;  /directory&gt;&lt;/div&gt;&lt;div&gt;/virtualhost&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The first two lines are the usual vhost setup. What follows are two options recommended for running PHP in FastCGI mode. The first one makes sure the $_SERVER['PATH_INFO'] environment is setup correctly for your scripts. The second lets each FastCGI process die after having handled 500 requests. This ensures no possible memory leak will tear down your server.&lt;/div&gt;&lt;div&gt;The next line sets up the suexec mechanism and tells it to execute CGIs as user example and group example. This will be the user your PHP processes for this vhost will run under.&lt;/div&gt;&lt;div&gt;The last step is to bind the .php file extension to the FastCGI module and to tell it how to start the FastCGI process. This last line is the special trick. In a normal FastCGI setup (without suexec) you would point it to your PHP binary. In our case this is a small wrapper script.&lt;/div&gt;&lt;div&gt;Why a wrapper script? Because there is a security restriction in suexec: it will only execute scripts below the document root compiled into the Apache binary. In Debian this is /var/www/. So we need to have our PHP binary below /var/www/. SuExec won't accept symlinks. &lt;/div&gt;&lt;div&gt;A hardlink would work, but there is another catch. The executable needs to be owned by the user and group we defined earlier in the SuexecUserGroup line. But we want different users for our different vhosts which wouldn't work with hard links. So we use a wrapper script with the following content:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step-3: Create on scripts named php-cgi&lt;/div&gt;&lt;div&gt;#!/bin/sh&lt;/div&gt;&lt;div&gt;exec /usr/bin/php-cgi "$@"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;See, it simply replaces the running shell process with the correct PHP5 call.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The script needs to be owned by the correct user and group and has to have execution permissions and there is another restriction: it needs to be inside a directory owned by the same user which is not writable by anyone else.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So in our example case we have /var/www/vhosts/mamun.com owned by mamun.com:mamun.com and permissions 755 and /var/www/vhosts/mamun.com/public_html/cgi-bin/php-cgi ownd by mamun.com:mamun.com and permissions 755 as well.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That's it - start up apache and have your vhosts run under different users :-)&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-594806681475746973?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/594806681475746973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/04/how-to-configure-apache-suexec.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/594806681475746973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/594806681475746973'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/04/how-to-configure-apache-suexec.html' title='How to configure Apache, SuExec, PHP/FastCGI on RedHat Fedora 6'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7126046649104811070</id><published>2009-04-02T11:33:00.001+06:00</published><updated>2009-04-02T11:34:07.258+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MS Exchange 2003'/><title type='text'>How to Configure Exchange 2003 to Receive E-Mail for other Domains</title><content type='html'>Start From Here&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7126046649104811070?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7126046649104811070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/04/how-to-configure-exchange-2003-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7126046649104811070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7126046649104811070'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/04/how-to-configure-exchange-2003-to.html' title='How to Configure Exchange 2003 to Receive E-Mail for other Domains'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-5860332555036970997</id><published>2009-03-18T09:56:00.000+06:00</published><updated>2009-03-18T10:28:54.104+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft SQL Server'/><title type='text'>Using SQL command line utility</title><content type='html'>Sometimes it be necessary to insert huge data on a database table, but if you use SQL Management Studio to insert the data into the table, you may face memory related problem. So due to this memory constraints, you should you SQLCMD command line utility to insert huge data to a table. In my case, i used this utility to insert 1000000 row to a sql 2005 database without any problem. Here is the command that i used.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;C:\&gt;sqlcmd -S DBServerName -U dbusername -P dbpassword -d dbname -i scriptfile.sql&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here -S means DBServer, -U means dbusername -P dbaccess password -d means dbname -i means input file name that means the sql script file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-5860332555036970997?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/5860332555036970997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/03/using-sql-command-line-utility.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5860332555036970997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5860332555036970997'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/03/using-sql-command-line-utility.html' title='Using SQL command line utility'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3204459644846776819</id><published>2009-03-12T16:39:00.000+06:00</published><updated>2009-03-12T17:08:06.837+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Step By Step Vsftpd Server Configuration</title><content type='html'>To install and configure Vsftp server on linux box, follow these step by step instructions:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-1:&lt;/span&gt; Install Vsftpd on your linux box if already not installed.&lt;/div&gt;&lt;div&gt;#rpm -q vsftpd&lt;/div&gt;&lt;div&gt;&lt;div&gt;vsftpd-2.0.5-12.el5&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That mens vsftpd is already installed, if not then you can use yum to install it very easy and quickly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#yum install vsftpd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This is will download and install vsftpd on your linux box.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-2:&lt;/span&gt; Configuring vsftpd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now we need to configure vsftpd server to make it ready for use. Its configuration file is located under /etc/vsftpd/ named as vsftpd.conf. First backup the original configuration file and open it with any editor, in my case i use vi editor.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is our requirements:&lt;/div&gt;&lt;div&gt;1.  Ftp user will not have shell access. Only they will have ftp access.&lt;/div&gt;&lt;div&gt;2. User will ftp their home directory only. They will not be able to come out from home directory.&lt;/div&gt;&lt;div&gt;3. Every user will have their own home directory&lt;/div&gt;&lt;div&gt;4. Anonymous ftp will not be allowed&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now we need to open the configuration file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#vi /etc/vsftpd/vsftpd.conf&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#We do allow anonymous ftp access&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;anonymous_enable=NO&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# Ftp user will jailed to their home directory&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;chroot_local_user=YES&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# In some cases, special users need to go out of their home directory, in this case we need to &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;maintain a file which will list the name of the users that are able to go out site of their home &lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;directory. chroot_list file is created by default, we need to create it.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;chroot_list_enable=YES&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;chroot_list_file=/etc/vsftpd/chroot_list&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thats it. save the file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-3:&lt;/span&gt; Start vsftpd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;From command prompt issue the following command to start vdftpd daemon.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#/sbin/service vsftpd start&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now its time to check the server. create user and test it with an ftp client. if everything is ok, then you will be able to log in...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3204459644846776819?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3204459644846776819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/03/step-by-step-vsftpd-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3204459644846776819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3204459644846776819'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/03/step-by-step-vsftpd-server.html' title='Step By Step Vsftpd Server Configuration'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-5167571961660856817</id><published>2009-03-04T16:13:00.001+06:00</published><updated>2009-06-14T15:55:13.216+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>Step by step vpn setup on Windows 2003</title><content type='html'>Here i am describing a simple and easy way to configure vpn server on windows 2003. Just follow the steps carefully.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-1: Main Configuraton&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;1. Open the &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Routing and Remote Access Service&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;2. Right click the server name&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;3. From the context menu, select &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Configure and Enable Routing and Remote Access&lt;/span&gt;. Click Next &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;4. Select Custom Configuration.(chose this option because we are using a single network card.)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;5. From the next screen, select &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;VPN Access&lt;/span&gt; then click Next.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;6. Click Finish button to finish the wizard.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;7. If a dialog box appear asking if you want to start the service. Click Yes.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Next we need to configure the server so that it assigns ip address to its client whenever they connects to it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-2: Configure IP Assignment&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;1. From the Routing and Remote Access console, right-click the server name&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;2. From the context menu, select Properties and then select IP tab.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;3. Check the radio-button next to Static address pool.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;4. Click the Add button and enter start and end ip address.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;5. Click Apply and then click OK&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Next we need to create users who will connect to vpn server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-3: Create user account for vpn access&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;1. Open the Active Directory Users And Computers&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;2. Click the Users folder and right mouse click on the right pane and select New-&gt;User Provide all the informaiton and finish the wizard.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;3. Right click the user name and select propertise&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;4. Click the Dial in tab and select Allow Access and click ok to finish.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If the vpn server is behind  a firewall, then we need need open some ports for vpn. for pptp, open port 1723 and for IPSec port 50-51 and 500&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Server site setup is done, now we need to configure vpn client on client pc.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-4: Configuring the vpn client&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;1. Go to Start -&gt; Settings -&gt; Network Connections&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;2. Open the New Connection Wizard&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;3. Select Connect to the network at my workplace then click Next&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;4. Seelct Virtual Private Network connection then click Next and follow the screen and finish the wizarad.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now its time to check connection. just double-click on the connection icon just created on the client machine. if everything is ok, then you are connected to your vpn server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-5167571961660856817?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/5167571961660856817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/03/step-by-step-vpn-setup-on-windows-2003.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5167571961660856817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5167571961660856817'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/03/step-by-step-vpn-setup-on-windows-2003.html' title='Step by step vpn setup on Windows 2003'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1875175461331362555</id><published>2009-02-23T12:15:00.000+06:00</published><updated>2009-02-23T12:19:15.856+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Installing Perl Modules using Yum</title><content type='html'>&lt;div&gt;yum -y install mysql mysql-server perl-DBD-MySQL perl-DBI subversion patch db4 db4-devel db4-utils&lt;/div&gt;&lt;div&gt;yum -y install perl-Crypt-Blowfish perl-Crypt-CBC uuid-perl perl-Template-Toolkit perl-libwww-perl perl-Digest-SHA1&lt;/div&gt;&lt;div&gt;yum -y install perl-HTML-Parser perl-Unix-Syslog perl-IO-stringy perl-Net-Server&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;yum -y install perl-MailTools perl-Convert-UUlib perl-Convert-TNEF perl-Compress-Zlib perl-MIME-tools&lt;/div&gt;&lt;div&gt;yum -y install perl-Archive-Zip perl-Archive-Tar perl-BerkeleyDB perl-Digest-SHA1 perl-Digest-HMAC perl-Net-DNS&lt;/div&gt;&lt;div&gt;yum -y install php php-pear php-mysql php-gd php-Smarty pax cabextract cpio lha lzop freeze tmpwatch bzip2&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;yum -y install nomarch binutils gzip spamassassin php-bcmath pyzor gcc bison zlib zlib-devel gmp-devel&lt;/div&gt;&lt;div&gt;yum -y install perl-Authen-SASL perl-LDAP perl-URI perl-DBD-SQLite perl-Razor-Agent perl-Mail-SPF-Query&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1875175461331362555?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1875175461331362555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/02/yum-y-install-perl-crypt-blowfish-perl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1875175461331362555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1875175461331362555'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/02/yum-y-install-perl-crypt-blowfish-perl.html' title='Installing Perl Modules using Yum'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2897083051923702596</id><published>2009-02-22T16:30:00.000+06:00</published><updated>2009-02-22T22:52:55.813+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Configuring Spamassassin on Fedora Linux</title><content type='html'>&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div&gt;&lt;pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Required Perl Modules:Perl 5.6.1 or a later version is required &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;1.Digest::SHA1 &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;2.HTML::Parser &gt;= 3.43 &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;3.Net::DNS  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Used for all DNS-based tests (SBL, XBL, SpamCop, DSBL, etc.),      perform MX checks, used when manually reporting spam to SpamCop, and used by sa-update to gather version information.  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;4.LWP &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;5.HTTP::Date &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;6.IO::Zlib &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;7.Archive::Tar  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;HereI am describing here a quick and step by step procedure for enabling SpamAssassin and having your users  choose what to do with spam messages&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;that are encountered:  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-1&lt;/span&gt;: Configure your mail transport agent (sendmail or postfix) to use the procmail command as its mailer.For sendmail, it is already configured as the default mailer, based on the following line in the /etc/mail/sendmail.mc file:&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-2&lt;/span&gt;:Make sure that the SpamAssassin spamd daemon is running (it should already be on for run levels 2-5), and if it isn't, start it by typing the following (as root user): &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# chkconfig --list spamassassin  spamassassin 0:off 1: off 2:on 3:on 4:on 5:on 6:off   &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;# chkconfig spamassassin on   &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-3&lt;/span&gt;: Create an /etc/procmailrc file (using any text editor, as root user). This procmailrc file example pipes all mail messages received by procmail through spamc (which is the client side of the spamd daemon turned on in the previous step): &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;#vi /etc/procmailrc   &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;:0fw  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;| /usr/bin/spamc   &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;If you like, you can do a lot more in the procmailrc file to deal with spam on a system-wide basis. &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;You could, for example, create procmail recipes that take reported spam e-mail messages and sorts&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;them into a  system-wide spam folder or deletes them completely. Likewise, each user can create an individual $HOME/.procmailrc  file to create personal procmail recipes.    &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-4:&lt;/span&gt;Check the /etc/mail/spamassassin/local.cf file. This file contains rules that are used system-wide &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;by SpamAssassin, unless they are overridden by a user's individual $HOME/.spamassassin/user_prefs file. Here are the contents of the local.cf file:&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; #vi local.cf  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;required_hits 5 &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;rewrite_subject 1&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt; subject_tag [SPAM] &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;report_safe 0&lt;/span&gt;&lt;/span&gt;   &lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2897083051923702596?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2897083051923702596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/02/configuring-spamassassin-on-fedora.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2897083051923702596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2897083051923702596'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/02/configuring-spamassassin-on-fedora.html' title='Configuring Spamassassin on Fedora Linux'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-54368441139997639</id><published>2009-02-22T11:46:00.003+06:00</published><updated>2009-10-21T11:59:51.938+07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Install Subversion on Fedora 6, 7&amp; 8 Linux</title><content type='html'>&lt;div goog_docs_charindex="1"&gt;&lt;br /&gt;&lt;/div&gt; &lt;div goog_docs_charindex="50"&gt;I have been working on subversion installations  for our development evironments on Fedora servers. While installing subversion on new Fedora  server i have been preparing a documents so that i can setup the environment quickly. Below you will have the step by step instruction to setup subversion on a fedora server.&lt;/div&gt; &lt;div goog_docs_charindex="50"&gt;&lt;br /&gt;&lt;strong&gt;Step-1:Preparing  for subversion installation in Fedora:&lt;/strong&gt; &lt;/div&gt; &lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;By default  Subversion comes pre-installed on Fedora, if you are using some other Linux  flavor and don't know if you have subversion installed already here how you can  verify:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#rpm -qa |grep subversion&lt;br /&gt;subversion-1.4.4-7&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;If you  don't have subversion installed, you can install it using yum&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#yum install subversion&lt;/div&gt; &lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;strong&gt;Step-2:Install  mod_dav_svn on Fedora:&lt;/strong&gt;&lt;br /&gt;If you are  planning to access your subversion repositories using web (apache/http) server  then you need to install apache configuration directives for subversion.&lt;/div&gt; &lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;# yum install  mod_dav_svn&lt;br /&gt;Setting up Install Process&lt;br /&gt;Parsing package install arguments&lt;br /&gt;Resolving Dependencies&lt;br /&gt;--&gt; Running transaction check&lt;br /&gt;---&gt; Package mod_dav_svn.i386 0:1.4.4-7 set to be  updated&lt;br /&gt;--&gt; Finished Dependency Resolution&lt;br /&gt;Dependencies Resolved&lt;br /&gt;=============================================================================&lt;br /&gt;Package Arch Version Repository Size&lt;br /&gt;=============================================================================&lt;br /&gt;Installing:&lt;br /&gt;mod_dav_svn  i386 1.4.4-7 fedora 71 k&lt;br /&gt;Transaction Summary&lt;br /&gt;=============================================================================&lt;br /&gt;Install 1 Package(s)&lt;br /&gt;Update 0 Package(s)&lt;br /&gt;Remove 0 Package(s)&lt;br /&gt;Total download size: 71 k&lt;br /&gt;Is this ok [y/N]:y&lt;br /&gt;Installed: mod_dav_svn.i386 0:1.4.4-7&lt;br /&gt;Complete!&lt;/div&gt; &lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;strong&gt;Step-3:Setting up  subversion repositories:&lt;br /&gt;&lt;/strong&gt;# mkdir /var/www/svnrepo&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-4:Create a new subversion repository for fresh install&lt;/span&gt;&lt;br /&gt;# svnadmin create svn.reponame&lt;br /&gt;&lt;br /&gt;&lt;/div&gt; &lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;strong&gt;Step-5:Change  permissions for subversion directories:&lt;/strong&gt;&lt;br /&gt;# chown -R apache:apache svn.reponame&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-6:Configure apache to  access subversion directory&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;# cd /etc/httpd/conf.d&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;backup the default subversion.conf file before editing&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#cp subversion.conf subversion.conf_org&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-7:Add Location directive  for subversion directory location&lt;/span&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;I have to created apache configuration file  for subversion&lt;br /&gt;#  cat subversion.conf&lt;br /&gt;Location&lt;br /&gt;DAV svn&lt;br /&gt;SVNParentPath /var/www/svnrepository&lt;br /&gt;AuthType Basic&lt;br /&gt;AuthName "SVN Authorization"&lt;br /&gt;AuthUserFile /etc/svn-auth&lt;br /&gt;AuthzSVNAccessFile /etc/svn-diraccess&lt;br /&gt;Require valid-user&lt;br /&gt;Location&lt;br /&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-8: Create subversionuser who will access the repository&lt;/span&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#httpasswd -cm /etc/svn-auth username&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-9: Configure the repository access permission&lt;/span&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#vi /etc/svn-diracess&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;[svn.reponame:/]&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;username = rw&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;Now everthing is done and ready to use. for a quick test, you can browse the repository by using &lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;the http://servername/svn/svn.repositoryname url. if everything is ok, then you will be asked to provide credentials.&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;Backup and Restore of Svn Repo:&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;Now i will discuss about how to backup a subversion repository and also how to restore it.&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step-1:&lt;/span&gt; Backup subversion Repository&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;First login to subversion server using ssh, then go to the subversion repository directory and type the following command.&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#svnadmin dump repo_name &gt; repo_name.dump&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;Here repo_name is the name of the repository that we are going to backup. repo_name.dump is the name of the backup copy.&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;Step-2: Restoring backup&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#svnadmin load new_repo &lt;&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;Here new_repo is the name of the fresh created repository where you are going to restore your backup copy.&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;If you want to have your repository backup daily then you can create one cronjob for it.&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;#crontab -e&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;@daily svnadmin dump repo_name &gt; repo_name.dump&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;Thats it...&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div goog_docs_charindex="378"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-54368441139997639?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/54368441139997639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/02/install-subversion-on-fedora-6-7-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/54368441139997639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/54368441139997639'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/02/install-subversion-on-fedora-6-7-8.html' title='Install Subversion on Fedora 6, 7&amp; 8 Linux'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6041082116081629791</id><published>2009-01-28T15:40:00.001+06:00</published><updated>2009-06-14T15:53:23.629+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>Increase IIS/WinXP connection limit (or how to avoid HTTP 403.9 error)</title><content type='html'>&lt;span class="Apple-style-span"   style="color: rgb(255, 255, 255);   line-height: 17px; font-family:Geneva;font-size:12px;"&gt;&lt;h1 class="entryviewheading" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font: normal normal 400 1.6em/normal 'trebuchet ms', serif; margin-top: 0px; font-family: 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class="entryviewheading" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font: normal normal 400 1.6em/normal 'trebuchet ms', serif; margin-top: 0px; font-family: 'Trebuchet MS', Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style=" line-height: 17px; font-family:Arial;"&gt;This can be bumped up to 40 but not higher (40 is the hardcoded limit).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;blockquote style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 1em; "&gt;&lt;p class="MsoNormal" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family:Arial;"&gt;&lt;span style="  padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family:Arial;"&gt;&lt;em style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;To do this, find the adsutil.vbs script (should be in c:\inetpub\AdminScripts or similar) and run the following command:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family:Arial;"&gt;&lt;span style="  padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family:Arial;"&gt;&lt;em style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;adsutil set w3svc/MaxConnections 40&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family:Arial;"&gt;&lt;span style="  padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family:Arial;"&gt;&lt;em style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;You can also try to prevent individuals from hogging a bunch of connections and thereby blocking out other users.  (IE will normally use 2 connections to a web site.)  To do this, launch the IIS admin tool (under control panel / administrative tools), right click on your ‘default web site’ (under ‘web sites’ in the outline control), and mess with the settings in the “connections” part of the “web site” tab.  Lowering the timeout (default is 5 min) will cause idle connections to get dropped quicker.  Disabling keep alives will cause connections to disconnect immediately after the request is handled instead of waiting for new requests on the same connection.  This is a little extreme but you probably don’t care that much about responsiveness, so you might want to just try that and see if it solves the problem.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6041082116081629791?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6041082116081629791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/01/increase-iiswinxp-connection-limit-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6041082116081629791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6041082116081629791'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/01/increase-iiswinxp-connection-limit-or.html' title='Increase IIS/WinXP connection limit (or how to avoid HTTP 403.9 error)'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6808056480778366376</id><published>2009-01-05T18:15:00.001+06:00</published><updated>2009-06-15T10:53:13.310+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Troubleshooting'/><title type='text'>Folder option missing &amp; my regedit is disabled</title><content type='html'>&lt;div&gt;Copy the following code,paste in any notepad and save as "EnableRegEdit.inf" . Right-click and install; your regedit will be enabled.(Be careful to copy the code exactly as presented here including everything.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;span style="color:purple;"&gt;Code is in &lt;i&gt;Italic&lt;/i&gt; to avoid any misunderstanding...&lt;/span&gt;&lt;/div&gt; &lt;div&gt;___________________________________________________________________________________&lt;/div&gt; &lt;div&gt;&lt;i&gt;[Version]&lt;br /&gt;Signature="$Chicago$"&lt;br /&gt;Provider=Symantec&lt;/i&gt;&lt;/div&gt; &lt;div&gt;&lt;i&gt;[DefaultInstall]&lt;br /&gt;AddReg=UnhookRegKey&lt;/i&gt;&lt;/div&gt; &lt;div&gt;&lt;i&gt;[UnhookRegKey]&lt;br /&gt;HKLM, Software\CLASSES\batfile\shell\open\command,,,"""%1"" %*"&lt;br /&gt;HKLM, Software\CLASSES\comfile\shell\open\command,,,"""%1"" %*"&lt;br /&gt;HKLM, Software\CLASSES\exefile\shell\open\command,,,"""%1"" %*"&lt;br /&gt;HKLM, Software\CLASSES\piffile\shell\open\command,,,"""%1"" %*"&lt;br /&gt;HKLM, Software\CLASSES\regfile\shell\open\command,,,"regedit.exe ""%1"""&lt;br /&gt;HKLM, Software\CLASSES\scrfile\shell\open\command,,,"""%1"" %*"&lt;br /&gt;HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableRegistryTools,0x00000020,0&lt;/i&gt;&lt;/div&gt; &lt;div&gt;_________________________________________________________________________________&lt;/div&gt; &lt;div&gt;&lt;b&gt;To enable Folder Options, copy following code,paste it in any notepad and save as "folderoptions.reg" file. Double click it and your folder options will be restored.&lt;/b&gt;&lt;/div&gt; &lt;div&gt;_________________________________________________________________________________&lt;/div&gt; &lt;div&gt;&lt;i&gt;Windows Registry Editor Version 5.00&lt;/i&gt;&lt;/div&gt; &lt;div&gt;&lt;i&gt;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]&lt;br /&gt;"NoFolderOptions"=dword:0000000&lt;/i&gt;&lt;/div&gt; &lt;div&gt;&lt;i&gt;[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions]&lt;br /&gt;"NoBrowserOptions"=dword:00000000&lt;/i&gt;&lt;/div&gt; &lt;div&gt;__________________________________________________________________________________&lt;/div&gt; &lt;div&gt;&lt;b&gt;To enable Task Manager, copy following code,paste it in any notepad and save as "EnableTaskManager.reg" file. Double click it and your folder options will be restored.&lt;/b&gt;&lt;/div&gt; &lt;div&gt;&lt;b&gt;_________________________________________________________________________&lt;/b&gt;&lt;/div&gt; &lt;div&gt;&lt;i&gt;Windows Registry Editor Version 5.00&lt;/i&gt;&lt;/div&gt; &lt;div&gt;&lt;i&gt;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]&lt;br /&gt;"DisableTaskMgr"=dword:0000000&lt;/i&gt;&lt;/div&gt; &lt;div&gt;____________________________________________________________________________&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if registry enable not work with above method, then try with this, save it as a .vbs file and run it&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'times new roman';"&gt;&lt;pre style="word-wrap: break-word; white-space: pre-wrap; "&gt;'Enable Registry Editing' '© Veegertx - 4/7/2004 'This code may be freely distributed/modified On Error Resume Next 'Prevents errors from values that don't exist Set WshShell = WScript.CreateObject("WScript.Shell") 'Delete DisableRegistryTools registry values WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools" WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools" 'display message Message = "You should have access to Regedit now" X = MsgBox(Message, vbOKOnly, "Done") Set WshShell = Nothing Set fso = Nothing&lt;/pre&gt;&lt;pre style="word-wrap: break-word; white-space: pre-wrap; "&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style="word-wrap: break-word; white-space: pre-wrap; "&gt;--------------------------------&lt;/pre&gt;&lt;pre style="word-wrap: break-word; white-space: pre-wrap; "&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style="word-wrap: break-word; white-space: pre-wrap; "&gt;&lt;span class="Apple-style-span"   style="color: rgb(41, 41, 41);   line-height: 20px; white-space: normal; font-family:'Trebuchet MS';font-size:12px;"&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;strong&gt;&lt;span&gt; &lt;span class="IL_SPAN"&gt;task manager&lt;/span&gt; is disabled&lt;/span&gt;&lt;/strong&gt; on their system suddenly.&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;strong&gt;Problem: &lt;/strong&gt;It is due to some kind of &lt;strong&gt;virus/&lt;/strong&gt; &lt;strong&gt;trojan&lt;/strong&gt;&lt;span&gt; activity which normally disables the &lt;span class="IL_SPAN"&gt;task manager&lt;/span&gt;.Now due to this problem when ever the user press alt+ctrl+del to launch windows &lt;span class="IL_LINK_STYLE"   style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(0, 0, 255);  font-weight: normal; font-style: normal;  position: static !important; text-decoration: underline !important; background-image: none !important; background-repeat: repeat !important; background-attachment: scroll !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: transparent !important; cursor: pointer !important; display: inline !important; color: rgb(0, 0, 255); padding-bottom: 1px !important; background-position: 0% 50% !important; font-family:'Trebuchet MS';font-size:12px;"&gt;task manager&lt;/span&gt; it gives an error saying “Task Manager is being disabled by your administrator”.&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;span id="more-26"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;To &lt;span class="IL_SPAN"&gt;Enable&lt;/span&gt; the Disabled &lt;/span&gt;&lt;span class="IL_SPAN"&gt;Task Manager&lt;/span&gt; on your system&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;1.&lt;strong&gt; &lt;/strong&gt;Press &lt;strong&gt;window key+r&lt;/strong&gt; to show run prompt&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;2. Follow the following steps&lt;/p&gt;&lt;blockquote style="clear: both; margin-top: 10px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 0px; padding-left: 30px; background-image: url(http://www.troublefixers.com/wp-content/themes/Ghacks2/images/bquote.gif); background-repeat: no-repeat; color: rgb(41, 40, 40); font-weight: bold; font-size: 11px; line-height: 17px; background-position: 0% 1px; "&gt;&lt;ol&gt;&lt;li&gt;Enter gpedit.msc in the run prompt and click OK&lt;/li&gt;&lt;li&gt;&lt;span&gt;In the &lt;span class="IL_SPAN"&gt;Group Policy&lt;/span&gt; settings window&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Select User Configuration&lt;/li&gt;&lt;li&gt;Select Administrative Templates&lt;/li&gt;&lt;li&gt;Select System&lt;/li&gt;&lt;li&gt;Select Ctrl+Alt+Delete options&lt;/li&gt;&lt;li&gt;&lt;span&gt;&lt;span&gt;Select &lt;span class="IL_SPAN"&gt;Remove&lt;/span&gt; &lt;/span&gt;&lt;span class="IL_SPAN"&gt;Task Manager&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&lt;span&gt;Double-click the &lt;span class="IL_LINK_STYLE"   style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(0, 0, 255);  font-weight: bold; font-style: normal;  position: static !important; text-decoration: underline !important; background-image: none !important; background-repeat: repeat !important; background-attachment: scroll !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: transparent !important; cursor: pointer !important; display: inline !important; color: rgb(0, 0, 255); padding-bottom: 1px !important; background-position: 0% 50% !important; font-family:'Trebuchet MS';font-size:11px;"&gt;Remove&lt;/span&gt; &lt;/span&gt;&lt;span class="IL_SPAN"&gt;Task Manager&lt;/span&gt; option’.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Set the property of this item as disabled.&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;Updated on 12th FEB 2008&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;strong&gt;&lt;span&gt;For Those who use &lt;span class="IL_LINK_STYLE"   style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(0, 0, 255);  font-weight: bold; font-style: normal;  position: static !important; text-decoration: underline !important; background-image: none !important; background-repeat: repeat !important; background-attachment: scroll !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: transparent !important; cursor: pointer !important; display: inline !important; color: rgb(0, 0, 255); padding-bottom: 1px !important; background-position: 0% 50% !important; font-family:'Trebuchet MS';font-size:12px;"&gt;Windows XP Home Edition&lt;/span&gt;&lt;span&gt;&lt;span&gt; can use the &lt;span class="IL_SPAN"&gt;registry&lt;/span&gt;&lt;span&gt; to &lt;span class="IL_SPAN"&gt;enable&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="IL_SPAN"&gt;Task Manager&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="float: left; text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/p&gt;&lt;div align="Center"&gt;&lt;/div&gt;&lt;div align="Left"&gt;&lt;/div&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;1. open start &gt;&gt; run and type&lt;strong&gt; regedit&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;2. Navigate to the following path:&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;strong&gt;Hive:&lt;/strong&gt; &lt;strong&gt;HKEY_CURRENT_USER\&lt;/strong&gt;&lt;strong&gt;Software\Microsoft\Windows\CurrentVersion\Policies\System &lt;/strong&gt;&lt;br /&gt;&lt;span&gt;3. You will find a &lt;span class="IL_SPAN"&gt;registry&lt;/span&gt; key with name &lt;/span&gt;&lt;strong&gt;DisableTaskMgr &lt;/strong&gt;&lt;strong&gt;of type:&lt;/strong&gt; &lt;strong&gt;REG_DWORD&lt;/strong&gt;&lt;br /&gt;4. Double click the key with and set the Value to 0&lt;/p&gt;&lt;p style="text-align: left; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 3px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;span&gt;5. Exit the &lt;span class="IL_SPAN"&gt;registry&lt;/span&gt; and restart to see the effect.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6808056480778366376?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6808056480778366376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2009/01/folder-option-missing-my-regedit-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6808056480778366376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6808056480778366376'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2009/01/folder-option-missing-my-regedit-is.html' title='Folder option missing &amp; my regedit is disabled'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6749653525683763074</id><published>2008-12-15T21:39:00.000+06:00</published><updated>2008-12-15T21:41:08.270+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft SQL Server'/><title type='text'>SQL Server 2005: What Service Pack is Installed?</title><content type='html'>1.  Open SQL Server Management Studio. &lt;p&gt;2. Click the &lt;strong&gt;New Query&lt;/strong&gt; button.&lt;/p&gt; &lt;p&gt;3. Copy and paste the following into your query window:&lt;br /&gt;&lt;code&gt;SELECT  SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')&lt;/code&gt;&lt;br /&gt;4. Click the &lt;strong&gt;Execute&lt;/strong&gt; button.&lt;/p&gt; &lt;p&gt;The results will display the version number, service pack number and the edition of SQL Server 2005 that is installed on the server.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6749653525683763074?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6749653525683763074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/12/sql-server-2005-what-service-pack-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6749653525683763074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6749653525683763074'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/12/sql-server-2005-what-service-pack-is.html' title='SQL Server 2005: What Service Pack is Installed?'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7448397032647535937</id><published>2008-12-04T09:24:00.001+06:00</published><updated>2009-06-15T13:25:29.083+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Server IIS'/><title type='text'>SSL Certificate Export and Import</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Verdana;font-size:8.5pt;"&gt;Sometimes you want to take an SSL certificate that you already own that is installed on your web server and import it into the ISA firewall’s machine certificate store. This allows for encryption of outbound SSL from the ISA server to the published Web site in an SSL to SSL bridging scenario. One example is publishing your Outlook Web Access (OWA) site through your ISA firewall. This article guides you through the steps required to export your SSL certificate from you Internet Information Server (IIS) 6.0 Web site and import that certificate into the ISA firewall’s machine certificate store. &lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:Verdana;font-size:8.5pt;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;blockquote&gt; &lt;p&gt;&lt;span style="font-family:Verdana;font-size:8.5pt;"&gt;&lt;b&gt;Note:&lt;br /&gt;&lt;/b&gt;Before you begin you should make sure that you have the password for the certificate available. The password that I am referring to is the one you used when you created the certificate. Without this password you can not transfer the certificate&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;span style="font-family:Verdana;font-size:8.5pt;"&gt;&lt;i&gt;&lt;b&gt; &lt;h2&gt;The Export&lt;/h2&gt;&lt;/b&gt;&lt;/i&gt; &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:8.5pt;"&gt;The first thing to do is export your key from your IIS 6.0 Server, Windows 2003 (the steps are very similar in Windows 2000, IIS 5.0, however the screen shots are from IIS 6.0) as a .pfx file. Here are the steps:&lt;/span&gt;&lt;/p&gt; &lt;ol&gt;&lt;span style="font-family:Verdana;font-size:8.5pt;"&gt;&lt;li&gt;Login into your Windows 2003, IIS 6.0 server as an Administrator  &lt;/li&gt;&lt;li&gt;Open the IIS Manager.  &lt;/li&gt;&lt;li&gt;Navigate to the web site that has the SSL certificate installed.  &lt;/li&gt;&lt;li&gt;Right click and choose &lt;b&gt;Properties&lt;/b&gt;  &lt;/li&gt;&lt;li&gt;Find the &lt;b&gt;Directory Security&lt;/b&gt; Tab and choose it.  &lt;/li&gt;&lt;li&gt;Click on the &lt;b&gt;Server Certificate&lt;/b&gt; button near the bottom.  &lt;/li&gt;&lt;li&gt;A Certification Wizard will appear, Click N&lt;b&gt;ext&lt;/b&gt; to bypass the "Welcome Screen."  &lt;/li&gt;&lt;li&gt;Now you should see a wizard page like this:  &lt;p&gt;&lt;img alt="" src="http://www.isaserver.org/img/upl/export41109171378718.gif" align="baseline" border="0" hspace="0" /&gt;&lt;/p&gt; &lt;/li&gt;&lt;li&gt;If you don't see this exact page, then you do not have your SSL certificate installed. Install your SSL certificate first then re-due these steps. Another reason you might not see this page is that you chose the wrong web site in step #3 &lt;/li&gt;&lt;li&gt;Choose "Export the current certificate to a .pfx file" from the radio buttons and press next.  &lt;/li&gt;&lt;li&gt;In the next wizard page, choose a file location and save your .pfx file.  &lt;p&gt;&lt;img alt="" src="http://www.isaserver.org/img/upl/export51109171378796.gif" align="baseline" border="0" hspace="0" /&gt;&lt;/p&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ol&gt;&lt;span style="font-family:Verdana;font-size:8.5pt;"&gt;&lt;i&gt;&lt;b&gt; &lt;h2&gt;The Import&lt;/h2&gt;&lt;/b&gt;&lt;/i&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7448397032647535937?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7448397032647535937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/12/ssl-certificate-export-and-import.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7448397032647535937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7448397032647535937'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/12/ssl-certificate-export-and-import.html' title='SSL Certificate Export and Import'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-4756388988857523559</id><published>2008-11-26T20:58:00.000+06:00</published><updated>2008-11-26T21:08:25.488+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft SQL Server'/><title type='text'>Using SQL 2005 Profiler as non sys user</title><content type='html'>To run sql2005 profiler as a non sys user, execute the following query&lt;br /&gt;&lt;br /&gt;GRANT ALTER TRACE TO username&lt;br /&gt;&lt;br /&gt;SQL 2000 does not have that level, and it is not as simple.&lt;br /&gt;&lt;br /&gt;You could add the member to the fixed server role securityadmin. Server roles cannot be redefined, but you can create a new role by combining server role and db roles. For example, add the securityadmin role to a db_accessadmin role.&lt;br /&gt;&lt;br /&gt;Defined by&lt;br /&gt;&lt;a rel="nofollow" href="http://www.microsoft.com/technet/prodtechnol/sql/2000/books/c05ppcsq.mspx" target="_blank"&gt;http://www.microsoft.com/t&lt;wbr&gt;echnet/pro&lt;wbr&gt;dtechnol/s&lt;wbr&gt;ql/2000/bo&lt;wbr&gt;oks/&lt;wbr&gt;c05ppc&lt;wbr&gt;sq.mspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Security Administrators (securityadmin) Designed for users who need to manage logins, create database permissions, and read error logs. Members of this role can add members to securityadmin; &lt;span class="searchTerm"&gt;grant&lt;/span&gt;, deny, and revoke CREATE DATABASE; and read the error logs. In addition, they can also perform these tasks: sp_addlinkedsrvlogin, sp_addlogin, sp_defaultdb, sp_defaultlanguage, sp_denylogin, sp_droplinkedsrvlogin, sp_droplogin, sp_grantlogin, sp_helplogins, sp_remoteoption, and sp_revokelogin.&lt;br /&gt;&lt;br /&gt;db_accessadmin Designed for users who need to add or remove logins in a database. Members of this role can perform these tasks on the se- lected database: sp_addalias, sp_adduser, sp_dropalias, sp_dropuser, sp_grantdbaccess, and sp_revokedbaccess.&lt;br /&gt;&lt;br /&gt;Create the server login, then assign the server role, database access and database roles to the login.&lt;br /&gt;&lt;br /&gt;This is not as clean as &lt;span class="searchTerm"&gt;Grant&lt;/span&gt; &lt;span class="searchTerm"&gt;Alter&lt;/span&gt; Any Login, but the user will have that right.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-4756388988857523559?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/4756388988857523559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/11/using-sql-2005-profiler-as-non-sys-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4756388988857523559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4756388988857523559'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/11/using-sql-2005-profiler-as-non-sys-user.html' title='Using SQL 2005 Profiler as non sys user'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8797910532999736029</id><published>2008-11-18T18:43:00.001+06:00</published><updated>2009-06-15T13:26:05.108+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Server IIS'/><title type='text'>Install FastCGI on Server 2008</title><content type='html'>&lt;p&gt;According to IIS.net…&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;…&lt;em&gt;the FastCGI component enables popular application frameworks like PHP be hosted on the IIS web server in a high-performance and reliable way&lt;/em&gt;.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Mike Volodarsky, a program manager on Microsoft’s IIS team, has expressed the following on his &lt;a target="_blank" href="http://mvolo.com/blogs/serverside/archive/2007/10/09/IIS-FastCGI-and-PHP_3A00_-What-you-absolutely-need-to-know-to-host-PHP-applications-on-IIS-6-and-IIS-7.aspx"&gt;blog&lt;/a&gt; about why using PHP with FastCGI is the prefered method over ISAPI:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;&lt;em&gt;The main reason why ISAPI is not an adequate solution is the lack of thread safety in many popular PHP extensions.  The PHP core itself is thread safe, and so are some of the extensions, so its possible that some applications will work correctly in the ISAPI environment.  However, many production environments do experience instability with the ISAPI.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;So that being said, let’s take a look at how to install configure the FastCGI extension to work with PHP 5.&lt;/p&gt; &lt;p&gt;&lt;span id="more-188"&gt;&lt;/span&gt;&lt;/p&gt; &lt;h2&gt;Installing FastCGI And PHP on Windows Server 2008&lt;/h2&gt; &lt;p&gt;As opposed to previous versions of Windows Server, the FastCGi module is already bundled with Windows Server 2008 so you don’t have to install it.&lt;/p&gt; &lt;p&gt;First of all, let’s make sure that the CGI role service is installed. Click on &lt;em&gt;Start =&gt; Programs =&gt; Administrative Tools =&gt; Server Manager&lt;/em&gt;. Expand &lt;strong&gt;Roles&lt;/strong&gt;, right-click on &lt;strong&gt;Web Server (IIS)&lt;/strong&gt; and select &lt;em&gt;Add Role Services&lt;/em&gt;. Make sure that &lt;strong&gt;CGI&lt;/strong&gt; is checked and if not proceed with its installation.&lt;/p&gt; &lt;p style="text-align: center;"&gt;&lt;img src="http://www.thewebhostinghero.com/wp-content/uploads/2008/02/iis7-cgi-role-service.jpg" alt="iis7-cgi-role-service.jpg" /&gt;&lt;/p&gt; &lt;p&gt;Next head over to &lt;a target="_blank" href="http://www.php.net/downloads.php"&gt;PHP.net’ download page&lt;/a&gt; and download the &lt;strong&gt;PHP Non-thread-safe Win32 binaries&lt;/strong&gt;. &lt;em&gt;At the time of this writing, the latest version of PHP is 5.2.5. &lt;/em&gt;Extract the content from the PHP archive into &lt;strong&gt;c:\php&lt;/strong&gt;.&lt;/p&gt; &lt;p&gt;Launch the &lt;strong&gt;Internet Information Server Manager&lt;/strong&gt; by clicking on &lt;em&gt;Start =&gt; Programs =&gt; Administrative Tools =&gt; Internet Information Server Manager&lt;/em&gt;. Select your server from the left panel and then double-click on the &lt;strong&gt;Handler Mappings&lt;/strong&gt; icon.&lt;/p&gt; &lt;p style="text-align: center;"&gt;&lt;img src="http://www.thewebhostinghero.com/wp-content/uploads/2008/02/iis7-handler-mappings1.jpg" alt="iis7-handler-mappings1.jpg" /&gt;&lt;/p&gt; &lt;p&gt;Click on &lt;strong&gt;Add Module Mapping&lt;/strong&gt; from the right column:&lt;/p&gt; &lt;p style="text-align: center;"&gt;&lt;img src="http://www.thewebhostinghero.com/wp-content/uploads/2008/02/iis-add-module-mapping.jpg" alt="iis-add-module-mapping.jpg" /&gt;&lt;/p&gt; &lt;p&gt;Fill-in the PHP module mapping information as illustrated below and click on &lt;strong&gt;OK&lt;/strong&gt; when done:&lt;/p&gt; &lt;p style="text-align: center;"&gt;&lt;img src="http://www.thewebhostinghero.com/wp-content/uploads/2008/02/iis-php-cgi-mapping.jpg" alt="iis-php-cgi-mapping.jpg" /&gt;&lt;/p&gt; &lt;p&gt;At this point PHP should now be working even though there no &lt;strong&gt;php.ini&lt;/strong&gt; configuration file yet. To find out if PHP files are parsed correctly, create a new file at the root of website’s folder and name it &lt;strong&gt;phpinfo.php&lt;/strong&gt;. Insert the following content into the file and save it:&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;&lt;span style="font-family:courier new,courier;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Now try pointing your web browser to &lt;em&gt;http://yourserver.com/phpinfo.php&lt;/em&gt;. If everything works properly you should see this page:&lt;/p&gt; &lt;p style="text-align: center;"&gt;&lt;img src="http://www.thewebhostinghero.com/wp-content/uploads/2008/02/phpinfo.jpg" alt="phpinfo.jpg" /&gt;&lt;/p&gt; &lt;h2&gt;Configuring PHP&lt;/h2&gt; &lt;p&gt;By default, IIS will look for PHP’s configuration file (php.ini) in &lt;strong&gt;c:\windows&lt;/strong&gt;. To change this, launch the registry editor (&lt;em&gt;Start =&gt; Run =&gt; regedit&lt;/em&gt;) and add a new key named &lt;strong&gt;PHP&lt;/strong&gt; in &lt;strong&gt;HKEY_LOCAL_MACHINE\SOFTWARE\&lt;/strong&gt;. Under the newly created key, create a new value named IniFilePath and set its value data to &lt;strong&gt;c:\php&lt;/strong&gt;.&lt;/p&gt; &lt;p style="text-align: center;"&gt;&lt;img src="http://www.thewebhostinghero.com/wp-content/uploads/2008/02/php-registry.jpg" alt="php-registry.jpg" /&gt;&lt;/p&gt; &lt;p&gt;Close the registry editor when you’re done. Using the Windows Explorer, rename &lt;strong&gt;c:\php\php.ini-recommended&lt;/strong&gt; to &lt;strong&gt;c:\php\php.ini&lt;/strong&gt; and open it with your favorite text editor (no word processor). Find the &lt;strong&gt;extension_dir&lt;/strong&gt; parameter and set its value to &lt;strong&gt;“c:\php\ext”&lt;/strong&gt;. You might also want to uncomment &lt;strong&gt;extension=php_mysqli.dll&lt;/strong&gt; and / or &lt;strong&gt;extension=php_mssql.dll&lt;/strong&gt; if you plan to use MySQL or MS-SQL.&lt;/p&gt; &lt;p&gt;Once you’re done editing PHP’s configuration file, save it and close your file editor. You will need to restart IIS in order to apply the changes. This can be done through the IIS Manager:&lt;/p&gt; &lt;p style="text-align: center;"&gt;&lt;img src="http://www.thewebhostinghero.com/wp-content/uploads/2008/02/restart-iis.jpg" alt="restart-iis.jpg" /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8797910532999736029?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8797910532999736029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/11/install-fastcgi-on-server-2008.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8797910532999736029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8797910532999736029'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/11/install-fastcgi-on-server-2008.html' title='Install FastCGI on Server 2008'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-5146427233877160812</id><published>2008-10-06T17:44:00.001+06:00</published><updated>2009-06-15T13:26:25.282+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Server IIS'/><title type='text'>The request filtering module is configured to deny a request that contains a double escape sequence</title><content type='html'>&lt;p&gt;By default, IIS 7.0 rejects URLs that contain a double escape sequence.&lt;/p&gt; &lt;p&gt;WorkAround&lt;/p&gt; &lt;p&gt;1. Open web.config and add&lt;/p&gt; &lt;blockquote&gt;&lt;system.webserver&gt;&lt;br /&gt;     system.webServer&lt;br /&gt;      security&lt;br /&gt;          requestFiltering allowDoubleEscaping="True"/&lt;br /&gt;      /security&gt;&lt;br /&gt;  /system.webServer&gt;&lt;br /&gt;/configuration&gt;&lt;/system.webserver&gt;&lt;system.webserver&gt;&lt;/system.webserver&gt;&lt;/blockquote&gt; &lt;p&gt;2. Save&lt;/p&gt;&lt;p&gt;http://support.microsoft.com/kb/942076&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-5146427233877160812?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/5146427233877160812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/10/request-filtering-module-is-configured.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5146427233877160812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/5146427233877160812'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/10/request-filtering-module-is-configured.html' title='The request filtering module is configured to deny a request that contains a double escape sequence'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-3063448493048460676</id><published>2008-09-17T15:44:00.001+06:00</published><updated>2009-06-15T13:26:50.030+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Server IIS'/><title type='text'>how to create a Windows web server running IIS7, MySQL, and PHP</title><content type='html'>&lt;h2&gt;Install IIS7&lt;/h2&gt; &lt;p&gt;First thing first, we need to install a web server.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Open the &lt;strong&gt;Control Panel&lt;/strong&gt; in classic view.&lt;/li&gt;&lt;li&gt;Double-click &lt;strong&gt;Programs and Features&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Turn Windows features on or off&lt;/strong&gt; on the left.&lt;/li&gt;&lt;li&gt;Check off &lt;strong&gt;Internet Information Services&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Expand &lt;strong&gt;Internet Information Services&lt;/strong&gt;, &lt;strong&gt;World Wide Web Services&lt;/strong&gt;, &lt;strong&gt;Application Development Features&lt;/strong&gt;, and then check off &lt;strong&gt;ISAPI Extensions&lt;/strong&gt;.  ISAPI will be needed later when we install PHP. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server1.PNG" title="wimp_server1.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server1.thumbnail.PNG" alt="wimp_server1.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;OK&lt;/strong&gt; to install IIS7.&lt;/li&gt;&lt;li&gt;When the &lt;strong&gt;Windows Features&lt;/strong&gt; box disappears IIS7 is installed and should be running.  Test IIS7 by going to &lt;strong&gt;http://localhost&lt;/strong&gt; in your web browser.  You should see an IIS7 test page like the screenshot below. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server2.PNG" title="wimp_server2.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server2.thumbnail.PNG" alt="wimp_server2.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;The root of the default web site is located at &lt;strong&gt;C:\inetpub\wwwroot&lt;/strong&gt;.  Your web site goes there.&lt;/p&gt; &lt;h2&gt;Install PHP&lt;/h2&gt; &lt;p&gt;Now that we have a web server we need support for PHP.  In this example I’m installing PHP 5.2.4.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Create a folder called &lt;strong&gt;php&lt;/strong&gt; in the &lt;strong&gt;root&lt;/strong&gt; of the &lt;strong&gt;C:&lt;/strong&gt; drive.&lt;/li&gt;&lt;li&gt;Download the &lt;strong&gt;Windows Binaries Zip package&lt;/strong&gt; from &lt;a href="http://www.php.net/downloads.php"&gt;http://www.php.net/downloads.php&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Extract the files and save them in the &lt;strong&gt;php&lt;/strong&gt; folder you just created.&lt;/li&gt;&lt;li&gt;Copy &lt;strong&gt;C:\php\php.ini-dist&lt;/strong&gt; and save it on your desktop so we can work with it.&lt;/li&gt;&lt;li&gt;Rename &lt;strong&gt;php.ini-dist&lt;/strong&gt; you just copied on your desktop to &lt;strong&gt;php.ini&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Right-click &lt;strong&gt;php.ini&lt;/strong&gt; and select &lt;strong&gt;Edit&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Search for &lt;strong&gt;extension=php_mysql.dll&lt;/strong&gt; and uncomment it by deleting the &lt;strong&gt;;&lt;/strong&gt; in front of it.  This allows php to login a MySQL database.&lt;/li&gt;&lt;li&gt;Now move up in the php.ini code and look for &lt;strong&gt;extension_dir = “./”&lt;/strong&gt;.  Change &lt;strong&gt;“./”&lt;/strong&gt; to &lt;strong&gt;“C:\php\ext”&lt;/strong&gt;.  This shows php where to load the extension=php_mysql.dll extension you just uncommented.&lt;/li&gt;&lt;li&gt;Save &lt;strong&gt;php.ini&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Copy &lt;strong&gt;php.ini&lt;/strong&gt; and save it in &lt;strong&gt;C:\Windows&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Open the &lt;strong&gt;IIS Manager&lt;/strong&gt; by typing &lt;strong&gt;IIS Manager&lt;/strong&gt; in the Start Menu’s search box and click &lt;strong&gt;Internet Information Services (IIS) Manager&lt;/strong&gt; in the search results.&lt;/li&gt;&lt;li&gt;Double-click &lt;strong&gt;Handler Mappings&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Add Script Map&lt;/strong&gt; located on the right.&lt;/li&gt;&lt;li&gt;Fill out the Add Script Map window like the screen shot below. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server3.PNG" title="wimp_server3.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server3.thumbnail.PNG" alt="wimp_server3.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;OK&lt;/strong&gt; to save the changes.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Yes&lt;/strong&gt; in the window that asks you if you want to enable this ISAPI extension.&lt;/li&gt;&lt;li&gt;Click the &lt;strong&gt;back button&lt;/strong&gt; in the &lt;strong&gt;IIS Manager&lt;/strong&gt; and then double-click &lt;strong&gt;Default Document&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Type &lt;strong&gt;index.php,&lt;/strong&gt; with a space behind &lt;strong&gt;,&lt;/strong&gt; in the &lt;strong&gt;File names&lt;/strong&gt; list.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Apply&lt;/strong&gt; on the top right of IIS Manager.&lt;/li&gt;&lt;li&gt;Now you need to copy &lt;strong&gt;libmysql.dll&lt;/strong&gt; from &lt;strong&gt;C:\php&lt;/strong&gt; and save it in &lt;strong&gt;C:\WINDOWS\System32&lt;/strong&gt;. &lt;em&gt;Thanks for the fix Oruba.&lt;/em&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Lets test to make sure php is installed and running correctly.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Open &lt;strong&gt;notepad&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Type &lt;strong&gt;&lt; ? phpInfo() ?&gt;&lt;/strong&gt; in the blank document. &lt;p&gt; &lt;strong&gt;Note:&lt;/strong&gt; Remove the space between &lt; ? in &lt; ? phoInfo() ?&gt;. I had to add the space so the command doesn’t execute on this page. &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Save it as &lt;strong&gt;test.php&lt;/strong&gt; on your &lt;strong&gt;desktop&lt;/strong&gt; and then move it to &lt;strong&gt;C:\inetpub\wwwroot&lt;/strong&gt;.  &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A common mistake when saving test.php is to save it as test.php.txt.  &lt;em&gt;Don’t forget to select All files under Save as type and then name the file test.php in notepad.&lt;/em&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Go to &lt;strong&gt;http://localhost/test.php&lt;/strong&gt;.  You should get a php information page similar to the screen shot below. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server4.PNG" title="wimp_server4.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server4.thumbnail.PNG" alt="wimp_server4.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;h2&gt;Install MySQL&lt;/h2&gt; &lt;p&gt;Before we can install MySQL we need to disable UAC in Windows Vista.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Open the &lt;strong&gt;Control Panel&lt;/strong&gt; in classic view.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;User Accounts&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Turn User Account Control on or off&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Uncheck &lt;strong&gt;Use User Account Control&lt;/strong&gt; and then click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Restart&lt;/strong&gt; your computer.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You can turn UAC back on after everything has been installed and working.&lt;/p&gt; &lt;p&gt;Now we can install MySQL.  In this example I’m going to install MySQL Community Edition 5.0.45.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Download the &lt;strong&gt;Windows ZIP/setup.exe&lt;/strong&gt; version &lt;a href="http://dev.mysql.com/downloads/mysql/5.0.html#win32"&gt;http://dev.mysql.com/downloads/mysql/5.0.html#win32&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Unzip it and save &lt;strong&gt;setup.exe&lt;/strong&gt; on your desktop.&lt;/li&gt;&lt;li&gt;Run &lt;strong&gt;Setup.exe&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;The welcome window will popup.  Click &lt;strong&gt;Next&lt;/strong&gt;. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server5.PNG" title="wimp_server5.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server5.thumbnail.PNG" alt="wimp_server5.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Since this is a general guide on creating a WIMP server leave &lt;strong&gt;Typical&lt;/strong&gt; selected and click &lt;strong&gt;Next&lt;/strong&gt;. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server6.PNG" title="wimp_server6.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server6.thumbnail.PNG" alt="wimp_server6.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Let MySQL install in its default directory by simply clicking &lt;strong&gt;Install&lt;/strong&gt; in this window. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server7.PNG" title="wimp_server7.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server7.thumbnail.PNG" alt="wimp_server7.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Next&lt;/strong&gt; to move through a few advertisements.&lt;/li&gt;&lt;li&gt;Leave &lt;strong&gt;Configure the MySQL Server now&lt;/strong&gt; checked and click &lt;strong&gt;Finished&lt;/strong&gt;. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server8.PNG" title="wimp_server8.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server8.thumbnail.PNG" alt="wimp_server8.PNG" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; It seems some versions other than &lt;strong&gt;5.0.45&lt;/strong&gt; of MySQL silently errors out during installation.  I’m not sure if this is a bug or not but Dustin has provided a great &lt;a href="http://www.maximumpcguides.com/how-to-create-a-windows-vista-iis7-mysql-php-web-server/#comment-1810"&gt;fix in the comments&lt;/a&gt;. &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Next&lt;/strong&gt; at the welcome window. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server9.PNG" title="wimp_server9.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server9.thumbnail.PNG" alt="wimp_server9.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;I’m assuming that you don’t need to configure any advanced MySQL settings. If you did you probably wouldn’t need this guide or you should leave this job to an expert. Select &lt;strong&gt;Standard Configuration&lt;/strong&gt; and then click &lt;strong&gt;Next&lt;/strong&gt;. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server10.PNG" title="wimp_server10.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server10.thumbnail.PNG" alt="wimp_server10.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Leave &lt;strong&gt;Install As Windows Service&lt;/strong&gt;, the service name &lt;strong&gt;MySQL&lt;/strong&gt;, and &lt;strong&gt;Launch MySQL Automatically&lt;/strong&gt; checked and click &lt;strong&gt;Next&lt;/strong&gt;. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server11.PNG" title="wimp_server11.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server11.thumbnail.PNG" alt="wimp_server11.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Type the MySQL administrator (root) password twice and then click &lt;strong&gt;Next&lt;/strong&gt;. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server12.PNG" title="wimp_server12.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server12.thumbnail.PNG" alt="wimp_server12.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;This part is VERY important.  Hold your mouth just right, cross your fingers and click &lt;strong&gt;Execute&lt;/strong&gt; to configure MySQL.  If you did it just right you should get 4 check marks when it’s done. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server13.PNG" title="wimp_server13.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server13.thumbnail.PNG" alt="wimp_server13.PNG" /&gt;&lt;/a&gt; &lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server14.PNG" title="wimp_server14.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server14.thumbnail.PNG" alt="wimp_server14.PNG" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you get a &lt;strong&gt;Connection Error&lt;/strong&gt;, click &lt;strong&gt;Retry&lt;/strong&gt; and it should work. This is caused by a slower computer not starting the MySQL service fast enough. &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Finished&lt;/strong&gt;.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Now that you have MySQL installed and running lets install the GUI Tools to make managing databases easy.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Download the &lt;strong&gt;GUI Tools (Windows x86)&lt;/strong&gt; at &lt;a href="http://dev.mysql.com/downloads/gui-tools/5.0.html"&gt;http://dev.mysql.com/downloads/gui-tools/5.0.html&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Install it just like any other software.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Start&lt;/strong&gt;, &lt;strong&gt;All Programs&lt;/strong&gt;, &lt;strong&gt;MySQL&lt;/strong&gt;, &lt;strong&gt;MySQL Administrator&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Fill in the fields just like the screen shot below. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server15.PNG" title="wimp_server15.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server15.thumbnail.PNG" alt="wimp_server15.PNG" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Remember:&lt;/strong&gt; Root’s password is the one you set when you installed MySQL. &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Once MySQL Administrator is open, you can create a new database by clicking &lt;strong&gt;Catalogs&lt;/strong&gt; and then right-clicking under test and select &lt;strong&gt;Create Schema&lt;/strong&gt;. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server16.PNG" title="wimp_server16.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server16.thumbnail.PNG" alt="wimp_server16.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Give it a name and there you go!&lt;/li&gt;&lt;/ol&gt; &lt;h2&gt;Open Port 80&lt;/h2&gt; &lt;p&gt;Now that you have a working WIMP lets open it up to the world. All internet (HTTP) traffic passes through port 80. Let’s open port 80 to the world.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Search for &lt;strong&gt;firewall&lt;/strong&gt; in the &lt;strong&gt;search box&lt;/strong&gt; in the &lt;strong&gt;Start Menu&lt;/strong&gt; and click &lt;strong&gt;Windows Firewall&lt;/strong&gt; in the search results.&lt;/li&gt;&lt;li&gt;Click the &lt;strong&gt;Exceptions&lt;/strong&gt; tab in the &lt;strong&gt;Windows Firewall Settings&lt;/strong&gt; window. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/open_port_80_1.PNG" title="open_port_80_1.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/open_port_80_1.thumbnail.PNG" alt="open_port_80_1.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Click the &lt;strong&gt;Add port&lt;/strong&gt; button.&lt;/li&gt;&lt;li&gt;Type &lt;strong&gt;HTTP&lt;/strong&gt; as the name and &lt;strong&gt;80&lt;/strong&gt; as the port number. &lt;p&gt;&lt;a href="http://www.maximumpcguides.com/wp-content/uploads/2007/09/open_port_80_2.PNG" title="open_port_80_2.PNG"&gt;&lt;img src="http://www.maximumpcguides.com/wp-content/uploads/2007/09/open_port_80_2.thumbnail.PNG" alt="open_port_80_2.PNG" /&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt; &lt;h2&gt;Adjust Vista for Web Server Performance&lt;/h2&gt; &lt;p&gt;Because Windows Vista is not meant to be a server out of the box its priorities are backwards when it’s being used as a web server. Windows Vista prioritizes programs like Word before background services like IIS7 to give the end user the best experience possible. Since we’re configuring Windows Vista as a web server background services need to be Vistas priority instead of programs.&lt;/p&gt; &lt;p&gt;Let’s set Windows Vista’s services as a higher priority than programs to squeeze the most speed out of it as we can.&lt;/p&gt; &lt;ol&gt;&lt;li&gt;Right-click &lt;strong&gt;Computer&lt;/strong&gt; in the Start Menu and then select &lt;strong&gt;Properties&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Advanced system settings&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;Settings&lt;/strong&gt; under &lt;strong&gt;Performance&lt;/strong&gt; in the &lt;strong&gt;Advanced&lt;/strong&gt; tab of the &lt;strong&gt;System Properties&lt;/strong&gt; window.&lt;/li&gt;&lt;li&gt;Click the &lt;strong&gt;Advanced&lt;/strong&gt; tab in the &lt;strong&gt;Performance Options&lt;/strong&gt; window.&lt;/li&gt;&lt;li&gt;Select &lt;strong&gt;Background services&lt;/strong&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;strong&gt;OK&lt;/strong&gt; and then &lt;strong&gt;restart&lt;/strong&gt; your computer.&lt;/li&gt;&lt;/ol&gt; &lt;h2&gt;Hardware&lt;/h2&gt; &lt;p&gt;A web server with low to modest traffic doesn’t have to be a powerful machine to get the job done. Any modern PC with at least 1GBs of RAM (2GBs recommended for MySQL) will do fine. If you become one of the fortunate ones who receives enough traffic to need a high performance web server here are a few hardware tips.&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;strong&gt;Memory:&lt;/strong&gt; If you’re expecting any kind of modest traffic (many thousands of hits per day) memory is very important. 2GBs is a good start but 3 or 4 are better.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;IIS7:&lt;/strong&gt;  A powerful processor(s) and a good amount of memory are important.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;MySQL:&lt;/strong&gt; A fast hard drive and lots of memory are important for a MySQL database.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-3063448493048460676?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/3063448493048460676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/09/how-to-create-windows-web-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3063448493048460676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/3063448493048460676'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/09/how-to-create-windows-web-server.html' title='how to create a Windows web server running IIS7, MySQL, and PHP'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-9064217894375600286</id><published>2008-09-09T17:22:00.000+06:00</published><updated>2008-09-09T17:25:49.147+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL Server'/><title type='text'>How to Remote Root Access to MySql  Server</title><content type='html'>&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;First we need to set root password, to do that follow the example.&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;mysql -u root&lt;br /&gt;mysql&gt; SET PASSWORD FOR 'ROOT'@'LOCALHOST"&lt;br /&gt;&gt; = PASSWORD('new_password');&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;Now while we’re still here, we’ll create a new HOST for root and allow root to login from anywhere.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;mysql&gt; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'&lt;br /&gt;&gt; IDENTIFIED BY 'password' WITH GRANT OPTION;&lt;br /&gt;mysql&gt; exit&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;We’re almost done now. We just have to tell Mysql to allow remote logins.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;edit the my.cnf file located in mysql installation directory&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;Now find the line that says&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;bind-address = 127.0.0.1&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:100%;"&gt;and comment it out.  That’s all there is to it!  Now get your favorite MySql client and start developing.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-9064217894375600286?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/9064217894375600286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/09/how-to-remote-root-access-to-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/9064217894375600286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/9064217894375600286'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/09/how-to-remote-root-access-to-mysql.html' title='How to Remote Root Access to MySql  Server'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8495384668723731806</id><published>2008-09-09T10:20:00.000+06:00</published><updated>2008-09-09T10:53:45.567+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ektron CMS400.NET'/><title type='text'>Configuring SSL on Ektron Sites</title><content type='html'>In Ektron CMS400.NET, you can use SSL when users log in to your&lt;br /&gt;Web site. SSL encrypts the username and password during&lt;br /&gt;transmissions to the server.&lt;br /&gt;When you set up the SSL certificate, and configure Ektron&lt;br /&gt;CMS400.NET to use it, the login page is launched in a Secure&lt;br /&gt;Socket Layer. This section explains how to set up SSL for Ektron&lt;br /&gt;CMS400.NET.&lt;br /&gt;&lt;br /&gt;First enable SSL certificate on the ektron site&lt;br /&gt;&lt;br /&gt;Next, configure Ektron CMS400.NET to use the SSL certificate.&lt;br /&gt;1. Open the web.config file.&lt;br /&gt;2. Move to the section of the file that has these settings.&lt;br /&gt;&lt;add key="ek_UseSSL" value="false"&gt;&lt;br /&gt;  &lt;add key="ek_UseSSL" value="false"&gt;add key="ek_UseSSL" value="false"&lt;br /&gt;add key="ek_SSL_Port" value="443"&lt;br /&gt;  &lt;add key="ek_SSL_Port" value="443"&gt;&lt;br /&gt;&lt;add key="ek_SSL_Port" value="443"&gt;&lt;br /&gt;3. Set the ek_UseSSL value to true.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;WARNING! &lt;/span&gt;If the ek_UseSSL value is true, but you did not install the certificate to the Web&lt;br /&gt;Server, you cannot log into Ektron CMS400.NET.&lt;br /&gt;&lt;br /&gt;4. Set the ek_SSL_Port value to 443 (unless you specified another&lt;br /&gt;SSL port).&lt;br /&gt;5. Save and close the file.&lt;br /&gt;You are ready to use the SSL support for Ektron CMS400.NET.&lt;/add&gt;&lt;/add&gt;&lt;/add&gt;&lt;/add&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8495384668723731806?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8495384668723731806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/09/configuring-ssl-on-ektron-sites.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8495384668723731806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8495384668723731806'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/09/configuring-ssl-on-ektron-sites.html' title='Configuring SSL on Ektron Sites'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-364544545748557905</id><published>2008-09-01T15:17:00.000+06:00</published><updated>2008-09-01T15:35:53.695+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft SQL Server'/><title type='text'>SQL2000 Server based Session management configuration</title><content type='html'>&lt;p class="MsoNormal" style="margin-left:1.0in"&gt;&lt;span style=" font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font: minor-latin;mso-bidi-Times New Roman&amp;quot;;mso-bidi-theme-font:minor-bidi; color:#1F497D;mso-themefont-family:&amp;quot;;color:dark2;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&gt;aspnet_regsql.exe -S localhost -U&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left:1.0in"&gt;&lt;span style=" font-family:&amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font: minor-latin;mso-bidi-Times New Roman&amp;quot;;mso-bidi-theme-font:minor-bidi; color:#1F497D;mso-themefont-family:&amp;quot;;color:dark2;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;sa -P dhaka1214 -ssadd&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-364544545748557905?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/364544545748557905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/09/1-sql2000-server-based-session.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/364544545748557905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/364544545748557905'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/09/1-sql2000-server-based-session.html' title='SQL2000 Server based Session management configuration'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-2853877384124525764</id><published>2008-08-30T10:24:00.002+06:00</published><updated>2009-06-14T15:57:10.216+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>How to view Outlook2007 email header?</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_-iB4xap-wXY/SLjRvm1HaaI/AAAAAAAABJA/edf7_Ok7l20/s1600-h/mail+header.JPG"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_-iB4xap-wXY/SLjRvm1HaaI/AAAAAAAABJA/edf7_Ok7l20/s320/mail+header.JPG" border="0" alt="" id="BLOGGER_PHOTO_ID_5240168782252960162" /&gt;&lt;/a&gt;&lt;br /&gt;You can easily view outlook 2007 email header, just open the email by double clicking on it. Just look at the image and click the red marks area.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-2853877384124525764?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/2853877384124525764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/08/how-to-view-outlook2007-email-header.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2853877384124525764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/2853877384124525764'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/08/how-to-view-outlook2007-email-header.html' title='How to view Outlook2007 email header?'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_-iB4xap-wXY/SLjRvm1HaaI/AAAAAAAABJA/edf7_Ok7l20/s72-c/mail+header.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-1864011275524451510</id><published>2008-08-11T18:22:00.001+06:00</published><updated>2009-06-14T15:52:42.596+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Where all my linux disk space gone?</title><content type='html'>&lt;p&gt;Here’s a quick run through using nothing more than the command prompt -&lt;/p&gt; &lt;p&gt;To show all of your filesystems with the -m showing used/free space in megabytes&lt;/p&gt; &lt;div class="codecolorer-container bash"&gt;&lt;div class="codecolorer"  style="font-family:monospace;"&gt;$ df -m&lt;br /&gt;Filesystem   1M-blocks      Used     Available   Use%    Mounted on&lt;br /&gt;simfs        &lt;span class="nu0"&gt;10000&lt;/span&gt;          &lt;span class="nu0"&gt;718&lt;/span&gt;      &lt;span class="nu0"&gt;9283&lt;/span&gt;        &lt;span class="nu0"&gt;8&lt;/span&gt;%      /&lt;/div&gt;&lt;/div&gt; &lt;p&gt;So I’m using 718 MB of my disk space but where?&lt;/p&gt; &lt;p&gt;For the next bit we’re going to need to be root (or root equivalent)&lt;/p&gt; &lt;div class="codecolorer-container bash"&gt;&lt;div class="codecolorer"  style="font-family:monospace;"&gt;$ sudo -s&lt;br /&gt;&lt;span class="re3"&gt;# &lt;span class="kw3"&gt;cd&lt;/span&gt; /&lt;/span&gt;&lt;br /&gt;&lt;span class="re3"&gt;# du -ahm --max-depth &lt;span class="nu0"&gt;1&lt;/span&gt; --exclude /proc | sort -n&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;That will list the size in MB of all of the folders in root (/) with the largest last.&lt;/p&gt; &lt;div class="codecolorer-container bash"&gt;&lt;div class="codecolorer"  style="font-family:monospace;"&gt;&lt;span class="nu0"&gt;5&lt;/span&gt;    ./bin&lt;br /&gt;&lt;span class="nu0"&gt;6&lt;/span&gt;    ./etc&lt;br /&gt;&lt;span class="nu0"&gt;6&lt;/span&gt;    ./root&lt;br /&gt;&lt;span class="nu0"&gt;7&lt;/span&gt;    ./sbin&lt;br /&gt;&lt;span class="nu0"&gt;12&lt;/span&gt;    ./lib&lt;br /&gt;&lt;span class="nu0"&gt;18&lt;/span&gt;    ./home&lt;br /&gt;&lt;span class="nu0"&gt;154&lt;/span&gt;    ./var&lt;br /&gt;&lt;span class="nu0"&gt;513&lt;/span&gt;    ./usr&lt;/div&gt;&lt;/div&gt; &lt;p&gt;So my /usr folder is using 513MB. Now I can drill down into the folders running the same command again.&lt;/p&gt; &lt;div class="codecolorer-container bash"&gt;&lt;div class="codecolorer"  style="font-family:monospace;"&gt;&lt;span class="re3"&gt;# &lt;span class="kw3"&gt;cd&lt;/span&gt; /usr&lt;/span&gt;&lt;br /&gt;&lt;span class="re3"&gt;# du -ahm --max-depth &lt;span class="nu0"&gt;1&lt;/span&gt; --exclude /proc | sort -n&lt;/span&gt;&lt;/div&gt;&lt;/div&gt; &lt;p&gt;and so on.&lt;/p&gt; &lt;p&gt;Obviously you only want to be deleting files when you’re absolutely positive what they are used for and what impact deleting them will have on your system!&lt;/p&gt; &lt;p&gt;There are a whole bunch of utilities for both Windows and linux to make this process easier and prettier! Here’s a couple -&lt;/p&gt; &lt;p&gt;Linux - &lt;a href="http://treesize.sourceforge.net/" target="_blank"&gt;http://treesize.sourceforge.net/&lt;/a&gt;&lt;br /&gt;Windows - &lt;a href="http://sourceforge.net/projects/windirstat/" target="_blank"&gt;http://sourceforge.net/projects/windirstat/&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-1864011275524451510?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/1864011275524451510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/08/where-all-my-linux-diskspace-gone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1864011275524451510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/1864011275524451510'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/08/where-all-my-linux-diskspace-gone.html' title='Where all my linux disk space gone?'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8590708522419023758</id><published>2008-08-05T17:43:00.001+06:00</published><updated>2009-06-15T14:11:53.036+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Server IIS'/><title type='text'>Which w3wp.exe process belongs to which App Pool in IIS6</title><content type='html'>&lt;span style="font-family:Verdana;font-size:85%;"&gt;Along with Windows Server 2003 and Internet Information Services 6.0 came a large number of benefits.  For us IIS admins, it was a great welcome set of changes. But, one apparent difficultly is matching up the w3wp.exe processes displayed in Task Manager to the Application Pools in IIS.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;"&gt;What about IIS6?&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;But, that doesn't work anymore with IIS6.0.  Now each site in IIS6 is placed in an Application Pool.  Each Application Pool is completely separated from other App Pools by running in its own process called w3wp.exe.  This make life SO much easier.  Now, the trick is to match up the process shown in Task Manager with the Application Pool set up in IIS.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;If there is a different user for each application pool, Windows Task Manager is the easiest way to find out which application pool belongs to which site since Task Manager will display the user the process runs as.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;But, what happens if you have multiple application pools running as the same user?  For example, if you keep to the default NETWORK SERVICE user but create multiple Application Pools, you may want to know which process belongs to which App Pool.  Component Services doesn't work for this anymore.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;"&gt;Enough already, tell me how to do it!&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Have no worries, Microsoft has given us the exact tool for the situation.  IISApp.vbs lists all the applications, their PID and their App Pool name.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;The script is already placed in &lt;em&gt;systemroot&lt;/em&gt;\system32 on Windows Server 2003 so simply go to your Command Prompt and type in &lt;strong&gt;&lt;em&gt;iisapp.vbs &lt;/em&gt;&lt;/strong&gt;(the .vbs is optional) and you'll have an instant list of all the App Pool information you've always wanted to know.  You may need to type &lt;strong&gt;&lt;em&gt;cscript iisapp.vbs&lt;/em&gt;&lt;/strong&gt; instead if CScript isn't your default WSH script host.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;"&gt;Let's see an example of the output:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Here is an example of the output.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;W3WP.exe PID: 1468   AppPoolId: AppPoolForSite1.com&lt;br /&gt;W3WP.exe PID: 3056   AppPoolId: AppPooForSite2.com&lt;br /&gt;W3WP.exe PID: 1316   AppPoolId: AppPooForSite3.com&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Direct from the horse's mouth, Microsoft documents this:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/cl_as_viewapps.asp"&gt;&lt;span style="font-family:Verdana;"&gt;http://www.microsoft.com/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/standard/proddocs/en-us/cl_as_viewapps.asp&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;"&gt;Summary&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;We've seen here that using iisapp.vbs, you can painlessly match up the PID to the friendly name of the Application Pool.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8590708522419023758?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8590708522419023758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/08/which-w3wpexe-process-belongs-to-which.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8590708522419023758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8590708522419023758'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/08/which-w3wpexe-process-belongs-to-which.html' title='Which w3wp.exe process belongs to which App Pool in IIS6'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-4354515669867316335</id><published>2008-07-23T10:12:00.001+06:00</published><updated>2009-06-14T15:58:34.856+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>CONFIGURING FTP IN ISOLATION MODE (IIS6 windows2003)</title><content type='html'>&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="*" width="*"&gt;&lt;p align="left"&gt;&lt;strong&gt;1. Installing                            IIS6 FTP on Windows Server 2003:&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;In the “Windows Components Wizard”, highlight                            the “Application Server” and press the “Details”                            button. The screen below will be displayed (Fig 1).&lt;/p&gt;                         &lt;p align="center"&gt;&lt;b&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image01.gif" alt="Figure 1" height="344" width="449" /&gt;&lt;br /&gt;                        &lt;/b&gt; &lt;strong&gt;Figure 1 - The Application Server Screen&lt;/strong&gt;&lt;/p&gt;                         &lt;p align="left"&gt;Highlight the “Internet Information                            Services (IIS)” option and press “Details”                            (as shown in Fig 1 above).&lt;/p&gt;                         &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image02.gif" alt="Figure 2" height="344" width="449" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 2 - The Internet Information Services                            (IIS) Screen&lt;/strong&gt;&lt;/p&gt;                         &lt;p align="left"&gt;On the next screen (Fig 2 above) we highlight                            “File Transfer Protocol (FTP) Service”.&lt;/p&gt;                         &lt;p align="left"&gt;Click “OK” to close each window                            and “Next” to install the newly-selected                            components. You will be asked to insert your Windows                            Server 2003 disk. Click “Finish” once the                            installation is complete.&lt;/p&gt;                         &lt;p align="left"&gt;You have now installed the FTP service.&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image03.gif" alt="Figure 3" height="251" width="208" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 3 - Setting up your FTP Root Directory&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;2. The FTP Root Directory&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        In order to use FTP in "Isolation" mode, we                            need to construct the FTP Root so that users are "Dropped"                            into their correct home directory.&lt;br /&gt;                     &lt;br /&gt;                        The structure illustrated above contains two subdirectories,                            "localuser" and my domain "simongibson"                            which contain home directories for each user. These                            user sub-directories must match their respective username                            exactly. If not, the user will not be able to log onto                            your FTP server.&lt;br /&gt;                     &lt;br /&gt;                        Create the directory structure above to match your configuration.                            The "FTPRoot" directory can be placed anywhere                            on your system.&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image05.gif" alt="Figure 5" height="464" width="583" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 5 - Removing the Default FTP Site in                            IIS 6&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;4. Removing the Default FTP Site in IIS 6:&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        The first task is to remove (delete) the Default FTP                            Site. This site does not use Isolation and matches IIS5                            FTP sites in terms of functionality and security. As                            we are going to use Isolation, we will need to create                            a fresh FTP site.&lt;br /&gt;                     &lt;br /&gt;                        Simply right-click on the Default FTP Site and press                            "Delete" in the menu that appears.&lt;br /&gt;                      &lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image06.gif" alt="Figure 6" height="463" width="583" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 6 - Creating a fresh FTP Site in IIS.&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;5. Creating a fresh FTP site:&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        To create a new FTP site, simply right-click on "FTP                            Sites" and select "New" and "FTP                            Site...". Then, press "Next" to begin                            the FTP Site Creation Wizard.&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image07.gif" alt="Figure 7" height="374" width="482" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 7 - FTP Site Creation Wizard: FTP Site                            Description&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;6. FTP Site Creation Wizard: FTP Site Description&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        This is the name that will appear in the "FTP Sites"                            list in IIS. I'm going to use my imagination and call                            this site "FTP".&lt;br /&gt;                     &lt;br /&gt;                        Click Next.&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image08.gif" alt="Figure 8" height="374" width="482" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 8 - FTP Site Creation Wizard: IP Address                            and Port Settings&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;7. FTP Site Creation Wizard: IP Address and                            Port Settings&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        Simply select your server's IP address from the list                            (this is usually the only one listed).&lt;br /&gt;                     &lt;br /&gt;                        You can also change the TCP Port if required but this                            is not recommended.&lt;br /&gt;                     &lt;br /&gt;                        Click Next.&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image09.gif" alt="Figure 9" height="374" width="482" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 9 - FTP Site Creation Wizard: FTP User                            Isolation&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;8. FTP Site Creation Wizard: FTP User Isolation&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        This screen allows you to choose the type of Isolation                            you want to use:-&lt;br /&gt;                     &lt;br /&gt;                        "Do not isolate users"&lt;br /&gt;                        Although this option allows users to be "dropped"                            into their own home directory (if one exists under the                            FTP root that exactly matches their username), it's                            NOT able to stop them moving up out of their directory                            and into those belonging to other users.&lt;br /&gt;                     &lt;br /&gt;                        "Isolate users"&lt;br /&gt;                        This option Isolates users based on the directory structure                            under the FTP root directory (see Step 2). This is the                            easiest of the two Isolation methods and the method                            we will use in this tutorial.&lt;br /&gt;                     &lt;br /&gt;                        "Isolate users using Active Directory"&lt;br /&gt;                        This option Isolates users by getting their "FTP                            Home Directory" from the Active Directory. The                            advantage of this is that new users can be added without                            the need to modify your FTP site. However, the "FTP                            Home Directory" can not be entered using the Active                            Directory snap in and must be configured from the command                            line by using a VBScript utility.&lt;br /&gt;                     &lt;br /&gt;                        As shown in Figure 9 above, select "Isolate Users"                            and press "Next".&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;&lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image10.gif" alt="Figure 10" height="374" width="482" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 10 - FTP Site Creation Wizard: FTP Site                            Content Directory&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;9. FTP Site Creation Wizard: FTP Site Content                            Directory&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        This step defines the FTP Root directory. Select the                            FTP Root directory you created in Step 2 (Figure 3).&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                &lt;br /&gt;                                      &lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15" width="*"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt;&lt;br /&gt;&lt;/td&gt;                       &lt;td height="*" width="*"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/ftp2003/images/image11.gif" alt="Figure 11" height="374" width="482" /&gt;&lt;br /&gt;                        &lt;strong&gt;Figure 11 - FTP Site Creation Wizard: FTP Site                            Access Permissions&lt;/strong&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;10. FTP Site Creation Wizard: FTP Site Access                            Permissions&lt;/strong&gt;&lt;br /&gt;                     &lt;br /&gt;                        This step allows you to define read or write access                            for your FTP site. In this case, I intend to allow files                            to be uploaded so I've ticked the "Write"                            box.&lt;br /&gt;                     &lt;br /&gt;                        Click Next then click Finish to complete the Wizard.&lt;br /&gt;                     &lt;br /&gt;                        Your FTP Site is now ready for use. To test it, simply                            open Internet Explorer and enter the URL ftp://192.168.0.1                            (or your Server's IP address if different). You should                            then log in and be automatically "Dropped"                            into your home directory.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-4354515669867316335?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/4354515669867316335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/07/configuring-ftp-in-isolation-mode-iis6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4354515669867316335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/4354515669867316335'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/07/configuring-ftp-in-isolation-mode-iis6.html' title='CONFIGURING FTP IN ISOLATION MODE (IIS6 windows2003)'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6044579990001177628</id><published>2008-07-23T10:01:00.001+06:00</published><updated>2009-06-14T15:53:59.302+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>How to reinstall or repair Internet Explorer in Windows XP</title><content type='html'>&lt;h2 class="subTitle" id="tocHeadRef"&gt;&lt;span style="font-size:85%;"&gt;Introduction&lt;/span&gt;&lt;/h2&gt;&lt;script type="text/javascript"&gt;loadTOCNode(1, 'moreinformation');&lt;/script&gt;&lt;div class="sbody"&gt;You may have to reinstall or to repair Internet Explorer in Windows XP if you have problems with Internet Explorer because of damaged files or missing registration information. You may also decide to reinstall or to repair Internet Explorer 6 to resolve problems with Outlook Express in Windows XP.&lt;/div&gt;&lt;div class="sbody"&gt;&lt;h3 id="tocHeadRef"&gt;&lt;span style="font-size:85%;"&gt;Methods to follow if you have Internet Explorer 6&lt;/span&gt;&lt;/h3&gt;&lt;script type="text/javascript"&gt;loadTOCNode(2, 'moreinformation');&lt;/script&gt;Any of the  methods in this article may resolve your problem. Feel free to select the one that you are most comfortable with.&lt;h4 id="tocHeadRef"&gt;Method 1: Install Internet Explorer 7&lt;/h4&gt;&lt;script type="text/javascript"&gt;loadTOCNode(3, 'moreinformation');&lt;/script&gt;You may be able to resolve problems with Internet Explorer 6 if you install Internet Explorer 7. Installing Internet Explorer 7 probably will not resolve problems with Outlook Express.&lt;br /&gt;&lt;br /&gt;For information about how to install Internet Explorer 7, visit the following Microsoft Web site: &lt;div class="indent"&gt;&lt;a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx"&gt;http://www.microsoft.com/windows/products/winfamily/ie/default.mspx&lt;/a&gt;&lt;span class="pLink"&gt; (http://www.microsoft.com/windows/products/winfamily/ie/default.mspx)&lt;/span&gt;&lt;/div&gt;&lt;b&gt;Note&lt;/b&gt; After you install Internet Explorer 7, you can repair damaged files or missing registration information in Internet Explorer 7. To do this, follow these steps:&lt;table class="list ol"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="number"&gt;1.&lt;/td&gt;&lt;td class="text"&gt;Start Internet Explorer 7.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;2.&lt;/td&gt;&lt;td class="text"&gt;On the &lt;strong class="uiterm"&gt;Tools&lt;/strong&gt; menu, click &lt;strong class="uiterm"&gt;Internet Options&lt;/strong&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;3.&lt;/td&gt;&lt;td class="text"&gt;On the &lt;strong class="uiterm"&gt;Advanced&lt;/strong&gt; tab, click &lt;strong class="uiterm"&gt;Reset&lt;/strong&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;4.&lt;/td&gt;&lt;td class="text"&gt;In the &lt;strong class="uiterm"&gt;Reset Internet Explorer Settings&lt;/strong&gt; dialog box, click &lt;strong class="uiterm"&gt;Reset&lt;/strong&gt; to confirm.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4 id="tocHeadRef"&gt;Method 2: Install Windows XP Service Pack 2&lt;/h4&gt;&lt;script type="text/javascript"&gt;loadTOCNode(3, 'moreinformation');&lt;/script&gt;If you do not want to install Internet Explorer 7, or for some reason cannot do so, you may be able to resolve problems with Internet Explorer 6 by installing Windows XP Service Pack 2. Additionally, installing Windows XP Service Pack 2 may help resolve issues with Outlook Express because Windows XP Service Pack 2 includes both Internet Explorer 6 Service Pack 2 and Outlook Express Service Pack 2.&lt;br /&gt;To install Windows XP Service Pack 2, follow these steps:&lt;table class="list ol"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="number"&gt;1.&lt;/td&gt;&lt;td class="text"&gt;Visit the following Microsoft Web site: &lt;div class="indent"&gt;&lt;a href="http://www.update.microsoft.com/"&gt;http://www.update.microsoft.com&lt;/a&gt;&lt;span class="pLink"&gt; (http://www.update.microsoft.com)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;2.&lt;/td&gt;&lt;td class="text"&gt;Click &lt;strong class="uiterm"&gt;Express Install (Recommended)&lt;/strong&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;3.&lt;/td&gt;&lt;td class="text"&gt;If your computer qualifies, Windows XP Service Pack 2 will be one of the updates that is automatically selected. Click &lt;strong class="uiterm"&gt;Install&lt;/strong&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;4.&lt;/td&gt;&lt;td class="text"&gt;Review the Microsoft Software License Terms. Then, if you agree with it, accept it.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; For more information how to obtain the latest Windows XP service pack, click the following article number to view the article in the Microsoft Knowledge Base: &lt;div class="indent"&gt;&lt;a class="KBlink" href="http://support.microsoft.com/kb/322389/"&gt;322389&lt;/a&gt;&lt;span class="pLink"&gt; (http://support.microsoft.com/kb/322389/)&lt;/span&gt;   How to obtain the latest Windows XP service pack  &lt;/div&gt;&lt;h4 id="tocHeadRef"&gt;Method 3: Repair  Internet Explorer 6 and Outlook Express 6  by using the System File Checker in Windows XP&lt;/h4&gt;&lt;script type="text/javascript"&gt;loadTOCNode(3, 'moreinformation');&lt;/script&gt;If you already have Windows XP Service Pack 2 installed, and you do not want to install Internet Explorer 7, you may be able to resolve problems with Internet Explorer 6 by running the System File Checker. Additionally, running the System File Checker may help resolve issues with Outlook Express 6.&lt;br /&gt;&lt;br /&gt;To run the System File Checker, follow these steps: &lt;table class="list ol"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="number"&gt;1.&lt;/td&gt;&lt;td class="text"&gt;Click &lt;strong class="uiterm"&gt;Start&lt;/strong&gt;, click &lt;strong class="uiterm"&gt;Run&lt;/strong&gt; type &lt;span class="userInput"&gt;sfc /scannow&lt;/span&gt;, and then press ENTER. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;2.&lt;/td&gt;&lt;td class="text"&gt;Follow the prompts throughout the System File Checker process.  &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;3.&lt;/td&gt;&lt;td class="text"&gt; Restart the computer when System File Checker process is complete. &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4 id="tocHeadRef"&gt;Method 4: Reinstall  Internet Explorer 6 by using the Ie.inf file&lt;/h4&gt;&lt;script type="text/javascript"&gt;loadTOCNode(3, 'moreinformation');&lt;/script&gt;If you already have Windows XP Service Pack 2 installed, and you do not want to install Internet Explorer 7, you may be able to resolve problems with Internet Explorer 6 by using the Ie.inf file to reinstall Internet Explorer 6. To do this, follow these steps: &lt;table class="list ol"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="number"&gt;1.&lt;/td&gt;&lt;td class="text"&gt;Click &lt;strong class="uiterm"&gt;Start&lt;/strong&gt;, click &lt;strong class="uiterm"&gt;Run&lt;/strong&gt;, type &lt;span class="userInput"&gt;%systemroot%\inf&lt;/span&gt;, and then press Enter. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;2.&lt;/td&gt;&lt;td class="text"&gt; Find the Ie.inf file that is located in Windows\Inf folder.  &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;3.&lt;/td&gt;&lt;td class="text"&gt; Right-click the Ie.inf file, and then click &lt;strong class="uiterm"&gt;Install&lt;/strong&gt;.   &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;4.&lt;/td&gt;&lt;td class="text"&gt;Restart the computer when the file copy process is complete.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 id="tocHeadRef"&gt;&lt;span style="font-size:85%;"&gt;Method to follow if you have Internet Explorer 7&lt;/span&gt;&lt;/h3&gt;&lt;script type="text/javascript"&gt;loadTOCNode(2, 'moreinformation');&lt;/script&gt;If you have Internet Explorer 7, you can repair damaged files or missing registration information in Internet Explorer 7. To do this, follow these steps:&lt;table class="list ol"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="number"&gt;1.&lt;/td&gt;&lt;td class="text"&gt;Start Internet Explorer 7.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;2.&lt;/td&gt;&lt;td class="text"&gt;On the &lt;strong class="uiterm"&gt;Tools&lt;/strong&gt; menu, click &lt;strong class="uiterm"&gt;Internet Options&lt;/strong&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;3.&lt;/td&gt;&lt;td class="text"&gt;On the &lt;strong class="uiterm"&gt;Advanced&lt;/strong&gt; tab, click &lt;strong class="uiterm"&gt;Reset&lt;/strong&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;4.&lt;/td&gt;&lt;td class="text"&gt;In the &lt;strong class="uiterm"&gt;Reset Internet Explorer Settings&lt;/strong&gt; dialog box, click &lt;strong class="uiterm"&gt;Reset&lt;/strong&gt; to confirm.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6044579990001177628?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6044579990001177628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/07/how-to-reinstall-or-repair-internet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6044579990001177628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6044579990001177628'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/07/how-to-reinstall-or-repair-internet.html' title='How to reinstall or repair Internet Explorer in Windows XP'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-6293464086657611156</id><published>2008-07-23T09:59:00.001+06:00</published><updated>2009-06-14T15:54:25.276+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>Performance Tuning Microsoft Indexing Services (win2003/2000)</title><content type='html'>&lt;p&gt;&lt;strong&gt;Why Tune Performance?&lt;/strong&gt;&lt;br /&gt;                   A common question for many Indexing Service users is how often                      the Indexing Service is updated. Is it automatic, manual,                      done every hour, minute, second, do they have to restart the                      service?&lt;br /&gt;                 &lt;br /&gt;                   For all intents and purposes, changes to an indexed document                      are instant and automatic. However, how instant is determined                      by the size of the index and server resources.&lt;br /&gt;                 &lt;br /&gt;                   So, Microsoft have provided a simple tool to allow the administrator                      to set the relative importance of these updates. How important                      it should be for the Index to be current at any point in time                      and how many queries should the server typically expect to                      answer. Of course, you can set both of these to their maximum,                      but this will be at the expense of other services running                      on the server.&lt;/p&gt;                   &lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" alt="" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15"&gt; &lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt; &lt;/td&gt;                       &lt;td&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/indexserv/images/Image01.gif" alt="Figure 1" height="426" width="239" /&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;1. Where to find the Indexing Service Console:&lt;/strong&gt;&lt;br /&gt;                         Click on 'Start', 'Programs', 'Administrative Tools'                            and then 'Computer Management' (shown above in Fig.1)&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt; &lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15"&gt; &lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                 &lt;br /&gt;                 &lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" alt="" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15"&gt; &lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt; &lt;/td&gt;                       &lt;td&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/indexserv/images/Image11.gif" alt="Figure 2" height="491" width="584" /&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;2. Where to find the "Tune Performance"                            settings:&lt;/strong&gt;&lt;br /&gt;                         Right-click on 'Indexing Service' and select 'All Tasks'                            and 'Tune Performance' from the menus that appear (as                            shown in Fig.2 above).&lt;br /&gt;                       &lt;br /&gt;                         Windows 2000 Server users will notice that this option                            is "grayed out" when the service is running.                            To access the "Tune Performance" dialogue,                            they should first stop the Indexing Service by selecting                            "Stop" from the menu.&lt;br /&gt;                       &lt;br /&gt;                       &lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt; &lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15"&gt; &lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                  &lt;br /&gt;                 &lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;                     &lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" alt="" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15"&gt; &lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td height="*" width="15"&gt; &lt;/td&gt;                       &lt;td&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/indexserv/images/Image12.gif" alt="Figure 3" height="358" width="426" /&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;3. The "Indexing Service Usage" dialog                            box:&lt;/strong&gt;&lt;br /&gt;                         The "Indexing Service Usage" dialog box shown                            in Fig.3 above contains a list of presets that determine                            how quickly the catalog is updated when a document is                            added or modified. In most cases, the "Used often,                            but not dedicated to this service" or "Used                            occasionally" options will suffice.&lt;/p&gt;&lt;/td&gt;                       &lt;td height="*" width="15"&gt; &lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td align="left" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_left.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                       &lt;td height="15"&gt; &lt;/td&gt;                       &lt;td align="right" height="15" valign="bottom" width="15"&gt;&lt;img src="http://www.simongibson.com/images/bot_right.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                   &lt;/tbody&gt;&lt;/table&gt;                  &lt;br /&gt;                                      &lt;table class="text" align="center" bgcolor="#eeeeee" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;                        &lt;td align="left" height="15" valign="top" width="15"&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/images/top_left.gif" alt="" height="15" width="15" /&gt;&lt;/p&gt;&lt;/td&gt;                       &lt;td height="15"&gt; &lt;/td&gt;                       &lt;td align="right" height="15" valign="top" width="15"&gt;&lt;img src="http://www.simongibson.com/images/top_right.gif" alt="" height="15" width="15" /&gt;&lt;/td&gt;                     &lt;/tr&gt;                     &lt;tr&gt;                        &lt;td width="15"&gt; &lt;/td&gt;                       &lt;td&gt; &lt;p align="center"&gt;&lt;img src="http://www.simongibson.com/intranet/indexserv/images/Image13.gif" alt="Figure 4" height="366" width="366" /&gt;&lt;/p&gt;                         &lt;p&gt;&lt;strong&gt;5. Customizing Indexing Service usage:&lt;/strong&gt;&lt;br /&gt;                         If you'd prefer to have more control, you can select                            "Customize" from the option list shown in                            Fig.3.&lt;/p&gt;                         &lt;ul&gt;&lt;li&gt; The "Indexing" slider determines how                              quickly the Indexing Service reacts to document changes                              or additions.&lt;/li&gt;&lt;li&gt;The "Querying" slider determines how quickly                              Indexing Service processes queries.&lt;/li&gt;&lt;/ul&gt;                         &lt;p&gt;For example: If your index must be absolutely current                            at all times but not many search queries are typically                            submitted - an "Instant" setting for "Indexing"                            and a "Low load" setting for "Querying"                            will be required.&lt;/p&gt;                         &lt;p&gt;Finally, to ensure that your changes take effect, you                            should restart the Indexing Service.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-6293464086657611156?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/6293464086657611156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/07/performance-tuning-microsoft-indexing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6293464086657611156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/6293464086657611156'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/07/performance-tuning-microsoft-indexing.html' title='Performance Tuning Microsoft Indexing Services (win2003/2000)'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-8191140209117669851</id><published>2008-07-15T11:04:00.000+06:00</published><updated>2008-07-15T11:07:26.342+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft SQL Server'/><title type='text'>SQL Server 2000 installation fails "previous program installation"</title><content type='html'>&lt;h2 class="subTitle" id="tocHeadRef"&gt;SYMPTOMS&lt;/h2&gt;&lt;script type="text/javascript"&gt;loadTOCNode(1, 'symptoms');&lt;/script&gt; When you install SQL Server 2000, this error message may     occur:&lt;br /&gt;&lt;br /&gt;&lt;div class="errormsg"&gt;&lt;span style="color: rgb(255, 102, 102);"&gt; A previous program installation created pending     file operations on the installation machine. You must restart the computer     before running setup.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To work around this problem, depending on     the source of the error, you can use any one of the following methods:   &lt;br /&gt;&lt;br /&gt;&lt;table class="list ol"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="number"&gt;1.&lt;/td&gt;&lt;td class="text"&gt; Restart the computer and see if you are able to run the     setup. If the restart does not help, use the steps that follow. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;2.&lt;/td&gt;&lt;td class="text"&gt;Perform these steps and then run the SQL Server 2000 setup     again:      &lt;table class="list al"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="number"&gt;a. &lt;/td&gt;&lt;td class="text"&gt;Click &lt;b&gt;Start&lt;/b&gt;, and then click &lt;b&gt;Run&lt;/b&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;b. &lt;/td&gt;&lt;td class="text"&gt;In the &lt;b&gt;Open&lt;/b&gt; dialog box, type:&lt;span class="userInput"&gt; "Regedit" (without the quotation       marks) &lt;/span&gt; or &lt;span class="userInput"&gt;"Regedt32" (without the quotation       marks)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;c. &lt;/td&gt;&lt;td class="text"&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NOTE&lt;/b&gt;: Please make sure that you only delete the value mentioned, not       the whole session manager key.&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;d. &lt;/td&gt;&lt;td class="text"&gt;In Registry Editor, expand the following registry       subkey:&lt;b&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;e. &lt;/td&gt;&lt;td class="text"&gt;On the &lt;b&gt;File&lt;/b&gt; menu, click &lt;b&gt;Export&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NOTE&lt;/b&gt;: In Microsoft Windows 2000, click &lt;b&gt;Export Registry File&lt;/b&gt; from the &lt;b&gt;Registry&lt;/b&gt; menu.&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;f. &lt;/td&gt;&lt;td class="text"&gt;In the &lt;b&gt;File name&lt;/b&gt; text box, type:&lt;span class="userInput"&gt; "Session Manager Key" (without the       quotation marks) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;g. &lt;/td&gt;&lt;td class="text"&gt;Click &lt;b&gt;Save&lt;/b&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;h. &lt;/td&gt;&lt;td class="text"&gt;In the right-pane of the &lt;b&gt;Registry Editor&lt;/b&gt; window, right-click &lt;b&gt;PendingFileRenameOperations&lt;/b&gt;. On the shortcut menu that appears, click &lt;b&gt;Delete&lt;/b&gt;. &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;i. &lt;/td&gt;&lt;td class="text"&gt;In the &lt;b&gt;Confirm Value Delete&lt;/b&gt; message dialog box that appears, click &lt;b&gt;Yes&lt;/b&gt;.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;j. &lt;/td&gt;&lt;td class="text"&gt;On the &lt;b&gt;File&lt;/b&gt; menu, click &lt;b&gt;Exit&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NOTE&lt;/b&gt;: In Windows 2000, click &lt;b&gt;Exit&lt;/b&gt; on the &lt;b&gt;Registry&lt;/b&gt; menu.&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;k. &lt;/td&gt;&lt;td class="text"&gt;Restart the computer.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;l. &lt;/td&gt;&lt;td class="text"&gt;Using the Registry Editor, verify that the &lt;b&gt;PendingFileRenameOperations&lt;/b&gt; registry value  is not available.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note&lt;/b&gt;  The &lt;b&gt;PendingFileRenameOperations&lt;/b&gt; registry value may be re-created when you restart the computer.    If the registry values are re-created,   delete the &lt;b&gt;PendingFileRenameOperations&lt;/b&gt; registry value again by completing steps a through j, and then run SQL Server 2000 Setup. Do not restart the computer before you run SQL Server 2000 Setup.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;3.&lt;/td&gt;&lt;td class="text"&gt; Check other control set keys (for example, ControlSet001,     ControlSet002, and so forth) for the same values and also delete them.     &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="number"&gt;4.&lt;/td&gt;&lt;td class="text"&gt; Identify the virtual memory settings on the computer. If     the paging file is too small or if there is no paging file, this error message     may occur at startup: &lt;div class="errormsg"&gt; Limited Virtual Memory Your system     has no paging file or the paging file is too small. &lt;/div&gt; If the error     message occurs, determine the placement of the paging file from the virtual     memory settings and give that drive full permissions for the system account.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-8191140209117669851?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/8191140209117669851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/07/sql-server-2000-installation-fails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8191140209117669851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/8191140209117669851'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/07/sql-server-2000-installation-fails.html' title='SQL Server 2000 installation fails &quot;previous program installation&quot;'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7253715453591326828</id><published>2008-07-07T11:14:00.000+06:00</published><updated>2008-07-07T11:24:02.249+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Tips'/><title type='text'>Block usage of USB Removable Disks</title><content type='html'>&lt;span style="font-weight: bold;font-size:85%;" &gt;To block your computer's ability          to use USB Removable Disks follow these steps:&lt;/span&gt;     &lt;ol&gt;&lt;li&gt;     &lt;p style="margin-right: 30px;"&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;Open Registry Editor. &lt;/span&gt;              &lt;/p&gt;&lt;/li&gt;&lt;li&gt;     &lt;p style="margin-right: 30px;"&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;In Registry Editor, navigate to      the following registry key:&lt;/span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt; HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;     &lt;p style="margin-right: 30px;"&gt;&lt;span style="font-size:85%;"&gt;Locate&lt;/span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt; the   following value (DWORD):     &lt;/span&gt;     &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;          &lt;p style="margin-right: 30px;"&gt;&lt;span style="font-size:85%;"&gt;&lt;i&gt;            Start&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-right: 30px;"&gt;&lt;span style="font-size:85%;"&gt;            and give it a value of 4.&lt;/span&gt;&lt;/p&gt;&lt;ol start="4"&gt;&lt;li&gt;     &lt;p style="margin-right: 30px;"&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt;Close Registry   Editor. You do not need to reboot the computer for changes to apply.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;h2  dir="ltr" style="font-family:verdana;"&gt;         &lt;span style="font-size:85%;"&gt;Enable&lt;/span&gt;&lt;span style="font-size:85%;"&gt;          usage of USB Removable Disks&lt;/span&gt;&lt;/h2&gt;         &lt;p style="margin-right: 30px;"&gt;         &lt;span style="font-size:85%;"&gt;To return to the default          configuration and enable your computer's ability          to use USB Removable Disks follow these steps:&lt;/span&gt;&lt;/p&gt;     &lt;ol&gt;&lt;li&gt;     &lt;p style="margin-right: 30px;"&gt;&lt;span style="font-size:85%;"&gt;Go to the registry path found   above.&lt;/span&gt;     &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;     &lt;ol start="2"&gt;&lt;li&gt;     &lt;p style="margin-right: 30px;"&gt;&lt;span style="font-size:85%;"&gt;Locate&lt;/span&gt;&lt;span style=";font-family:Verdana;font-size:85%;"  &gt; the   following value:     &lt;/span&gt;     &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;     &lt;blockquote&gt;     &lt;p style="margin-right: 30px;"&gt;&lt;span style="font-size:85%;"&gt;&lt;i&gt;Start&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-right: 30px;"&gt;&lt;span style="font-size:85%;"&gt;and give it a value of 3.&lt;/span&gt;&lt;/p&gt;         &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21651778-7253715453591326828?l=almamunbd.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://almamunbd.blogspot.com/feeds/7253715453591326828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://almamunbd.blogspot.com/2008/07/block-usage-of-usb-removable-disks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7253715453591326828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21651778/posts/default/7253715453591326828'/><link rel='alternate' type='text/html' href='http://almamunbd.blogspot.com/2008/07/block-usage-of-usb-removable-disks.html' title='Block usage of USB Removable Disks'/><author><name>Md. Abdullah Al Mamun</name><uri>http://www.blogger.com/profile/09703182599808351092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_-iB4xap-wXY/SYAovTlM_SI/AAAAAAAACfs/a0aBSSRbqRU/S220/mamun.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21651778.post-7826659011514312045</id><published>2008-04-10T13:48:00.000+06:00</published><updated>2008-04-10T14:34:35.372+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Administration'/><title type='text'>Configuring VNC on Fedora Core 6</title><content type='html'>Check what's installed&lt;br /&gt;&lt;br /&gt;First check if you already have them installed on your system, open a terminal and type:&lt;br /&gt;&lt;br /&gt;$ rpm -qa|grep vnc&lt;br /&gt;vnc-server-4.1.1-36&lt;br /&gt;vnc-4.1.1-36&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you get an output something like this then you're all ready, if not you need to install them via yum.&lt;br /&gt;&lt;br /&gt;Open a terminal and type:&lt;br /&gt;$yum install vncserver&lt;br /&gt;&lt;br /&gt;Add a user(s)&lt;br /&gt;&lt;br /&gt;Next we need to add at least 1 VNC user, open the file /etc/sysconfig/vncservers as root and add the information shown:&lt;br /&gt;#vi vncservers&lt;br /&gt;Output will be somethign like this&lt;br /&gt;$ vi /etc/sysconfig/vncservers&lt;br /&gt;&lt;br /&gt;# The VNCSERVERS variable is a list of display:user pairs.&lt;br /&gt;#&lt;br /&gt;# Uncomment the lines below to start a VNC server on display :2&lt;br /&gt;# as my 'myusername' (adjust this to your own).  You will also&lt;br /&gt;# need to set a VNC password; run 'man vncpasswd' to see how&lt;br /&gt;# to do that.&lt;br /&gt;#&lt;br /&gt;# DO NOT RUN THIS SERVICE if your local area network is&lt;br /&gt;# untrusted!  For a secure way of using VNC, see&lt;br /&gt;# &lt;url:http://www.uk.research.att.com/archive/vnc/sshvnc.html&gt;.&lt;br /&gt;&lt;br /&gt;# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.&lt;br /&gt;&lt;br /&gt;# Use "-nohttpd" to prevent web-based VNC clients connecting.&lt;br /&gt;&lt;br /&gt;# Use "-localhost" to prevent remote VNC clients connecting except when&lt;br /&gt;# doing so through a secure tunnel.  See the "-via" option in the&lt;br /&gt;# `man vncviewer' manual page.&lt;br /&gt;&lt;br /&gt;VNCSERVERS="1:bobpeers"&lt;br /&gt;VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"&lt;br /&gt;&lt;br /&gt;The important part is the VNCSERVERS="1:bobpeers", this sets up a users for the vnc server, you can add as many as you like here. The VNCSERVERARGS[1]&lt;br /&gt;line refers to the arguments for user 1, in this case the only user. Geometry sets the size and depth sets the colour depth, you can adjust these to&lt;br /&gt;suit your preferences but in my case the client machine has a resolution of 1024x768 and the depth 16 makes the connection a bit faster since the less&lt;br /&gt;information that needs to be sent the more responsive the session will feel.&lt;br /&gt;&lt;br /&gt;Knowing which port to use&lt;br /&gt;&lt;br /&gt;It's also important to note the session number user as this will tell us which port vncserver will listen on. Remember the Gnome Remote Desktop&lt;br /&gt;asked us to use computername:0 as the connection string, the number needs to be added to 5900 to get the listening port. In this case we need to use&lt;br /&gt;port 5901 since we are using session 1. In the same way we could use any number, for example:&lt;br /&gt;&lt;br /&gt;VNCSERVERS="2000:bobpeers"&lt;br /&gt;VNCSERVERARGS[2000]="-geometry 1024x768 -depth 16"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this case we need to use port 5900+2000 so port 7900.&lt;br /&gt;&lt;br /&gt;Setting a password&lt;br /&gt;&lt;br /&gt;To add some security we need to add a password that must be given before a connection can be established, open a terminal and type:&lt;br /&gt;&lt;br /&gt;$ vncpasswd&lt;br /&gt;
