<?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>Sysadmin&#039;s blog</title>
	<atom:link href="http://lanselot.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://lanselot.me</link>
	<description>Maybe, it will help</description>
	<lastBuildDate>Wed, 09 Mar 2011 19:04:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>nginx + apache and cPanel</title>
		<link>http://lanselot.me/2011/02/nginx-apache-and-cpanel/</link>
		<comments>http://lanselot.me/2011/02/nginx-apache-and-cpanel/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 13:37:56 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[webservers]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=105</guid>
		<description><![CDATA[How to accelerate cPanel web hosting server with nginx? You can find  a lot of answers  through the Internet, like this: cPanel forums 24x7servermanagement All methods  are good, but there is one big problem with script  (postwwwacct) which was suggested by somebody. It is useless if you are using Addon and Sub domains. This script [...]]]></description>
			<content:encoded><![CDATA[<p>How to accelerate cPanel web hosting server with nginx?</p>
<p>You can find  a lot of answers  through the Internet, like this:</p>
<p><a href="http://forums.cpanel.net/f77/nginx-working-plus-apache-happy-fast-cpanel-server-133657.html">cPanel forums</a><br />
<a href="http://24x7servermanagement.com/blog/?p=814">24x7servermanagement</a></p>
<p>All methods  are good, but there is one big problem with script  (postwwwacct) which was suggested by somebody. It is useless if you are using Addon and Sub domains. This script set wrong homedir for sub- and addon- domains in config.</p>
<p>I wouldn&#8217;t rewrite all solution, you can find it easily. But I wrote my own script which generate vhosts.cfg</p>
<p>I think it  will put on in right place.</p>
<p>You can get it simply:</p>
<blockquote><p>wget http://lanselot.me/scripts/postwwwacct</p></blockquote>
<p>In variable VHOSTFILE set destination of your vhost config file.<br />
<span id="more-105"></span></p>
<blockquote><p>
#!/bin/bash<br />
#Lanselot 2011<br />
VHOSTFILE=&#8221;/opt/nginx/conf/vhosts.cfg&#8221;<br />
/bin/cp /dev/null $VHOSTFILE</p>
<p>function writevhosts {<br />
for DOMAIN in $@ ; do<br />
ROOT=`cat /var/cpanel/userdata/$USER/&#8221;$DOMAIN&#8221; | grep documentroot | awk &#8216;{print $2}&#8217;`<br />
ALIASES=`cat /var/cpanel/userdata/$USER/&#8221;$DOMAIN&#8221; | grep serveralias | sed &#8220;s/serveralias: //g&#8221; | sed &#8220;s/www\.\*\.$DOMAIN//g&#8221;`<br />
cat >> &#8220;$VHOSTFILE&#8221; <<EOF<br />
server {<br />
        access_log /dev/null;<br />
        error_log  /dev/null;<br />
        listen    80;<br />
        server_name  $DOMAIN $ALIASES;</p>
<p>        gzip on;<br />
        gzip_min_length  1100;<br />
        gzip_buffers     4 16k;<br />
        gzip_types       text/plain text/css text/javascript application/x-javascript;<br />
        location ~* .(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|mp3|wav|zip|tar|gz|rar|7z)$ {<br />
                try_files \$uri @proxy_backend;<br />
                gzip off;<br />
                root   $ROOT;<br />
        }</p>
<p>        location ~* .(js|css)$ {<br />
                try_files \$uri @proxy_backend;<br />
                gzip on;<br />
                root   $ROOT;<br />
        }</p>
<p>        location @proxy_backend {<br />
                client_max_body_size    64m;<br />
               client_body_buffer_size 128k;</p>
<p>               proxy_send_timeout   90;<br />
               proxy_read_timeout   90;<br />
               proxy_buffer_size    4k;<br />
               proxy_buffers     16 32k;<br />
               proxy_busy_buffers_size 64k;<br />
               proxy_temp_file_write_size 64k;<br />
               proxy_connect_timeout 30s;</p>
<p>               proxy_redirect  http://www.$DOMAIN:81   http://www.$DOMAIN;<br />
               proxy_redirect  http://$DOMAIN:81   http://$DOMAIN;<br />
                proxy_pass   http://$IP:81;</p>
<p>                proxy_set_header   Host   \$host;<br />
                proxy_set_header   X-Real-IP  \$remote_addr;<br />
                proxy_set_header   X-Forwarded-For \$proxy_add_x_forwarded_for;<br />
        }</p>
<p>        location / {<br />
                client_max_body_size    64m;<br />
                client_body_buffer_size 128k;</p>
<p>               proxy_send_timeout   90;<br />
                proxy_read_timeout   90;<br />
                proxy_buffer_size    4k;<br />
                proxy_buffers     16 32k;<br />
                proxy_busy_buffers_size 64k;<br />
                proxy_temp_file_write_size 64k;<br />
                proxy_connect_timeout 30s;</p>
<p>                proxy_redirect  http://www.$DOMAIN:81   http://www.$DOMAIN;<br />
                proxy_redirect  http://$DOMAIN:81   http://$DOMAIN;<br />
                proxy_pass   http://$IP:81;</p>
<p>                proxy_set_header   Host   \$host;<br />
                proxy_set_header   X-Real-IP  \$remote_addr;<br />
                proxy_set_header   X-Forwarded-For \$proxy_add_x_forwarded_for;<br />
        }<br />
}<br />
EOF<br />
done<br />
}</p>
<p>cd /var/cpanel/users<br />
for USER in *; do<br />
	TOTALLINES=`cat /var/cpanel/userdata/$USER/main|wc -l`<br />
	SUBLINE=`grep -n sub_domains /var/cpanel/userdata/$USER/main | awk -F ":" '{print $1}'`<br />
	IP=`cat /var/cpanel/users/$USER|grep ^IP|cut -d= -f2`;<br />
#SUBDOMAIN and ADDONS<br />
	TOT1=`echo "$TOTALLINES-$SUBLINE" | bc`<br />
	for SUB in `cat /var/cpanel/userdata/$USER/main | tail -n $TOT1 | awk '{print $2}' | xargs -L100` ; do<br />
		writevhosts $SUB<br />
	done<br />
#MAIN DOMAIN and his aliases<br />
	DOMAIN=`grep main_domain /var/cpanel/userdata/$USER/main | awk '{print $2}' `<br />
	writevhosts $DOMAIN<br />
done
</p></blockquote>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2011%2F02%2Fnginx-apache-and-cpanel%2F&amp;title=nginx%20%2B%20apache%20and%20cPanel" id="wpa2a_2">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2011/02/nginx-apache-and-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memory modules in server</title>
		<link>http://lanselot.me/2011/01/memory-modules/</link>
		<comments>http://lanselot.me/2011/01/memory-modules/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 16:35:01 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[webservers]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=97</guid>
		<description><![CDATA[Script for acquire information about memory banks in server]]></description>
			<content:encoded><![CDATA[<p>Today I must collect information about memory modules, which installed on several servers.<br />
Of course every system administrator know about command:</p>
<blockquote><p>dmidecode</p></blockquote>
<p>which grab all required information.<br />
But it command not very human-readable and when numbers of servers to examine increased &#8211; it become very boring to get useful information.<br />
Okay, I&#8217;ve write very simple bash &#8211; parser to get only what I need.<br />
Maybe, it will help someone else.<br />
<span id="more-97"></span></p>
<blockquote><p>#!/bin/bash<br />
#lanselot 2011<br />
SERVERNAME=`uname -n`<br />
SERVERTYPE=`dmidecode | grep &#8220;Product Name&#8221; | awk -F &#8220;:&#8221; &#8216;{print $2}&#8217;`<br />
MEMSLOT=`dmidecode -t 17 | grep &#8220;Memory Device&#8221; | wc -l`<br />
EMPTYSLOT=`dmidecode -t 17 | grep &#8220;No Module Installed&#8221; | wc -l`<br />
ACTIVESLOT=`echo &#8220;$MEMSLOT-$EMPTYSLOT&#8221; | bc`<br />
TOTALMEM=`dmidecode -t 17 | grep -v &#8220;No Module Installed&#8221; | grep &#8220;Size&#8221; | awk &#8216;{print $2}&#8217; |  xargs -L100 | tr &#8216; &#8216; &#8216;+&#8217; | bc`<br />
echo -e &#8220;\e[1;37m ServerName: $SERVERNAME&#8221;<br />
echo -e &#8220;Servertype: $SERVERTYPE&#8221;<br />
echo -e &#8220;\e[1;37m Slots:\e[1;32m $MEMSLOT\e[1;37m. Used:\e[1;33m $ACTIVESLOT\e[1;37m, empty:\e[1;31m $EMPTYSLOT&#8221;<br />
echo -e &#8220;\e[40m \e[0;37m&#8221;<br />
echo -e &#8220;\e[1;37mTotal memory:\e[1;32m $TOTALMEM\e[1;37m Mb&#8221;<br />
echo -e &#8220;\e[40m \e[0;37m&#8221;<br />
echo &#8220;Modules:&#8221;<br />
dmidecode -t 17 | grep -v -E &#8220;No Module Installed|Unknown&#8221; | grep -A 8 &#8220;Size&#8221; | grep -v -E &#8220;Type Detail|Locator:&#8221;</p></blockquote>
<p>Or simply</p>
<blockquote><p>wget http://lanselot.me/scripts/meminfo</p></blockquote>
<p>Of course, it is very easy to rewrite it for any data you need.</p>
]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2011/01/memory-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different types of computer Viruses- A broad outline</title>
		<link>http://lanselot.me/2010/10/different-types-of-computer-viruses/</link>
		<comments>http://lanselot.me/2010/10/different-types-of-computer-viruses/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 06:14:37 +0000</pubDate>
		<dc:creator>eva</dc:creator>
				<category><![CDATA[freetalk]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=78</guid>
		<description><![CDATA[As with human viruses, computer viruses also have specialism depending on the infectedarea, and amount of damage. There are many types of virus. The basic category of theviruses is: Boot viruses: The viruses, which infect, boot records on hard disks or other booting devices are called boot viruses. These viruses replace the boot record program [...]]]></description>
			<content:encoded><![CDATA[<p>As with human viruses, computer viruses also have specialism depending on the infectedarea, and amount of damage. There are many <a href="http://www.secureurpc.com/secureurpc-articles/types-of-computer-viruses.php">types of virus</a>. The basic category of theviruses is:</p>
<p>Boot viruses: The viruses, which infect, boot records on hard disks or other booting<br />
devices are called boot viruses. These viruses replace the boot record program and copy it<br />
elsewhere.</p>
<p>Example: Disk Killer, Stone Virus</p>
<p>Program viruses: These viruses infect the executable program files, for example, those<br />
with extensions like .EXE, .COM, .SYS etc. Virus is loaded in the memory with the programs<br />
on execution and thus it makes copies of itself and infects the file.</p>
<p>Example: Sunday</p>
<p>Multipartite viruses: This virus is a fusion of Boot and Program viruses. They infect<br />
program files as the first step. On execution of these infected files, these viruses infect the<br />
boot record.</p>
<p>Example: Invader, Tequila</p>
<p>Stealth viruses: These viruses are hard to detect. They use different techniques to avoid<br />
detection.</p>
<p>Example: Whale, Joshi</p>
<p>Macro Viruses: It is a new kind of virus infecting the macros within a document.</p>
<p>Example: Nuclear, DMV</p>
<p>The above mentioned types of virus are but a broad category of the viruses. They are many<br />
specialized versions available.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F10%2Fdifferent-types-of-computer-viruses%2F&amp;title=Different%20types%20of%20computer%20Viruses-%20A%20broad%20outline" id="wpa2a_4">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/10/different-types-of-computer-viruses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Hacking; is Your Information Safe?</title>
		<link>http://lanselot.me/2010/09/internet-hacking-is-your-information-safe/</link>
		<comments>http://lanselot.me/2010/09/internet-hacking-is-your-information-safe/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 10:41:51 +0000</pubDate>
		<dc:creator>eva</dc:creator>
				<category><![CDATA[freetalk]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=64</guid>
		<description><![CDATA[There is no doubt that the internet is the best thing that ever happened to us but it too has come along with its evils. The bad news is that no company or organization can guarantee total safety of its systems either from cyber terrorists or from people who the cyber space with an intention [...]]]></description>
			<content:encoded><![CDATA[<p>There is no doubt that the internet is the best thing that ever happened to us but it too has come along with its evils. The bad news is that no company or organization can guarantee total safety of its systems either from cyber terrorists or from people who the cyber space with an intention of causing malicious damage to information, stealing information or causing disarray to your data.<br />
Every day, there are security meetings being held to discuss and chart the way forward in countering <a href="http://www.nospysoftware.com/spyware-articles/internet-hacking.php">internet hacking</a>. Unfortunately, as much progress as is made on the improvement of security and data safety, so also are the illegal hackers improving their tactics. Ironically, the tips and ideas that you can implement, to avoid hacking if you are a network administrator are found online. So also are at he tips for hacking in to networks.<br />
The good news however is that you can be safe from the hackers if only you do little improvements to your security systems here and there. Most hacking problems overwhelm companies just because some one was too lazy to play his role well enough and to up his game to match the hackers. Remember that the same techniques that have been used to bring so much success in information exchange and technology are also the same techniques that hackers use to access information illegally. No email is safe from the hackers and with the many hacking tools that we have in the market today, then any information network is vulnerable.<br />
There are many <a href="http://www.hackingalert.com">hacking tips</a> online, but many hackers do not even need them. A good (or is it bad) hacker first researches on the target network that he wants to hack. The relevance of this is to see the kind of operating systems, the firewall and the security of the system and the software installed. Other factors will be the user names, sibling domains and the network connection. And do not take solace that your network is well protected because there are still other openings that can be used as back doors for hackers and these are like the modems, ISPs and many others.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F09%2Finternet-hacking-is-your-information-safe%2F&amp;title=Internet%20Hacking%3B%20is%20Your%20Information%20Safe%3F" id="wpa2a_6">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/09/internet-hacking-is-your-information-safe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ie doesn&#8217;t see cookie, but firefox and opera does</title>
		<link>http://lanselot.me/2010/09/ie-doesnt-see-cookie-but-firefox-and-opera-does/</link>
		<comments>http://lanselot.me/2010/09/ie-doesnt-see-cookie-but-firefox-and-opera-does/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 14:09:53 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[pc & laptops]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=65</guid>
		<description><![CDATA[Problem. Very strange problem. We&#8217;ve got site di.by. This site set cookie PHPSESSID. Header looks like: Set-Cookie: PHPSESSID=1f7d0b338f2b5a4e53c66cf213fe5f90; path=/; domain=di.by Opera and Firefox set this cookie without any problems, but internet explorer doesn&#8217;t see it at all. It doesn&#8217;t block it. We&#8217;ve checked it many times. We make alias for domain di.by &#8211; http://confa.of.by/ and [...]]]></description>
			<content:encoded><![CDATA[<h3>Problem.</h3>
<p>Very strange problem. We&#8217;ve got site <a title="Conference about Internet based business" href="http://di.by" target="_blank">di.by</a>. This site set cookie PHPSESSID. Header looks like:</p>
<blockquote><p>Set-Cookie: PHPSESSID=1f7d0b338f2b5a4e53c66cf213fe5f90; path=/; domain=di.by</p></blockquote>
<p><a title="Opera internet browser" href="http://opera.com" target="_blank">Opera</a> and <a title="Firefox internet browser" href="http://mozilla.org">Firefox</a> set this cookie without any problems, but internet explorer doesn&#8217;t see it at all. It doesn&#8217;t block it. We&#8217;ve checked it many times.</p>
<p>We make alias for domain di.by &#8211; http://confa.of.by/ and cookie</p>
<blockquote><p>Set-Cookie: PHPSESSID=498b3195efe311c30b61d59eec3f4b23; path=/; domain=confa.of.by</p></blockquote>
<p>works without any problems in IE.</p>
<p>We check from ie6 till ie9. And problems was in all versions.<span id="more-65"></span></p>
<h3>Solution.</h3>
<p>It is very strange too. I surfing through Internet and couldn&#8217;t find anything. But programmers solve this very rough and effective. They changed cookie to this:</p>
<blockquote><p>Set-Cookie: PHPSESSID=1ff0ebc3b0a88de2dac01d0c3e6ed496; path=/</p></blockquote>
<p>And IE set it without any problem. Very strange, maybe some bug in IE with short domains. But exactly explanation I don&#8217;t have. Maybe someone know?</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F09%2Fie-doesnt-see-cookie-but-firefox-and-opera-does%2F&amp;title=ie%20doesn%26%238217%3Bt%20see%20cookie%2C%20but%20firefox%20and%20opera%20does" id="wpa2a_8">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/09/ie-doesnt-see-cookie-but-firefox-and-opera-does/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>rmagick: cannot allocate memory</title>
		<link>http://lanselot.me/2010/09/rmagick-cannot-allocate-memory/</link>
		<comments>http://lanselot.me/2010/09/rmagick-cannot-allocate-memory/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 14:56:23 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[webservers]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=60</guid>
		<description><![CDATA[Promlem. When one of our clients try to rails app, which use rmagick he got error in log: libgomp: Thread creation failed: Cannot allocate memory Solution. First of all remove rmagick: gem uninstall rmagick Second step is recompile ImageMagick  with &#8211;disable-openmp option. You can get latest ImageMagick source here. I&#8217;ll describe software installation from sources process [...]]]></description>
			<content:encoded><![CDATA[<h3>Promlem.</h3>
<p>When one of our clients try to rails app, which use rmagick he got error in log:</p>
<blockquote><p>libgomp: Thread creation failed: Cannot allocate memory</p></blockquote>
<p><span id="more-60"></span></p>
<h3>Solution.</h3>
<p>First of all remove rmagick:</p>
<blockquote><p>gem uninstall rmagick</p></blockquote>
<p>Second step is recompile ImageMagick  with &#8211;disable-openmp option. You can get latest ImageMagick source <a href="http://www.imagemagick.org/www/download.html" target="_blank">here</a>. I&#8217;ll describe software installation from sources process <a href="http://lanselot.me/2010/09/installing-software-from-source-code/" target="_self">here</a>. Than simple steps</p>
<blockquote><p>tar -xzf ImageMagick-6.6.3-1.tar.gz</p>
<p>cd  ImageMagick-6.6.3-1/</p>
<p>./configure &#8211;prefix=/usr &#8211;disable-openmp</p>
<p>make</p>
<p>make install</p></blockquote>
<p>If all installed successfully you can install rmagick and use it.</p>
<blockquote><p>gem install rmagick</p></blockquote>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F09%2Frmagick-cannot-allocate-memory%2F&amp;title=rmagick%3A%20cannot%20allocate%20memory" id="wpa2a_10">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/09/rmagick-cannot-allocate-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>exim using wrong priority mx</title>
		<link>http://lanselot.me/2010/09/exim-using-wrong-priority-mx/</link>
		<comments>http://lanselot.me/2010/09/exim-using-wrong-priority-mx/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 11:38:30 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[webservers]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=55</guid>
		<description><![CDATA[Symptoms. Out client wrote, that his script don&#8217;t send email to his email. Discovering problem. As he told problem only with one email ishops@elserv.example.com. Domain elserv.example.com has 2 MX: root@server# dig +short MX elserv.example.com 10 ms.elserv.example.com. 30 mx.uniflex.by. Next step is to check server logs: root@server# cat /var/log/exim_mainlog &#124; grep elserv.example.com 2010-09-06 13:34:00 1OsZ1E-0000fg-K9 =&#62; ishops@elserv.minsk.by R=lookuphost [...]]]></description>
			<content:encoded><![CDATA[<h3>Symptoms.</h3>
<p>Out client wrote, that his script don&#8217;t send email to his email.</p>
<h3>Discovering problem.</h3>
<p>As he told problem only with one email ishops@elserv.example.com. Domain elserv.example.com has 2 MX:</p>
<blockquote><p>root@server# dig +short  MX elserv.example.com<br />
10 ms.elserv.example.com.<br />
30 mx.uniflex.by.</p></blockquote>
<p>Next step is to check server logs:</p>
<blockquote><p>root@server# cat /var/log/exim_mainlog | grep elserv.example.com</p>
<p>2010-09-06 13:34:00 1OsZ1E-0000fg-K9 =&gt; ishops@elserv.minsk.by R=lookuphost T=remote_smtp H=mx.uniflex.by [84.201.225.218] X=TLSv1:DHE-RSA-AES256-SHA:256<br />
2010-09-06 13:34:00 1OsZ1E-0000fi-LI =&gt; ivasilev@elserv.minsk.by R=lookuphost T=remote_smtp H=mx.uniflex.by [84.201.225.218] X=TLSv1:DHE-RSA-AES256-SHA:256</p></blockquote>
<p>Ok, we&#8217;ve got interesting situation. Emails sent to MX with higher priority and it is very strange.<span id="more-55"></span></p>
<h3>Solution.</h3>
<p>First of all I thought that it is DNS resolve оr exim bug. I&#8217;ve checked /etc/resolf.conf to identify which dns server uses. After that I asked every DNS server about this MX. All answers where correct.</p>
<p>What can be wrong with exim?  I start to search something about exim configuration and dns resolving. While reading different forums and manuals I decided to check connection with MX servers.</p>
<p>I try:</p>
<blockquote><p>root@server# telnet ms.elserv.example.com 25</p></blockquote>
<p>And that was an answer. Connection died because of timeout, but connection with uniflex.by:</p>
<blockquote><p>root@server# telnet mx.uniflex.by 25<br />
Trying 84.201.225.218&#8230;<br />
Connected to mx.uniflex.by (84.201.225.218).<br />
Escape character is &#8216;^]&#8217;.<br />
220 ESMTP UNIFLEX.BY</p></blockquote>
<p>was successful. I&#8217;ve checked iptables and connections from another servers. From other places connection established without any problems.  Problem was on a client side, maybe they blocked server ip for any reasons.</p>
<p>Very simple, but first sight on a problem was very fuzzy.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F09%2Fexim-using-wrong-priority-mx%2F&amp;title=exim%20using%20wrong%20priority%20mx" id="wpa2a_12">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/09/exim-using-wrong-priority-mx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer and Firefox: Internet security &#8211; access denied on any site</title>
		<link>http://lanselot.me/2010/08/internet-explorer-and-firefox-internet-security-access-denied-on-any-site/</link>
		<comments>http://lanselot.me/2010/08/internet-explorer-and-firefox-internet-security-access-denied-on-any-site/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 11:14:09 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[pc & laptops]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[virus]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=51</guid>
		<description><![CDATA[Symptoms. One of our employers ask for help me today. On his computer internet explorer and firefox block all sites and bring kaspersky like menu with text (that was on russian, but i think something can be in another languages): Internet Security Access Denied The requested URL-address can not be granted Your computer is blocked [...]]]></description>
			<content:encoded><![CDATA[<h3>Symptoms.</h3>
<p>One of our employers ask for help me today. On his computer internet explorer and firefox block all sites and bring <a href="http://www.kaspersky.com/" target="_blank">kaspersky</a> like menu with text (that was on russian, but i think something can be in another languages):</p>
<blockquote><p>Internet Security Access Denied<br />
The requested URL-address can not be granted<br />
Your computer is blocked for spamming<br />
You can unlock your computer for this, go to the site VKontakte (http://vkontakte.ru) and activate your profile. Then you can use the entire network. The report created: Internet Security</p></blockquote>
<p><span id="more-51"></span></p>
<h3>Solution.</h3>
<p>First of all I&#8217;ve checked hosts file, of course:</p>
<blockquote><p>%systemroot% \system32\drivers\etc\hosts</p></blockquote>
<p>But it was empty. Only one line about localhost. <a href="http://opera.com" target="_blank">Opera</a> on this computer works fine, but it was configured to use our proxy server.</p>
<p>Second step &#8211; check destination of hists file in windows registry. Run regedit, found key:</p>
<blockquote><p>\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath</p></blockquote>
<p>Path was written correctly.</p>
<p>Ok, start <a href="http://google.com" target="_blank">googling</a>. I found that many people have met this problem, but all of them solve it bu cleaning hosts file. Second check confirmed that it was clean.</p>
<p>On computer installed <a href="http://www.kaspersky.com/">kaspersky antivirus</a>, but I decided to check more carefully and use <a href="http://www.freedrweb.com/download+cureit/" target="_blank">drweb cureit</a>. It found two small trojans, but it didn&#8217;t solve problem. Also I&#8217;ve clean autorun with msconfig utility and no luck.</p>
<p>Finally I want to do some experiments and configure IE to use our proxy server and bingo! In</p>
<blockquote><p>Control panel &#8211; Internet options &#8211; Connections &#8211; LAN settings</p></blockquote>
<p>I found that other unknown proxy was configured, and all http traffic was transfer through it. It&#8217;s very bad idea, and very good for viruses. The best way to use such stuff &#8211; steal passwords from different sites and emails. Why they just blocking surfing. Maybe author only novice? I don&#8217;t know but beware, it is serious leak, and from first sight it is hard to identify.</p>
<p>Good luck.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F08%2Finternet-explorer-and-firefox-internet-security-access-denied-on-any-site%2F&amp;title=Internet%20Explorer%20and%20Firefox%3A%20Internet%20security%20%26%238211%3B%20access%20denied%20on%20any%20site" id="wpa2a_14">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/08/internet-explorer-and-firefox-internet-security-access-denied-on-any-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>joomla error: css,js files got 404</title>
		<link>http://lanselot.me/2010/08/joomla-error-cssjs-files-got-404/</link>
		<comments>http://lanselot.me/2010/08/joomla-error-cssjs-files-got-404/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 10:01:45 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[cms & code]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=45</guid>
		<description><![CDATA[Symptoms. Often I&#8217;ve got this problem  after transferring site from one server to another. The main page works fine, but if you click any link &#8211; other pages load only text and all css\js files got 404 error. The result &#8211; page looks very ugly. Solution. It took a lot of time to discover what [...]]]></description>
			<content:encoded><![CDATA[<h3>Symptoms.</h3>
<p>Often I&#8217;ve got this problem  after transferring site from one server to another. The main page works fine, but if you click any link &#8211; other pages load only text and all css\js files got 404 error. The result &#8211; page looks very ugly.<span id="more-45"></span></p>
<h3>Solution.</h3>
<p>It took a lot of time to discover what exactly cause this problem.</p>
<p>Loading log looks like:</p>
<blockquote><p>+ 0.000		0.260	579	19040	GET	200	text/html; charset=utf-8	http://example.com/index.php/products<br />
+ 0.338		0.222	598	2493	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/jv_menus/jv_moomenu/jv.moomenu.css<br />
+ 0.340		0.220	563	2459	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/js/mootools.js<br />
+ 0.437		0.281	564	2459	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/js/jv.script.js<br />
+ 0.439		0.281	566	2459	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/js/jv.collapse.js<br />
+ 0.442		0.281	582	2493	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/jv_menus/jv_moomenu/jv.moomenu.js<br />
+ 0.445		0.740	575	2455	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/system/css/system.css<br />
+ 0.452		0.739	576	2455	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/system/css/general.css<br />
+ 0.475		0.720	579	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/default.css<br />
+ 0.477		0.723	580	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/template.css<br />
+ 0.479		0.741	576	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/typo.css<br />
+ 0.482		0.808	574	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/k2.css<br />
+ 0.484		0.820	578	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/jv_css.php<br />
+ 1.361		0.313	564	2459	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/js/jv.script.js<br />
+ 1.808		0.294	566	2459	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/js/jv.collapse.js<br />
+ 2.226		0.232	582	2493	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/jv_menus/jv_moomenu/jv.moomenu.js<br />
+ 2.588		0.611	575	2455	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/system/css/system.css<br />
+ 2.591		0.612	576	2455	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/system/css/general.css<br />
+ 2.594		0.613	579	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/default.css<br />
+ 2.598		0.612	580	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/template.css<br />
+ 2.607		0.606	576	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/typo.css<br />
+ 2.611		0.655	574	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/k2.css<br />
+ 2.621		0.698	578	2461	GET	404	text/html; charset=utf-8	http://example.com/index.php/templates/jv_bellus/css/jv_css.php</p></blockquote>
<p>And joomla generates very strange links.</p>
<p>I wouldn&#8217;t describe all my mutterings. All my hours of investigation show me one variable in configuration.php which fix it.</p>
<p>Remember. Always define  var $live_site  in configuration.php:</p>
<blockquote><p>var $live_site = &#8216;http:///example.com&#8217;;</p></blockquote>
<p>And you will see:</p>
<blockquote><p>+ 0.000		0.191	622	18600	GET	200	text/html; charset=utf-8	http://example.com/index.php/products<br />
+ 0.259		0.025	631	5187	GET	200	text/css	http://example.com/templates/jv_bellus/jv_menus/jv_moomenu/jv.moomenu.css<br />
+ 0.262		0.374	596	74941	GET	200	application/javascript	http://example.com/templates/jv_bellus/js/mootools.js<br />
+ 0.382		0.276	597	8109	GET	200	application/javascript	http://example.com/templates/jv_bellus/js/jv.script.js<br />
+ 0.384		0.274	599	4124	GET	200	application/javascript	http://example.com/templates/jv_bellus/js/jv.collapse.js<br />
+ 0.387		0.268	615	3695	GET	200	application/javascript	http://example.com/templates/jv_bellus/jv_menus/jv_moomenu/jv.moomenu.js<br />
+ 0.390		0.270	608	1774	GET	200	text/css	http://example.com/templates/system/css/system.css<br />
+ 0.392		0.268	609	2762	GET	200	text/css	http://example.com/templates/system/css/general.css<br />
+ 0.414		0.247	612	10893	GET	200	text/css	http://example.com/templates/jv_bellus/css/default.css<br />
+ 0.417		0.366	613	31697	GET	200	text/css	http://example.com/templates/jv_bellus/css/template.css<br />
+ 0.420		0.355	609	19119	GET	200	text/css	http://example.com/templates/jv_bellus/css/typo.css<br />
+ 0.422		0.353	607	2194	GET	200	text/css	http://example.com/templates/jv_bellus/css/k2.css<br />
+ 0.424		0.356	611	456	GET	200	text/css	http://example.com/templates/jv_bellus/css/jv_css.php<br />
+ 1.017		0.041	648	649	GET	200	image/png	http://example.com/templates/jv_bellus/images/body_bg.png<br />
+ 1.023		0.121	648	3548	GET	200	image/png	http://example.com/templates/jv_bellus/images/menu-tr.png<br />
+ 1.026		0.118	648	683	GET	200	image/png	http://example.com/templates/jv_bellus/images/menu-tl.png<br />
+ 1.030		0.115	648	4321	GET	200	image/png	http://example.com/templates/jv_bellus/images/menu-br.png<br />
+ 1.032		0.110	648	3463	GET	200	image/png	http://example.com/templates/jv_bellus/images/menu-bl.png<br />
+ 1.035		0.110	645	1777	GET	200	image/png	http://example.com/templates/jv_bellus/images/logo.png<br />
+ 1.038		0.109	646	571	GET	200	image/png	http://example.com/templates/jv_bellus/images/blank.png<br />
+ 1.040		0.203	666	728	GET	200	image/jpeg	http://example.com/templates/jv_bellus/images/li-main.jpg<br />
+ 1.045		0.676	672	8906	GET	200	image/jpeg	http://example.com/templates/jv_bellus/images/menu-active-r.jpg<br />
+ 1.047		0.197	672	884	GET	200	image/jpeg	http://example.com/templates/jv_bellus/images/menu-active-l.jpg<br />
+ 1.054		0.190	653	3841	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/box-tr.png<br />
+ 1.058		0.188	653	752	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/box-tl.png<br />
+ 1.061		0.185	653	3299	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/box-cr.png<br />
+ 1.064		0.176	653	557	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/box-cl.png<br />
+ 1.071		0.176	647	465	GET	200	image/gif	http://example.com/templates/jv_bellus/images/bullet.gif<br />
+ 1.081		0.189	653	3750	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/box-br.png<br />
+ 1.084		0.187	653	729	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/box-bl.png<br />
+ 1.090		0.209	653	4370	GET	200	image/png	http://example.com/templates/jv_bellus/images/pathway-left.png<br />
+ 1.093		0.179	654	890	GET	200	image/png	http://example.com/templates/jv_bellus/images/pathway-right.png<br />
+ 1.095		0.177	653	933	GET	200	image/png	http://example.com/templates/jv_bellus/images/pathway-home.png<br />
+ 1.098		0.201	648	8436	GET	200	image/jpeg	http://example.com/templates/jv_bellus/images/pathway.jpg<br />
+ 1.100		0.203	649	792	GET	200	image/jpeg	http://example.com/templates/jv_bellus/images/menu_sep.jpg<br />
+ 1.102		0.211	655	3782	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/blank-tr.png<br />
+ 1.105		0.210	655	3392	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/blank-tl.png<br />
+ 2.670		0.023	656	1142	GET	200	image/png	http://example.com/templates/jv_bellus/images/jvmod/span-show.png<br />
+ 2.867		0.010	669	764	GET	200	image/jpeg	http://example.com/templates/jv_bellus/images/menu-hover.jpg</p></blockquote>
<p>Good luck.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F08%2Fjoomla-error-cssjs-files-got-404%2F&amp;title=joomla%20error%3A%20css%2Cjs%20files%20got%20404" id="wpa2a_16">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/08/joomla-error-cssjs-files-got-404/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql error: Manager of pid-file quit without updating</title>
		<link>http://lanselot.me/2010/08/mysql-error-manager-of-pid-file-quit-without-updating/</link>
		<comments>http://lanselot.me/2010/08/mysql-error-manager-of-pid-file-quit-without-updating/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 05:26:01 +0000</pubDate>
		<dc:creator>Lanselot</dc:creator>
				<category><![CDATA[webservers]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://lanselot.me/?p=25</guid>
		<description><![CDATA[Symptoms: You try to start mysqld and get  such error: Starting MySQL&#8230; Manager of pid-file quit without updating Solution. Solution was not very hard, but pretty interesting. To see what happened  I made: cat /var/log/messages &#124; grep mysql And found very interesting strings: Aug 18 03:07:29 server kernel: Out of memory: Killed process 20789 (mysqld). [...]]]></description>
			<content:encoded><![CDATA[<h3>Symptoms:</h3>
<p>You try to start mysqld and get  such error:</p>
<blockquote><p>Starting MySQL&#8230; Manager of pid-file quit without updating</p></blockquote>
<h3>Solution.</h3>
<p>Solution was not very hard, but pretty interesting.<br />
<span id="more-25"></span><br />
To see what happened  I made:</p>
<blockquote><p>cat /var/log/messages | grep mysql</p></blockquote>
<p>And found very interesting strings:</p>
<blockquote><p>Aug 18 03:07:29 server kernel: Out of memory: Killed process 20789 (mysqld).<br />
Aug 18 03:07:31 server kernel: OOM killed process mysqld (pid=20804, ve=0) exited, free=895596 gen=5.</p></blockquote>
<p>Mysql was simply killed. I think for a while and go to mysql databases directory</p>
<blockquote><p>cd /var/lib/mysql/mysql/</p></blockquote>
<p>This is path to my mysql (system database) situated. And run myisamchk:</p>
<blockquote><p>myisamchk -o *.MYI</p></blockquote>
<p>Retry to start mysql and Bingo! It is started without any problems. System table users was marked as crashed.</p>
<p>Of course after that I must check and fix critical values into my.cnf to prevent system kill mysql again. But this is after cup of tea. But now I must run mysqlcheck:</p>
<blockquote><p>mysqlcheck -c &#8211;auto-repair &#8211;all-databases</p></blockquote>
<p>Good luck!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Flanselot.me%2F2010%2F08%2Fmysql-error-manager-of-pid-file-quit-without-updating%2F&amp;title=mysql%20error%3A%20Manager%20of%20pid-file%20quit%20without%20updating" id="wpa2a_18">Share</a></p>]]></content:encoded>
			<wfw:commentRss>http://lanselot.me/2010/08/mysql-error-manager-of-pid-file-quit-without-updating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

