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

<channel>
	<title>LogicSupport Blog</title>
	<atom:link href="http://logicsupport.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://logicsupport.com/blog</link>
	<description>Just another LogicSupport weblog</description>
	<lastBuildDate>Tue, 20 Jul 2010 12:36:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>UltraMonkey &#8211; Heartbeat Configuration</title>
		<link>http://logicsupport.com/blog/?p=481</link>
		<comments>http://logicsupport.com/blog/?p=481#comments</comments>
		<pubDate>Tue, 20 Jul 2010 12:14:52 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Failover]]></category>
		<category><![CDATA[heartbeat]]></category>
		<category><![CDATA[High Availability]]></category>
		<category><![CDATA[Linux HA]]></category>
		<category><![CDATA[Load balancing]]></category>
		<category><![CDATA[logicsupport review]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[technical support]]></category>
		<category><![CDATA[ultramonkey]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=481</guid>
		<description><![CDATA[Ultra Monkey- Heartbeat Linux HA Solution This one took a touch longer than we anticipated. Though the configurations were set, up and running, testing was a crucial aspect in implementing this H.A solution. Thanks to Nikhil for completing the ultramonkey project successfully. If you are looking to setup a high availability cluster using open source [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><span style="font-size: 24pt; text-decoration: underline;">Ultra Monkey- Heartbeat</span></p>
<p style="text-align: center"><span style="font-size: 24pt; text-decoration: underline;">Linux HA Solution</span></p>
<p style="text-align: justify">This one took a touch longer than we anticipated. Though the configurations were set, up and running, testing was a crucial aspect in implementing this H.A solution. Thanks to Nikhil for completing the ultramonkey project successfully. If you are looking to setup a high availability cluster using open source software, you can contact our team who has the skill and experience to implement this in any cluster.</p>
<p style="text-align: justify">Ultra Monkey is a project to create load balanced and highly available network services. For example a cluster of web servers that appear as a single web server to end-users. The service may be for end-users across the world connected via the internet, or for enterprise users connected via an intranet. Ultra Monkey makes use of the Linux operating system to provide a flexible solution that can be tailored to a wide range of needs. From small clusters of only two nodes to large systems serving thousands of connections per second. The advantage of using a load balancer compared to using  round robin DNS is that it takes care of the load on the web server nodes and tries to direct requests to the node with less load, and it also takes care of connections/sessions. Many web applications (e.g. forum software, shopping carts, etc.) make use of sessions, and if you are in a session on Apache node 1, you would lose that session if suddenly node 2 served your requests. In addition to that, if one of the Apache nodes goes down, the load balancer realizes that and directs all incoming requests to the remaining node which would not be possible with round robin DNS.</p>
<p style="text-align: justify"><span style="font-size: 18pt; text-decoration: underline;">Configuring UltraMonkey in Ubuntu 9.10</span></p>
<p style="text-align: justify">For this setup, we need four nodes (two Apache nodes and two load balancer nodes) and five IP addresses: one for each node and one virtual IP address that will be shared by the load balancer nodes and used for incoming HTTP requests.</p>
<p style="text-align: justify">    * Apache node 1: apachenode1.com (webserver1) &#8211; IP address: 192.168.1.101; Apache document </p>
<p style="text-align: justify">        root: /var/www</p>
<p style="text-align: justify">    * Apache node 2: apacheode2.com (webserver2) &#8211; IP address: 192.168.1.102; Apache document root:  </p>
<p style="text-align: justify">        /var/www</p>
<p style="text-align: justify">    * Load Balancer node 1: loadb1.com (loadb1) &#8211; IP address: 192.168.1.103</p>
<p style="text-align: justify">    * Load Balancer node 2: loadb2.com (loadb2) &#8211; IP address: 192.168.1.104</p>
<p style="text-align: justify">    * Virtual IP Address: 192.168.1.105 (used for incoming requests)</p>
<p style="text-align: justify"><strong>1 Enable IPVS On The Load Balancers</strong></p>
<p style="text-align: justify">First we must enable IPVS on our load balancers. IPVS (IP Virtual Server) implements transport-layer load balancing inside the Linux kernel, so called Layer-4 switching</p>
<p style="text-align: justify">loadb1/loadb2:</p>
<p style="text-align: justify">echo   ip_vs_dh &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_ftp &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_lblc &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_lblcr &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_lc &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_nq &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_rr &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_sed &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_sh &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_wlc &gt;&gt; /etc/modules</p>
<p style="text-align: justify">echo   ip_vs_wrr &gt;&gt; /etc/modules</p>
<p style="text-align: justify">Then we do this:</p>
<p style="text-align: justify">loadb1/loadb2:</p>
<p style="text-align: justify">modprobe   ip_vs_dh</p>
<p style="text-align: justify">modprobe   ip_vs_ftp</p>
<p style="text-align: justify">modprobe   ip_vs</p>
<p style="text-align: justify">modprobe   ip_vs_lblc</p>
<p style="text-align: justify">modprobe   ip_vs_lblcr</p>
<p style="text-align: justify">modprobe   ip_vs_lc</p>
<p style="text-align: justify">modprobe   ip_vs_nq</p>
<p style="text-align: justify">modprobe   ip_vs_rr</p>
<p style="text-align: justify">modprobe   ip_vs_sed</p>
<p style="text-align: justify">modprobe   ip_vs_sh</p>
<p style="text-align: justify">modprobe   ip_vs_wlc</p>
<p style="text-align: justify">modprobe   ip_vs_wrr</p>
<p style="text-align: justify">If you get errors, then most probably your kernel wasn’t compiled with IPVS support, and you need to compile a new kernel with IPVS support (or install a kernel image with IPVS support) now.</p>
<p style="text-align: justify"><strong>2 Install Ultra Monkey On The Load Balancers</strong></p>
<p style="text-align: justify">Loadb1/loadb2: </p>
<p style="text-align: justify">To install Ultra Monkey, we must edit /etc/apt/sources.list now and add these two lines : </p>
<p style="text-align: justify">vi   /etc/apt/sources.list</p>
<p style="text-align: justify">deb <a href="http://www.ultramonkey.org/download/3/">http://www.ultramonkey.org/download/3/</a> sarge main</p>
<p style="text-align: justify">deb-src <a href="http://www.ultramonkey.org/download/3">http://www.ultramonkey.org/download/3</a> sarge main</p>
<p style="text-align: justify">apt-get   update</p>
<p style="text-align: justify">If you encounter update error due to the key. Installing the key with the following steps will fix the update error :</p>
<p style="text-align: justify">vi    /home/key.asc</p>
<p style="text-align: justify">&#8212;&#8211;BEGIN PGP PUBLIC KEY BLOCK&#8212;&#8211;</p>
<p style="text-align: justify">Version: SKS 1.1.0</p>
<p style="text-align: justify">mQGiBEOBaH4RBACmZGWUpGxm6fOtwvrlOu38+cSh6iwdr9KMeNc9+qna8Ena3sEqV2FX9qxj</p>
<p style="text-align: justify">aALm/VnrfbtUu823VpjpiNy7rMjvOl17omDS8v4S6HSBRFuOFxmIoPi4BLDPlTWhfTYZJ3rH</p>
<p style="text-align: justify">Gx/2J3JFjvzkVoM1Htq1jbeZzzqPaHAvGJrnIY+6DwCg7aCaaKfOQzwaVeTq1jhu4zH0MMsD</p>
<p style="text-align: justify">/00cd61uRttV97JBGBDx4Zwp5CBzlnra24kZkHf43iQiexI7JzOx0xvqmbAhz2Aei3UcQXM7</p>
<p style="text-align: justify">c90EaA6FgFJplaRFUcwYJkdxu3+quK0R1EmKmDA50ugiUzu8qt30ODBoJav7ZM8/pq4DvcrT</p>
<p style="text-align: justify">mHLBK/hlKOcAhAVrAqwTztynILPdA/0YRs8GYGIqrAEKfX4/8mhBbCCrD6yJViohbSJ3lRTD</p>
<p style="text-align: justify">jKnMI3vNj/+s6eeT9B1vF8CyEuzZufmEBXL329CnhDRNWaVbTgpBl/GLI1FSXTiDSnDGdReP</p>
<p style="text-align: justify">mF7h5HHlL0IFwWTYl+oiXz5RF2hAOUALIxfX+RQTU6mH/Raz59VH2j7pW7QfU2ltb24gSG9y</p>
<p style="text-align: justify">bWFuIDxob3Jtc0BkZWJpYW4ub3JnPohGBBARAgAGBQJDgW2HAAoJENUjpuZgBiiEx2AAn0dk</p>
<p style="text-align: justify">OefzVqNYB+CmQgOgRjS5A/fnAJsHVdO3i/8NckSuQeJ9z/MyO6iCE4hGBBARAgAGBQJDgW+R</p>
<p style="text-align: justify">AAoJEBcFOQ7mbJuwAGQAoJDv1/chu75aQOIxK5DIQEZ09jRVAJwJtwDyqgdUnd1AEc//OrNZ</p>
<p style="text-align: justify">1kIuwohGBBARAgAGBQJDgXq1AAoJEFPlmVtRVTMKiCYAn1KlsPSPSdWFeAiHf3Qm54gXH9Yp</p>
<p style="text-align: justify">AJ9DIJ4jy1Z9IXfp9i1fVnwKHicZxohGBBARAgAGBQJIQuQaAAoJEPaNV/uq5zQnFQEAn0cZ</p>
<p style="text-align: justify">cG/XW3nZn7XJkmTQ7BhCct7wAKCFofIDm0ecW2LIku5W3ByRpwpTYIhGBBARAgAGBQJJt0yC</p>
<p style="text-align: justify">AAoJEBjYpOLQ7bZNKBsAn15fxX5vOVPxcCjG0MTkKq1KL+6uAJ9NBuT48l0lZrHoodrEK7HJ</p>
<p style="text-align: justify">yBATAIhGBBARAgAGBQJJt2+7AAoJEGykGndDuNbIWVsAnjgyEhiDo5Mje4EbPoX7BYQlYq+5</p>
<p style="text-align: justify">AJ47SpquAYY6zLB6u2lmzQ8DaHbm4IhMBBMRAgAMBQJDlAzMBYMSuV6yAAoJEAgFz2XePm2T</p>
<p style="text-align: justify">uMQAn1fWqSGo1EMJiglmWV+AQypVaz09AKCUH6rBS7sbPboBV2Xy+1I1oZdJMIhmBBMRAgAm</p>
<p style="text-align: justify">BQJDgWi5AhsDBQkSzAMABgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQA8ACPgVBDpew7wCg</p>
<p style="text-align: justify">273GZJS2311rS3/3C8VJa8cM9LwAn3QzO5DFhKN/3XOGI99vxaK+x0zCtCFTaW1vbiBIb3Jt</p>
<p style="text-align: justify">YW4gPGhvcm1zQHZlcmdlLm5ldC5hdT6IRgQQEQIABgUCQ4FthQAKCRDVI6bmYAYohM+7AJ4n</p>
<p style="text-align: justify">3bKIpEaejv/1pbHKLL11fse1DQCfXjFRojcLeRIXXkwvSWBDY/xpGvCIRgQQEQIABgUCQ4Fv</p>
<p style="text-align: justify">jQAKCRAXBTkO5mybsAjoAJ41mgdVAz23U51NJ8cgpWp+KaWYWwCfdE1q/K/DNbx+Pix8kkOL</p>
<p style="text-align: justify">NhQ2T6qIRgQQEQIABgUCQ4F6rwAKCRBT5ZlbUVUzCsoiAJ9GZNyA1XDcCdotS1qTFlp33tnA</p>
<p style="text-align: justify">OQCfWYzBttAL7etuutb4CDJqPwOh4j+IRgQQEQIABgUCSELkGgAKCRD2jVf7quc0J3OXAJ4/</p>
<p style="text-align: justify">nzcUCOYJKNtjYZtPaqVj0cW7BgCfb/Trs4uvS3vooJizh0cJyPQqjymIRgQQEQIABgUCSbdM</p>
<p style="text-align: justify">ggAKCRAY2KTi0O22TVM/AJ4yWpNFyqo67oYYOgr8OqQfMJnijACfbF0TqBE3xJYraCK3MIW5</p>
<p style="text-align: justify">Z1Yr+AuIRgQQEQIABgUCSbdvuwAKCRBspBp3Q7jWyEgjAJ98Zu4GfDiOylz+EDbm2T7P1BE7</p>
<p style="text-align: justify">kQCfbECHQARujttCnPxy2q3vXwL0yrWITAQTEQIADAUCQ5QMzAWDErlesgAKCRAIBc9l3j5t</p>
<p style="text-align: justify">kwVzAJ4wywabgeuYCDMWZuGAsC2hDSFlFQCfQbdeCT0VoUveXfh3e58f8GJV4h6IZgQTEQIA</p>
<p style="text-align: justify">JgUCQ4FofgIbAwUJEswDAAYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEAPAAj4FQQ6XyuEA</p>
<p style="text-align: justify">n3jEhRhdOW2sftDoYVN4yxxwihw6AKDgTV6czvp1mp1n1/3IPRNdzHXqwIhpBBMRAgApAhsD</p>
<p style="text-align: justify">BQkSzAMABgsJCAcDAgQVAggDBBYCAwECHgECF4AFAkOBa6sCGQEACgkQA8ACPgVBDpeYsACg</p>
<p style="text-align: justify">6YLLgyAExRHb7/HoY9kHFsG1W+QAn3D/G7LJJgKv+Ak623nzyhhu/grVuQINBEOBaIoQCADP</p>
<p style="text-align: justify">7yaGkyu2a5A5clGb7sD6nDnKjz/rJrpFkluQ0Rwz73KxajjLzQeNGp2EV91UDRXbg1NCkf2E</p>
<p style="text-align: justify">F97maJO00SYR7ZbQdyBKORgQZuLU/aSJn8UR15ChsuWxe874p/QGylzwEea/JVJUltud3Aep</p>
<p style="text-align: justify">Dm8sB1nErPzz++iDZSFSdGqM5ltcv3geP0Ax+SDNqe7HWdmgv/EKaFgRUN62yS05V+HWylN+</p>
<p style="text-align: justify">wuj/SJJiKUhtiZQ26NiawQNDUcxUPgb8oYgGyZRL1GcGWs45RADiEUNSHifqm+CcRSkQFXex</p>
<p style="text-align: justify">GFHDDnHKFFnyVHKaWrwG6Ty9TFlx7+jo8gwDyphBLV0nsTYQcJvjAAMFCACSMCA/aewrLvVo</p>
<p style="text-align: justify">C63o90CKgftkpwt53lp/1vqBvRzuZlCTLQ5ijbA2Pn/9oqPfWUqeIObr2YCRlpwnw5jfOKah</p>
<p style="text-align: justify">wknlujA9nAzruqA2xwkDp2jpyEOoh1meDhbeaPa8lx4A2sxYwfSMCDDZ3Jwm/c0lFdhmlUEA</p>
<p style="text-align: justify">dm9tnXL024evFr5BJVmmgbQsHErSwfyI6CDWjVXbySO60j3K3GVIvTm55iB0rlsMjwhRD4Sy</p>
<p style="text-align: justify">5PO5aaCktmICqBtSDBHZjje7PWPKN92ZhHr24g11Xc3u42U1bQ+J9oNmuTJMI20NcR0lgJNR</p>
<p style="text-align: justify">d8oQvqHyU7B5mRMBalCKNDdtVLbTuh2Cs6vrS6jFiE8EGBECAA8FAkOBaIoCGwwFCRLMAwAA</p>
<p style="text-align: justify">CgkQA8ACPgVBDpfxKACeIfmJdm0wyb6FNyfP9/yYlSak1T8AoJjH/Pc+Uwq5T0kUEdcurSEm</p>
<p style="text-align: justify">MZd1</p>
<p style="text-align: justify">=5NNR</p>
<p style="text-align: justify">&#8212;&#8211;END PGP PUBLIC KEY BLOCK&#8212;&#8211;</p>
<p style="text-align: justify">Run the following command to fetch the missing public key</p>
<p style="text-align: justify">gpg   &#8211;import   /home/key.asc</p>
<p style="text-align: justify">and add the key to the keyring</p>
<p style="text-align: justify">apt-key   add   /root/.gnupg/pubring.gpg</p>
<p style="text-align: justify">Then do :</p>
<p style="text-align: justify">apt-key   update</p>
<p style="text-align: justify">apt-get   update</p>
<p style="text-align: justify">Install UltraMonkey</p>
<p style="text-align: justify">apt-get   install   ultramonkey</p>
<p style="text-align: justify">dpkg-reconfigure   ipvsadm</p>
<p style="text-align: justify">Answer as follows:</p>
<p style="text-align: justify">Do you want to automatically load IPVS rules on boot?</p>
<p style="text-align: justify">No</p>
<p style="text-align: justify">Select a daemon method.</p>
<p style="text-align: justify">None</p>
<p style="text-align: justify"><strong>3 Enable Packet Forwarding On The Load Balancers</strong></p>
<p style="text-align: justify">The load balancers must be able to route traffic to the Apache nodes. Therefore we must enable packet forwarding on the load balancers. Add the following lines to /etc/sysctl.conf:</p>
<p style="text-align: justify">vi   /etc/sysctl.conf</p>
<p style="text-align: justify"># Enables packet forwarding</p>
<p style="text-align: justify">net.ipv4.ip_forward = 1</p>
<p style="text-align: justify">Then do this:</p>
<p style="text-align: justify">sysctl    –p</p>
<p style="text-align: justify"><strong>4 Configure heartbeat And ldirectord</strong></p>
<p style="text-align: justify">Now we have to create three configuration files for heartbeat. They must be identical on loadb1 and loadb2</p>
<p style="text-align: justify">vi   /etc/ha.d/ha.cf</p>
<p style="text-align: justify">logfacility        local0</p>
<p style="text-align: justify">bcast        eth0                # Linux</p>
<p style="text-align: justify">mcast eth0 225.0.0.1 694 1 0</p>
<p style="text-align: justify">auto_failback off</p>
<p style="text-align: justify">node        loadb1.com</p>
<p style="text-align: justify">node        loadb2.com</p>
<p style="text-align: justify">respawn hacluster /usr/lib/heartbeat/ipfail</p>
<p style="text-align: justify">apiauth ipfail gid=haclient uid=hacluster</p>
<p style="text-align: justify">Important: As nodenames we must use the output of uname  –n on loadb1 and loadb2.</p>
<p style="text-align: justify">vi   /etc/ha.d/haresources</p>
<p style="text-align: justify">loadb1.com        \</p>
<p style="text-align: justify">        ldirectord::ldirectord.cf \</p>
<p style="text-align: justify">        LVSSyncDaemonSwap::master \</p>
<p style="text-align: justify">        IPaddr2::192.168.1.105/24/eth0/192.168.1.255</p>
<p style="text-align: justify">The first word is the output of uname –n on loadb1, no matter if you create the file on loadb1 or loadb2! After IPaddr2 we put our virtual IP address 192.168.1.105.</p>
<p style="text-align: justify">vi   /etc/ha.d/authkeys</p>
<p style="text-align: justify">auth 3</p>
<p style="text-align: justify">3 md5 somerandomstring</p>
<p style="text-align: justify">somerandomstring is a password which the two heartbeat daemons on loadb1 and loadb2 use to authenticate against each other. </p>
<p style="text-align: justify">/etc/ha.d/authkeys should be readable by root only, therefore we do this:</p>
<p style="text-align: justify">Chmod   600   /etc/ha.d/authkeys</p>
<p style="text-align: justify">ldirectord is the actual load balancer. We are going to configure the two load balancers (loadb1.com and loadb2.com) in an active/passive setup, which means we have one active load balancer, and the other one is a hot-standby and becomes active if the active one fails. To make it work, we must create the ldirectord configuration file /etc/ha.d/ldirectord.cf which again must be identical on loadb1 and loadb2.</p>
<p style="text-align: justify">vi   /etc/ha.d/ldirectord.cf</p>
<p style="text-align: justify">checktimeout=10</p>
<p style="text-align: justify">checkinterval=2</p>
<p style="text-align: justify">autoreload=no</p>
<p style="text-align: justify">logfile=”local0”</p>
<p style="text-align: justify">quiescent=yes</p>
<p style="text-align: justify">virtual=192.168.1.105:80</p>
<p style="text-align: justify">        real=192.168.1.101:80 gate</p>
<p style="text-align: justify">        real=192.168.1.102:80 gate</p>
<p style="text-align: justify">        fallback=127.0.0.1:80 gate</p>
<p style="text-align: justify">        service=http</p>
<p style="text-align: justify">        request=”ldirector.html”</p>
<p style="text-align: justify">        receive=”Test Page”</p>
<p style="text-align: justify">        scheduler=rr</p>
<p style="text-align: justify">        protocol=tcp</p>
<p style="text-align: justify">        checktype=negotiate</p>
<p style="text-align: justify">Afterwards we create the system startup links for heartbeat and remove those of ldirectord because ldirectord will be started by the heartbeat daemon:</p>
<p style="text-align: justify">update-rc.d   heartbeat   start   75   2   3   4   5  .   stop   05   0  1  6 .</p>
<p style="text-align: justify">update-rc.d   -f   ldirectord   remove</p>
<p style="text-align: justify">Finally we start heartbeat (and with it ldirectord):</p>
<p style="text-align: justify">/etc/init.d/ldirectord   stop</p>
<p style="text-align: justify">If you are getting the following error while stopping ldirectord service : </p>
<p style="text-align: justify">Can’t locate Socket6.pm in @INC (@INC contains: /etc/perl</p>
<p style="text-align: justify">/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5</p>
<p style="text-align: justify">/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10</p>
<p style="text-align: justify">/usr/local/lib/site_perl .) at /usr/sbin/ldirectord line 815.</p>
<p style="text-align: justify">Run : </p>
<p style="text-align: justify">apt-get install libsocket6-perl</p>
<p style="text-align: justify">/etc/init.d/heartbeat   start</p>
<p style="text-align: justify"><strong>5 Test the Load Balancers</strong></p>
<p style="text-align: justify">ip   addr   sh   eth0</p>
<p style="text-align: justify">The active load balancer should list the virtual IP address (192.168.1.105):</p>
<p style="text-align: justify">2: eth0: &lt;BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc pfifo_fast qlen 1000</p>
<p style="text-align: justify">    link/ether 00:16:3e:40:18:e5 brd ff:ff:ff:ff:ff:ff</p>
<p style="text-align: justify">    inet 192.168.1.103/24 brd 192.168.1.255 scope global eth0</p>
<p style="text-align: justify">    inet 192.168.1.105/24 brd 192.168.1.255 scope global secondary eth0</p>
<p style="text-align: justify">The hot-standby should show this:</p>
<p style="text-align: justify">2: eth0: &lt;BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc pfifo_fast qlen 1000</p>
<p style="text-align: justify">    link/ether 00:16:3e:50:e3:3a brd ff:ff:ff:ff:ff:ff</p>
<p style="text-align: justify">    inet 192.168.1.104/24 brd 192.168.1.255 scope global eth0</p>
<p style="text-align: justify">ldirectord   ldirectord.cf   status</p>
<p style="text-align: justify">Output on the active load balancer:</p>
<p style="text-align: justify">ldirectord for /etc/ha.d/ldirectord.cf is running with pid: 1455</p>
<p style="text-align: justify">Output on the hot-standby:</p>
<p style="text-align: justify">ldirectord is stopped for /etc/ha.d/ldirectord.cf</p>
<p style="text-align: justify">ipvsadm   -L   –n</p>
<p style="text-align: justify">Output on the active load balancer:</p>
<p style="text-align: justify">IP Virtual Server version 1.2.1 (size=4096)</p>
<p style="text-align: justify">Prot LocalAddress:Port Scheduler Flags</p>
<p style="text-align: justify">  -&gt; RemoteAddress:Port           Forward Weight ActiveConn InActConn</p>
<p style="text-align: justify">TCP  192.168.0.105:80 rr</p>
<p style="text-align: justify">  -&gt; 192.168.0.101:80             Route   0      0          0</p>
<p style="text-align: justify">  -&gt; 192.168.0.102:80             Route   0      0          0</p>
<p style="text-align: justify">  -&gt; 127.0.0.1:80                 Local   1      0          0</p>
<p style="text-align: justify">Output on the hot-standby:</p>
<p style="text-align: justify">IP Virtual Server version 1.2.1 (size=4096)</p>
<p style="text-align: justify">Prot LocalAddress:Port Scheduler Flags</p>
<p style="text-align: justify">  -&gt; RemoteAddress:Port           Forward Weight ActiveConn InActConn</p>
<p style="text-align: justify">/etc/ha.d/resource.d/LVSSyncDaemonSwap   master   status</p>
<p style="text-align: justify">Output on the active load balancer:</p>
<p style="text-align: justify">master running</p>
<p style="text-align: justify">(ipvs_syncmaster pid: 1591)</p>
<p style="text-align: justify">Output on the hot-standby:</p>
<p style="text-align: justify">master stopped</p>
<p style="text-align: justify"><strong>6 Configure The Two Apache Nodes</strong></p>
<p style="text-align: justify">Finally we must configure our Apache cluster nodes apachenode1.com and apachenode1.com to accept requests on the virtual IP address 192.168.1.105.</p>
<p style="text-align: justify">apt-get    install    iproute</p>
<p style="text-align: justify">Add the following to /etc/sysctl.conf:</p>
<p style="text-align: justify">vi    /etc/sysctl.conf</p>
<p style="text-align: justify"># Enable configuration of arp_ignore option</p>
<p style="text-align: justify">net.ipv4.conf.all.arp_ignore = 1</p>
<p style="text-align: justify"># When an arp request is received on eth0, only respond if that address is</p>
<p style="text-align: justify"># configured on eth0. In particular, do not respond if the address is</p>
<p style="text-align: justify"># configured on lo</p>
<p style="text-align: justify">net.ipv4.conf.eth0.arp_ignore = 1</p>
<p style="text-align: justify"># Ditto for eth1, add for all ARPing interfaces</p>
<p style="text-align: justify">#net.ipv4.conf.eth1.arp_ignore = 1</p>
<p style="text-align: justify"># Enable configuration of arp_announce option</p>
<p style="text-align: justify">net.ipv4.conf.all.arp_announce = 2</p>
<p style="text-align: justify"># When making an ARP request sent through eth0 Always use an address that</p>
<p style="text-align: justify"># is configured on eth0 as the source address of the ARP request.  If this</p>
<p style="text-align: justify"># is not set, and packets are being sent out eth0 for an address that is on</p>
<p style="text-align: justify"># lo, and an arp request is required, then the address on lo will be used.</p>
<p style="text-align: justify"># As the source IP address of arp requests is entered into the ARP cache on</p>
<p style="text-align: justify"># the destination, it has the effect of announcing this address.  This is</p>
<p style="text-align: justify"># not desirable in this case as adresses on lo on the real-servers should</p>
<p style="text-align: justify"># be announced only by the linux-director.</p>
<p style="text-align: justify">net.ipv4.conf.eth0.arp_announce = 2</p>
<p style="text-align: justify"># Ditto for eth1, add for all ARPing interfaces</p>
<p style="text-align: justify">#net.ipv4.conf.eth1.arp_announce = 2</p>
<p style="text-align: justify">Then run this: </p>
<p style="text-align: justify">sysctl    -p</p>
<p style="text-align: justify">Add this section for the virtual IP address to /etc/network/interfaces:</p>
<p style="text-align: justify">vi    /etc/network/interfaces</p>
<p style="text-align: justify">auto lo:0</p>
<p style="text-align: justify">iface lo:0 inet static</p>
<p style="text-align: justify">  address 192.168.0.105</p>
<p style="text-align: justify">  netmask 255.255.255.255</p>
<p style="text-align: justify">  pre-up sysctl -p &gt; /dev/null</p>
<p style="text-align: justify">Then run this:</p>
<p style="text-align: justify">ifup   lo:0</p>
<p style="text-align: justify">Finally we must create the file ldirector.html. This file is requested by the two load balancer nodes repeatedly so that they can see if the two Apache nodes are still running. I assume that the document root of the main apache web site on webserver1 and webserver2 is /var/www, therefore we create the file /var/www/ldirector.html:</p>
<p style="text-align: justify">vi    /var/www/ldirector.html</p>
<p style="text-align: justify">Test Page</p>
<p style="text-align: justify">7 Further Testing</p>
<p style="text-align: justify">You can now access the web site that is hosted by the two Apache nodes by typing <a href="http://192.168.1.105">http://192.168.1.105</a> in your browser.</p>
<p style="text-align: justify">Now stop the Apache on either webserver1 or webserver2. You should then still see the web site on <a href="http://192.168.1.105">http://192.168.1.105</a> because the load balancer directs requests to the working Apache node. Of course, if you stop both Apaches, then your request will fail.</p>
<p style="text-align: justify">Now let’s assume that loadb1 is our active load balancer, and loadb2 is the hot-standby. Now stop heartbeat on loadb1:</p>
<p style="text-align: justify">loadb1:</p>
<p style="text-align: justify">/etc/init.d/heartbeat    stop</p>
<p style="text-align: justify">Wait a few seconds, and then try <a href="http://192.168.1.105">http://192.168.1.105</a> again in your browser. You should still see your web site because loadb2 has taken the active role now.</p>
<p style="text-align: justify">Now start heartbeat again on loadb1:</p>
<p style="text-align: justify">/etc/init.d/heartbeat    start</p>
<p style="text-align: justify">loadb2 should still have the active role.</p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=481</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installation of Plesk in CloudLinux</title>
		<link>http://logicsupport.com/blog/?p=476</link>
		<comments>http://logicsupport.com/blog/?p=476#comments</comments>
		<pubDate>Tue, 06 Jul 2010 03:32:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[cloudlinux]]></category>
		<category><![CDATA[how to install cloudlinux]]></category>
		<category><![CDATA[Linux HA]]></category>
		<category><![CDATA[logicsupport review]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[technical support]]></category>
		<category><![CDATA[webhosting support]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=476</guid>
		<description><![CDATA[Glad to submit the result of our recent workshop with CloudLinux. The key is to disable SELinux. 1.Login to the CloudLinux as root. # uname -i i586 2.Check SELinux status, we have it disabled but still&#8230; execute &#8220;getenforce&#8221; it should say &#8220;Disabled&#8221; or &#8220;Not enforcing&#8221;. If it&#8217;s enforcing, disable it by executing: &#8220;setenforce 0&#8243;. # [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">Glad to submit the result of our recent workshop with CloudLinux. The key is to disable SELinux.</span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">1.Login to the CloudLinux as root.</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># uname -i</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong>i586</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">2.Check SELinux status, we have it disabled but still&#8230; execute &#8220;getenforce&#8221; it should say &#8220;Disabled&#8221; or &#8220;Not enforcing&#8221;. If it&#8217;s enforcing, disable it by executing: &#8220;setenforce 0&#8243;.</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># getenforce</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong>Disabled</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">3. Update yum</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># yum update &#8211;exclude=xorg* &#8211;exclude=kernel* &#8211;exclude=cloudlinux-release*</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">4.Change your working directory to where you want to download the Auto-installer utility:</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># mkdir /root/plesk</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># cd /root/plesk</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">5.Once done, download the Auto-installer utility that suits your operating system  and save it on your server&#8217;s hard drive :</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># wget </strong></em></span></span><span style="color: #000080;"><span style="text-decoration: underline;"><a href="http://download1.parallels.com/Plesk/PPP9/CloudLinux5/parallels_installer_v3.6.0_build100407.15_os_CloudLinux_5_i386"><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong>http://download1.parallels.com/Plesk/PPP9/CloudLinux5/parallels_installer_v3.6.0_build100407.15_os_CloudLinux_5_i386</strong></em></span></span></a></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">6 Set the execution permission for Auto-installer:</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># chmod +x parallels_installer_v3.6.0_build100407.15_os_CloudLinux_5_i386</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">7.Run the Auto-installer:</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;"><em><strong># ./parallels_installer_v3.6.0_build100407.15_os_CloudLinux_5_i386</strong></em></span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">8.Read installation notes displayed on the screen and type &#8216;n&#8217; to proceed to the next screen. Press ENTER.</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">Select the product versions that you want to install: type the number corresponding to the product version you need and press ENTER, then type &#8216;n&#8217; and press ENTER to continueThe packages will be downloaded and installed. When the installation is finished, Parallels Plesk Panel will start automatically.</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">9.Now to complete the initial configuration, log in to the Parallels Plesk Panel running on your host at <em><strong>https://machine.domain.name:8443/</strong></em> or <em><strong>https://IP-address:8443/</strong></em>. Use the username &#8216;<em><strong>admin</strong></em>&#8216; and password &#8216;<em><strong>setup</strong></em>&#8216; (both are case sensitive). For security reasons, change the password upon initial login.</span></span></p>
<p><span style="font-family: Arial,sans-serif;"><span style="font-size: small;">Next week, we will have something interesting to show in the Linux HA segment.<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=476</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LVE &#8211; Lightweight Virtual Environment</title>
		<link>http://logicsupport.com/blog/?p=468</link>
		<comments>http://logicsupport.com/blog/?p=468#comments</comments>
		<pubDate>Mon, 28 Jun 2010 12:01:26 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[cloudlinux]]></category>
		<category><![CDATA[expertise]]></category>
		<category><![CDATA[logicsupport review]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[webhosting support]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=468</guid>
		<description><![CDATA[LVE is a kernel level technology developed by the CloudLinux team. The technology has common roots with container based virtualization. Yet, it is lightweight, and transparent. The goal of LVE is to make sure that no single web site can bring down your web server. Today, a single site can consume all CPU resources, IO [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">
<div id="_mcePaste" style="text-align: left;"><span style="font-family: Arial;"><span style="font-size: large;"><br />
</span></span></div>
<div style="text-align: center;"><span style="font-family: Arial;"><br />
</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">LVE is a kernel level technology developed by the CloudLinux team. The technology has common </span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">roots with container based virtualization. Yet, it is lightweight, and transparent. The goal of LVE is to </span></span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">make sure that no single web site can bring down your web server.</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">Today, a single site can consume all CPU resources, IO resources or apache processes &#8212; and bring the </span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">server to the halt. LVE prevents that.</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">It is done via collaboration of apache modules and kernel. </span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">mod_hostinglimits is the apache module that:</span></span></div>
<div><span style="font-size: 13.1944px;"><span style="font-family: Arial;"><br />
</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;">1 . Detects VirtualHost from which the request came.</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">2 . Detects if it was meant for cgi or PHP script.</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">3 . Switches apache process used to serve that request into LVE for the user determined via</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">SuexecUserGroup for that virtual host.</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">4 . Lets apache to serve the request.</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">5 . Removes apache process from user&#8217;s LVE.</span></div>
<div><span style="font-family: Arial;"><br />
</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">The kernel makes sure that all LVEs get fair share of the server&#8217;s resources. This means, for example, </span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">that 20 apache processes serving a heavy site will use the same amount of CPU as one apache process </span></span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">serving a smaller site.</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">Each LVE limits amount of entry processes (Apache processes entering into LVE) to prevent single </span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">site exhausting all apache processes. If the limit is reached &#8212; mod_hostinglimits will not be able to </span></span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">place apache process into LVE, and will return error code 503 (server busy).</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">By using isolation technology to create lightweight virtual environment (LVE), CloudLinux can:</span></div>
<div><span style="font-family: Arial;"><br />
</span></div>
<div id="_mcePaste" style="text-align: left;"><span style="font-size: small;"><span style="font-family: Arial;">1. Limit the amount of resources one site can use so no single account can slow or take down a whole server</span></span><span style="font-family: Arial;"><br />
</span><span style="font-size: small;"><span style="font-family: Arial;">2. Provide better security by running all processes under the correct user and in their own container</span></span><span style="font-family: Arial;"><br />
</span><span style="font-size: small;"><span style="font-family: Arial;">3. Protect the server from hackers and poorly written scripts that drain resources for other tenants</span></span></div>
<div id="_mcePaste" style="text-align: left;"><span style="font-family: Arial;"><br />
</span></div>
<div style="text-align: center;"><span style="font-family: Georgia; font-size: large;"><span style="font-family: Arial;">Installation process of LVE</span></span><span style="font-family: Arial;"><br />
<span style="font-size: 13.1944px;"> </span></span></div>
<div style="text-align: left;"><span style="font-family: Arial;"><br />
</span></div>
<div style="text-align: left;"><span style="font-size: 13.1944px;"><span style="font-family: Arial;">In order to install LVE services , we need to setup CloudLinux. We can either install CloudLinux by </span></span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">downloading it or migrating it from CentOS 5.</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-size: 13.1944px;"><span style="font-family: Arial;">You can download latest ISO for CloudLinux CD and DVDs from: </span></span></div>
<div><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-size: 13.1944px;"><span style="font-family: Arial;">x86_64 version: http://repo.cloudlinux.com/cloudlinux/5.5/iso/x86_64</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;">i386 version: http://repo.cloudlinux.com/cloudlinux/5.5/iso/i386</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">Version 5.4 is available here:</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">x86_64 version: http://repo.cloudlinux.com/cloudlinux/5.4/iso/x86_64</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">i386 version: http://repo.cloudlinux.com/cloudlinux/5.4/iso/i386</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">Switch From CentOS to CloudLinux today</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">It is easy to switch from CentOS 5 to CloudLinux. The process takes a few minutes and replaces just a</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">handful of RPMs.</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">Get &lt;activation_key&gt; either by getting trial subscription or by purchasing subscription,</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">Download script: centos2cl</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">Execute sh centos2cl -k &lt;activation_key&gt;</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div id="_mcePaste"><span style="font-family: Arial;">Reboot</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;"># wget http://repo.cloudlinux.com/cloudlinux/sources/cln/centos2cl</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"># sh centos2cl -k &lt;activation_key&gt;</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"># reboot</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">Enabling Apache LVE support</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">If you have no control panel, or you run one of the following control panels: Webmin, Plesk, </span><span style="font-size: 13.1944px;"><span style="font-family: Arial;">Interworx, do</span></span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;"># yum install mod_hostinglimits</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">If you run apache with worker MPM, do:</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;"># yum install mod_sucgid</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;">If you have cPanel, use install-lve script :</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;"># wget http://repo.cloudlinux.com/cloudlinux/sources/install-lve</span></div>
<div id="_mcePaste"><span style="font-family: Arial;"><br />
</span></div>
<div><span style="font-family: Arial;"># sh install-lve -a</span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=468</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Apache tuning : Beyond the configuration files</title>
		<link>http://logicsupport.com/blog/?p=466</link>
		<comments>http://logicsupport.com/blog/?p=466#comments</comments>
		<pubDate>Thu, 06 May 2010 10:49:49 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=466</guid>
		<description><![CDATA[When we think of apache tuning, our focus go straight to httpd.conf. How do I tune the configuration file to achieve that perfect setting? Wrong approach. An inverted pyramid approach is the best way to analyze factors that bring in maximum performance out of your web server. There are various factors that affect the performance [...]]]></description>
			<content:encoded><![CDATA[<p>When we think of apache tuning, our focus go straight to httpd.conf. How do I tune the configuration file to achieve that perfect setting? Wrong approach.</p>
<p>An inverted pyramid approach is the best way to analyze factors that bring in maximum performance out of your web server. There are various factors that affect the performance of a server application and fine tuning the configuration file should be reached only after considering the parameters that affect it externally.</p>
<p>Processor/CPU :</p>
<p>If you install a default configuration of apache on 386 and P4 dual cores, the performance difference is huge. Therefore, whenever possible give your server, the best equipment to function. If the cost model permits, run apache on a dedicated server. Running it along with other applications will affect its performance. There are control panels that allow you to adopt this clustered model.</p>
<p>RAM : </p>
<p>Having considered the processor capabilities, the next factor that stands out is RAM. RAM is precious, it is the real-estate on server. Every process that runs is battling away to utilize RAM in order to complete its task. So, if you have many static pages to serve, performance is higher if you allow apache to cache these in RAM, thereby avoiding read/write access to the harddisk. Disk or RAM, caching definitely helps to improve performance avoiding continuous read/write. Use mod-cache if you are short of RAM or mod_mem_cache at best if you have enough RAM to play with.</p>
<p>Hard drive :</p>
<p>Hard drive is next in list. No doubt, we need to use a disk as fast as possible and if possible a hardware RAID, improving the speed of files served. Conclusion is that the entire hardware contributes to how quickly and efficiently the apache calls are processed. </p>
<p>Nature of files served :</p>
<p>We need to keep in mind that the type of files served are a determining factor. If apache needs to do a lot of <em>thinking</em> before a file is served, you are asking it to again utilize more cpu and memory. This means, the more dynamic your web pages, the more resource intensive it is. So, consider what is best and really essential before deciding the trade off.</p>
<p>Server environment :</p>
<p>Even if you run apache as a dedicated server, there are plenty of other applications that come along with a default installation. Be sure to disable it. For instance, NFS and print server and so on and generally enabled by default. You have to realize each of these small processes take up enough memory to eventually run the RAM out. Disable every single process that you don’t require to serve the web pages. </p>
<p>Don’t use the system for anything else! </p>
<p>Yes, don’t login to the system unless it is really essential to login. Use automated scripts to alert you of changes happening on the server. Decide the interval for doing such checks carefully. It is recommended not to login frequently, test compile new applications, other tests that involve editing/moving files around or check the load on the server every other time of day. All these activities will affect the web serving performance. If necessary, employ remote plugins and set  an interval for the checks without compromising the server resources.</p>
<p>Keep the software versions up to date :</p>
<p>Newer stable versions of any software are more likely to perform better. So, whenever possible upgrade your server to the latest stable version with proper planning. Most control panels that help hosting automation do these updates automatically. Still, it is always good to cross check.</p>
<p>Apache application environment :</p>
<p>You make compromises on the modules to configure along with your initial compilation of apache. However, these compromises can prove costly in the long run if not carefully selected. Many custom scripts that support this build usually configures it with default settings. It is extremely important to understand the environment the web pages are going to be served before it is decided which modules should be compiled along with the initial build. </p>
<p>An important factor to consider during the build is to decide whether to compile a given module as static or dynamic. For once, we know dynamic is always convenient, but it utilizes more cpu resource each time it is loaded on and off the memory. This takes a performance hit. So, if you think you can accommodate a commonly and most frequently used module, compiling it as static makes more sense. In all other cases, compile the module as shared.</p>
<p>However, choose the static modules carefully as it eats up into the server RAM. When multiple child processes run serving the same type of module, consider the amount of memory utilized. Even though, statically loaded modules are served faster, you should enable it carefully so that it doesn’t create a RAM crunch which may keep the processes in queue and eventually degrade performance.</p>
<p>Configuring the httpd.conf file :</p>
<p>a) Remove everything you don’t need!</p>
<p>Yes, it is normal practice leave everything we don’t utilize as ‘comments’. Not only is it disruptive and confusing, it is unnecessarily adding to unused data working against the principle of optimization. </p>
<p>b) Make the configuration simple</p>
<p>By trying to achieve high performance we tend to add a host of features without looking at the conflicting nature of these settings. These eventually add to additional cpu cycles, affecting performance.</p>
<p>c) MaxClients :</p>
<p>MaxClients setting determines how many simultaneous connections Apache can handle. A very low MaxClients value, on a high traffic server, below par with what the server can handle will definitely affect the performance of your web server. This puts a lot of requests in wait and if the processor and the RAM allows these requests to be served simultaneously it should be allowed. Study the maximum number of requests expected before changing this setting.</p>
<p>d) ServerSignature Off, Server status and info : </p>
<p>Disable these features as they add additional overhead to your server by serving these requests unless you are monitoring, deploying applications or testing  an error.</p>
<p>e) HostnameLookups : </p>
<p>HostnameLookups will slow down the server as it tries to lookup hostname information of a client IP each time it requests a page. It is not necessary as you always have the option to process the logs later for more info, even if you disable it. Turn it off by using “HostnameLookups off” directive.</p>
<p>f) FollowSymLinks :</p>
<p>If you turn this on, apache checks for symlinks for each directory served in the path. There is additional process calls involved for each, so if you really don’t need to use symlinks to serve your web pages, turn off this feature for the web directory.</p>
<p>g) Custom settings for DirectoryIndex :</p>
<p>This decides which page should be ( the index page ) displayed in order of priority when someone accesses a web directory. As far as possible, try to avoid fancy custom pages that override the main configuration. Let the server use default settings. index.html and index.php are the standard.</p>
<p>h) Put all CGI components into one single directory and configure it so, in order to prevent apache from spending time to determine how it should be handled.</p>
<p>Server Logs :</p>
<p>This is an area which takes a lot of disk read/write. It is not recommended to disable it, but you will be surprised to see the increased results in performance when you disable logging. For security reasons, you may not be able to do this, so at least make sure you have disabled hostname lookup.</p>
<p>.htaccess files :</p>
<p>.htaccess provides everyone a convenient way to make changes specific to a user account. This has several drawbacks though. Each time the server needs to check the .htaccess file in the requested directory and all its parent directory for the configurations to decide which overrides the other. This is a time consuming process and hence it will definitely affect the performance. Therefore, as far as possible, include the changes you require in the main configuration file itself.</p>
<p>.htaccess can be disabled by using AllowOverride None in the main configuration file, the directive itself imply the meaning.</p>
<p>I think the above list comprehensively covers most areas that affect server performance. When you talk about the apache server in itself, it is unfortunate that the main reasons for server slowness are actually factors that are outside these configuration. In most cases, apache spends time waiting to serve the data because a script or a dynamic content which is supposed to give the data is taking time to execute. So, changes like CGI to mod_perl increases the overall speed of execution and drastically improve performance to as much as 70%. It is interesting to note that once the data is released, it takes only milliseconds for Apache to serve the request <img src='http://logicsupport.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=466</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Ogg Vorbis?</title>
		<link>http://logicsupport.com/blog/?p=461</link>
		<comments>http://logicsupport.com/blog/?p=461#comments</comments>
		<pubDate>Wed, 05 May 2010 14:59:48 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[patent]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=461</guid>
		<description><![CDATA[Ogg Vorbis is an open source audio codec which is used for compressing and decompressing audio files. It is an alternative to MP3 media codecs patented by Fraunhofer IIS, AT&#38;T-Bell Labs, Thomson-Brandt, CCETT, and others. Ogg Theora is the open source alternative to H.264 administered by MPEG LA. In 2001, now director of the Xiph.org [...]]]></description>
			<content:encoded><![CDATA[<p>Ogg Vorbis is an open source audio codec which is used for compressing and decompressing audio files. It is an alternative to MP3 media codecs patented by Fraunhofer IIS, AT&amp;T-Bell Labs, Thomson-Brandt, CCETT, and others. Ogg Theora is the open source alternative to H.264 administered by MPEG LA.</p>
<p>In 2001, now director of the Xiph.org Foundation, worked for Green Witch, an online company that competed with Music Match. Fraunhofer, one of the MP3 patent holders with Thompson, bought a stake in Music Match and charged Green Witch $60m to license MP3 for the year. Green Witch couldn&#8217;t pay and was sold to a company that owned another web radio provider, iCAST. Ogg Vorbis was created to escape the MP3 noose and avoid a repeat of history.</p>
<p>There are several software application providers who use Ogg Theora as its video codec. Opera 10.5 which offers HTML5 video is one of them. The popularity of this codec is increasing since license fee for MP3 is controlled by a group of companies and for several businesses, an open source version makes a better business sense.</p>
<p>If you want MP3, you have to pay Thompson, which helped create MP3 along with three other companies. Decoding costs $0.75 for a patent and software license per unit, but if you want to encode the media &#8211; which, of course, you have to &#8211; then that&#8217;s priced at up to $5.00 per unit. </p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=461</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Redirection</title>
		<link>http://logicsupport.com/blog/?p=457</link>
		<comments>http://logicsupport.com/blog/?p=457#comments</comments>
		<pubDate>Fri, 30 Apr 2010 14:57:17 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[logicsupport review]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[no database]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[technical support]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=457</guid>
		<description><![CDATA[Whenever I go to www.domain.com it is redirected to Non-www and the browser shows domain.com . There is no redirect rules set and I checked my .htacces file. I knew it is something to do with my wordpress . My WordPress is installed in the root directory and not in its own subdirectory called /blog [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">Whenever I go to www.domain.com it is redirected to Non-www and the browser shows domain.com . There is no redirect rules set and I checked my .htacces file. I knew it is something to do with my wordpress . My WordPress is installed in the root directory and not in its own subdirectory called /blog or /wordpress .</span></span></span></p>
<p><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">Here is how I fixed it . Consider my domain name is domain.com and username : doma</span></span></span><br />
# <strong>mysql &#8211;user=doma &#8211;password=mypass</strong></p>
<p>Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 399164 Server version: 5.0.88 Source distribution</p>
<p>Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.</p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>show databases;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| Database |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| information_schema |<br />
| doma |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
2 rows in set (0.00 sec)</span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>use doma;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
Reading table information for completion of table and column names<br />
You can turn off this feature to get a quicker startup with -A</p>
<p>Database changed<br />
mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>show tables;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| Tables_in_doma |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| wp_commentmeta |<br />
| wp_comments |<br />
| wp_links |<br />
| wp_options |<br />
| wp_postmeta |<br />
| wp_posts |<br />
| wp_term_relationships |<br />
| wp_term_taxonomy |<br />
| wp_terms |<br />
| wp_usermeta |<br />
| wp_users |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
11 rows in set (0.00 sec)</span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>desc wp_options;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| Field | Type | Null | Key | Default | Extra |<br />
+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
| option_id | bigint(20) unsigned | NO | PRI | NULL | auto_increment |<br />
| blog_id | int(11) | NO | | 0 | |<br />
| option_name | varchar(64) | NO | UNI | | |<br />
| option_value | longtext | NO | | NULL | |<br />
| autoload | varchar(20) | NO | | yes | |<br />
+&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;-+<br />
5 rows in set (0.00 sec)</span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		A:link { so-language: zxx } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>select * from wp_options where option_name=&#8217;siteurl&#8217;;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
| option_id | blog_id | option_name | option_value | autoload |<br />
+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
| 2 | 0 | siteurl | </span></span></span><a href="http://sarms-s4.com/" target="_blank">http://domain.com</a><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"> | yes |<br />
+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
1 row in set (0.00 sec)<br />
</span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>There you can see the siteurl is given without www . Below I&#8217;m going to change it to www .</strong></span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>update wp_options set option_value=&#8217;http://www.domain.com&#8217; where option_name=&#8217;siteurl&#8217;;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
Query OK, 0 rows affected (0.00 sec)<br />
Rows matched: 1 Changed: 0 Warnings: 0</span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		A:link { so-language: zxx } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>select * from wp_options where option_name=&#8217;home&#8217;;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
| option_id | blog_id | option_name | option_value | autoload |<br />
+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
| 38 | 0 | home | </span></span></span><a href="http://sarms-s4.com/" target="_blank">http://domain.com</a><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"> | yes |<br />
+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+<br />
1 row in set (0.00 sec)</p>
<p>mysql&gt; </span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><strong>update wp_options set option_value=&#8217;http://www.domain.com&#8217; where option_name=&#8217;home&#8217;;</strong></span></span></span><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;"><br />
Query OK, 1 row affected (0.00 sec)<br />
Rows matched: 1 Changed: 1 Warnings: 0</span></span></span></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535;"><span style="font-family: Times;"><span style="font-size: small;">Done . Isn&#8217;t that cool ? <img src='http://logicsupport.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></span></span></p>
<p><span style="color: #000000;"> Submitted by,</span></p>
<p>Manjula Kesavan,<br />
System Administrator,<br />
LogicSupport.com</p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=457</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup your MySQL Databases</title>
		<link>http://logicsupport.com/blog/?p=456</link>
		<comments>http://logicsupport.com/blog/?p=456#comments</comments>
		<pubDate>Wed, 21 Apr 2010 13:58:23 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[backup your data]]></category>
		<category><![CDATA[logicsupport review]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[technical support]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=456</guid>
		<description><![CDATA[How many times have you come across situations when corrupt or old database eventually lost you an entire list of leads and emails collected over several years? It is heart breaking indeed. There have also been instances when the monthly backup got overwritten by the latest one and there was no way to return to [...]]]></description>
			<content:encoded><![CDATA[<p>How many times have you come across situations when corrupt or old database eventually lost you an entire list of leads and emails collected over several years? It is heart breaking indeed. There have also been instances when the monthly backup got overwritten by the latest one and there was no way to return to the old settings. It is best to have an easy, alternate backup method in place in order to prevent losing those precious data on your server.<br />
You can automate the backup process by making a small shell script which will create a daily backup file without overwriting the older backup .</p>
<p><strong>#!/bin/sh date=`date -I` mysqldump &#8211;all-databases | gzip &gt; /var/backup/backup-$date.sql.gz</strong><br />
Change the above directory to your backup drive location.</p>
<p>1) Save above script to a file eg: /root/dailybackup.sh<br />
2) Make the file executable :-  chmod +x  /root/dailybackup.sh<br />
3) Add following line in cron to take backup daily at 01:00 am</p>
<p><strong>0 1 * * * /root/dailybackup.sh</strong></p>
<p>Since mysqldump sends its output to the console, we can pipe the output through gzip or bzip2 and send the compressed dump to the backup file. Here&#8217;s another way of doing it with bzip2</p>
<p><strong>mysqldump &#8211;all-databases  -p  | bzip2 -c &gt;databasebackup.sql.bz2</strong></p>
<p>Enter password:<br />
If you wish to transfer the file to your other server and decompress it , say my backup file is</p>
<p><strong>backup-2010-02-14.sql.bz</strong></p>
<p>You can decompress as follows :-</p>
<p><strong>bzip2 -d backup-2010-02-14.sql.bz</strong></p>
<p>It will be now in the form</p>
<p><strong>backup-2010-02-14.sql</strong></p>
<p>Restore your backup using the mysql command:</p>
<p><strong>mysql -p &lt; backup-2010-02-14.sql<br />
</strong><br />
Done!</p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=456</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk User Detail</title>
		<link>http://logicsupport.com/blog/?p=447</link>
		<comments>http://logicsupport.com/blog/?p=447#comments</comments>
		<pubDate>Mon, 29 Mar 2010 12:37:11 +0000</pubDate>
		<dc:creator>Manjula</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[plesk email password]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[technical support]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=447</guid>
		<description><![CDATA[Here is how you can find your users email , database and ftp details from psa database . mysql&#62; use psa ; Database changed EMAIL ACCOUNT DETAILS mysql&#62; SELECT mail.mail_name, accounts.password, domains.name FROM mail, accounts, domains WHERE domains.id=mail.dom_id AND mail.account_id=accounts.id; DATABASE USER DETAILS mysql&#62; SELECT domains.name, data_bases.name, data_bases.type , db_users.login,accounts.password FROM domains, data_bases, db_users, accounts [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium">Here is how you can find your users email , database and ftp details from psa database .</span></span></span></p>
<p><span style="font-size: medium"><span style="color: #353535"><span style="font-family: Times"><strong>mysql&gt;</strong></span></span><span style="color: #353535"><span style="font-family: Times"> </span></span><span style="color: #353535"><span style="font-family: Times"><strong>use psa ;</strong></span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium">Database changed </span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium">EMAIL ACCOUNT DETAILS</span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium"><strong>mysql&gt; SELECT mail.mail_name, accounts.password, domains.name FROM mail, accounts, domains WHERE domains.id=mail.dom_id AND mail.account_id=accounts.id;</strong></span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium">DATABASE USER DETAILS</span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium"><strong>mysql&gt; SELECT domains.name, data_bases.name, data_bases.type , db_users.login,accounts.password FROM domains, data_bases, db_users, accounts WHERE domains.id=data_bases.dom_id AND data_bases.id=db_users.db_id AND db_users.account_id=accounts.id;</strong></span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium">FTP / SYSTEM USER DETAILS</span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium"><strong>mysql&gt; SELECT domains.name, sys_users.login, accounts.password, sys_users.home, sys_users.shell, sys_users.quota FROM domains, accounts, hosting, sys_users WHERE domains.id=hosting.dom_id AND hosting.sys_user_id=sys_users.id AND sys_users.account_id=accounts.id; </strong></span></span></span></p>
<p><span style="color: #353535"><span style="font-family: Times"><span style="font-size: medium">Enjoy!</span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=447</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Smarterstats</title>
		<link>http://logicsupport.com/blog/?p=446</link>
		<comments>http://logicsupport.com/blog/?p=446#comments</comments>
		<pubDate>Fri, 19 Feb 2010 08:22:05 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[logicsupport review]]></category>
		<category><![CDATA[smarterstats]]></category>
		<category><![CDATA[smartertools]]></category>
		<category><![CDATA[technical support]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=446</guid>
		<description><![CDATA[SmarterStats is a Web log analytics and SEO software provided by www.smartertools.com that provides complete management and control of website statistics and SEO marketing efforts in a single application. SmarterStats helps businesses make informed decisions that drive them toward quantifiable objectives for website traffic and sales. Issue with smarterstats account, especially after a migration is [...]]]></description>
			<content:encoded><![CDATA[<p>SmarterStats is a Web log analytics and SEO software provided by www.smartertools.com that provides complete management and control of website statistics and SEO marketing efforts in a single application. SmarterStats helps businesses make informed decisions that drive them toward quantifiable objectives for website traffic and sales.</p>
<p>Issue with smarterstats account, especially after a migration is not uncommon. Sometimes prompting a re-import and resetting of the entire log files. Recently we faced an issue with one of the smarterstats account and it kept displaying the error &#8220;Information about the last 7 days is not available in your statistics. Logs have been imported for 10/1/2008 through 10/31/2009.&#8221;</p>
<p>Well, every time the admin attempt to re-import the log files, it gave a ‘cannot read’ error.</p>
<p>Upon checking, he came to know that the settings match exactly as that of a working domain account, hence he wasn’t able to identify the error.</p>
<p>‘Path to the log file’ is what confused the admin. Though the log files were in the path /x/y/domainname/, almost all of the working domains showed the settings as /x/y. Missing the logic, the admin kept on trying with the /x/y base directory until he finally decided to re-import using the path /x/y/domainname/, which worked finally.</p>
<p>Just a tip for all those who troubleshoot by doing a comparison of settings, please keep your senses open for the obvious logic and do not be misguided by an incorrect interface provided by the programmer.</p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=446</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PCI compliance</title>
		<link>http://logicsupport.com/blog/?p=443</link>
		<comments>http://logicsupport.com/blog/?p=443#comments</comments>
		<pubDate>Wed, 10 Feb 2010 08:49:55 +0000</pubDate>
		<dc:creator>visiondream3</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[logicsupport review]]></category>
		<category><![CDATA[PCI compliance]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[technical support]]></category>

		<guid isPermaLink="false">http://logicsupport.com/blog/?p=443</guid>
		<description><![CDATA[The Payment Card Industry Data Security Standard is a worldwide information security standard assembled by the Payment Card Industry Security Standards Council (PCI SSC). The standard was created to help organizations that process card payments prevent credit card fraud through increased controls around data and its exposure to compromise. The standard applies to all organizations [...]]]></description>
			<content:encoded><![CDATA[<p>The Payment Card Industry Data Security Standard is a worldwide information security standard assembled by the Payment Card Industry Security Standards Council (PCI SSC). The standard was created to help organizations that process card payments prevent credit card fraud through increased controls around data and its exposure to compromise. The standard applies to all organizations which hold, process, or pass cardholder information from any card branded with the logo of one of the card brands.</p>
<p>If you are a host who sell business critical web environment that process credit card data, you need to know how to help your customers acquire compliance. LogicSupport helps their customers acquire PCI compliance by directly working with their data centers and any approved scan vendors ( ASV). Only certified ASVs can perform PCI-sanctioned compliance audits. </p>
<p>A detailed ASV list is given below for reference :-</p>
<p><a href="https://www.pcisecuritystandards.org/pdfs/asv_report.html">https://www.pcisecuritystandards.org/pdfs/asv_report.html</a></p>
<p>Most of these ASVs provide you a report to work on or help you to clear them by providing technical assistance. If at any point,  you need consultation with a security expert, you could always approach us and we will be able to guide you with our experience. We can even assist you by providing engineers who are experts at helping you clear the vulnerable scores.</p>
<p>An ASV bases the audit result on the Common Vulnerability Scoring System (CVSS), Version 2, score that is calculated for every vulnerability. Scores range from 0 to 10.0, with 4.0 or higher indicating failure to comply with PCI standards.</p>
<p>Any asset that contains at least one vulnerability with CVSS score of 4.0 or higher is considered non-compliant. And, if at least one asset is non-compliant, the entire organization is considered to be non-compliant.</p>
<p>Also, any vulnerability that exposes an asset to XSS or SQL injection indicates failure to comply with PCI standards, regardless of CVSS score.</p>
<p>The CVSS system rates all vulnerabilities on a scale of 0.0 to 10.0 with 10.0 representing the greatest security risk. A ranking of 4.0 or higher indicates failure to comply with PCI standards.</p>
<p>A moderate vulnerability, which ranges from 0.0 to 3.9 on the CVSS system can only be exploited locally and requires authentication. A successful attacker has little or no access to unrestricted information, cannot destroy or corrupt information, and cannot cause outages on any systems. Examples include default or guessable SNMP community names and the OpenSSL PRNG Internal State Discovery vulnerability.</p>
<p>A severe vulnerability, which ranges from 4.0 to 6.9 on the CVSS system, can be exploited with a moderate level of hacking experience and may or may not require authentication. A successful attacker has partial access to restricted information, can destroy some information, and can disable individual target systems on a network. Examples include Anonymous FTP Writeable and Weak LAN Manager hashing permitted.</p>
<p>A critical vulnerability, which ranges from 7.0 and 10.0 on the CVSS system, can be exploited with easy access and requires little or no authentication. A successful attacker has access to confidential information, can corrupt or delete data, and can cause a system outage. Examples include the ability of anonymous users can obtain a Windows password policy.</p>
<p>Though compliance is not the final word for web security, it will go a long way in helping our payments and card data secure on the web.</p>
]]></content:encoded>
			<wfw:commentRss>http://logicsupport.com/blog/?feed=rss2&amp;p=443</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
