<?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"
	>

<channel>
	<title>Drupal, Zimbra, Linux, Web</title>
	<atom:link href="http://www.fireblazt.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fireblazt.com</link>
	<description>Drupal is great !</description>
	<pubDate>Fri, 11 Mar 2011 10:22:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Increase secure tmp size on cPanel</title>
		<link>http://www.fireblazt.com/2011/03/11/increase-secure-tmp-size-on-cpanel/</link>
		<comments>http://www.fireblazt.com/2011/03/11/increase-secure-tmp-size-on-cpanel/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 10:22:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server]]></category>

		<category><![CDATA[cpanel]]></category>

		<category><![CDATA[securetmp]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=141</guid>
		<description><![CDATA[Update /scripts/securetmp

vim /scripts/securetmp


find size then change according to your need. Then, run these commands below

/etc/init.d/chkservd stop
/etc/init.d/mysql stop
umount /var/tmp
umount /tmp
rm /usr/tmpDSK
/scripts/updatenow
/scripts/securetmp
/etc/init.d/mysql start
/etc/init.d/chkservd start

]]></description>
			<content:encoded><![CDATA[<p>Update /scripts/securetmp</p>
<pre>
vim /scripts/securetmp
</pre>
<p>
find size then change according to your need. Then, run these commands below</p>
<pre>
/etc/init.d/chkservd stop
/etc/init.d/mysql stop
umount /var/tmp
umount /tmp
rm /usr/tmpDSK
/scripts/updatenow
/scripts/securetmp
/etc/init.d/mysql start
/etc/init.d/chkservd start
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/03/11/increase-secure-tmp-size-on-cpanel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>perl: warning: Setting locale failed.</title>
		<link>http://www.fireblazt.com/2011/02/23/perl-warning-setting-locale-failed/</link>
		<comments>http://www.fireblazt.com/2011/02/23/perl-warning-setting-locale-failed/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 02:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[locales]]></category>

		<category><![CDATA[perl]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=139</guid>
		<description><![CDATA[If you encounter the error message like below:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LANG = "en_US.UTF-8"
 are supported and installed on your system.

To fix the issue, you need to reconfigure your locales
dpkg-reconfigure locales
]]></description>
			<content:encoded><![CDATA[<p>If you encounter the error message like below:</p>
<pre>perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LANG = "en_US.UTF-8"
 are supported and installed on your system.</pre>
<p><br class="spacer_" /></p>
<p>To fix the issue, you need to reconfigure your locales</p>
<pre>dpkg-reconfigure locales</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/23/perl-warning-setting-locale-failed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Facebook share image is not updated?</title>
		<link>http://www.fireblazt.com/2011/02/22/facebook-share-image-is-not-updated/</link>
		<comments>http://www.fireblazt.com/2011/02/22/facebook-share-image-is-not-updated/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 03:51:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=136</guid>
		<description><![CDATA[It&#8217;s normal because Facebook caches the images.
All you can do is &#8220;refresh&#8221; the URL using the tool they provide, called URL Linter.
http://developers.facebook.com/tools/lint/
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s normal because Facebook caches the images.</p>
<p>All you can do is &#8220;refresh&#8221; the URL using the tool they provide, called URL Linter.</p>
<p><a href="http://developers.facebook.com/tools/lint/">http://developers.facebook.com/tools/lint/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/22/facebook-share-image-is-not-updated/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VPS/Amazon EC2 high load but low CPU</title>
		<link>http://www.fireblazt.com/2011/02/17/vpsamazon-ec2-high-load-but-low-cpu/</link>
		<comments>http://www.fireblazt.com/2011/02/17/vpsamazon-ec2-high-load-but-low-cpu/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 06:50:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Amazon AWS]]></category>

		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=134</guid>
		<description><![CDATA[It&#8217;s normal for VPS or Amazon EC2 instance for having high load low cpu situation.
Mostly caused by bad I/O performance.
Two solutions:
- For vps/amazon,  two medium instances is better than one large instance.
- Move to dedicated server
]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s normal for VPS or Amazon EC2 instance for having high load low cpu situation.</p>
<p>Mostly caused by bad I/O performance.</p>
<p>Two solutions:</p>
<p>- For vps/amazon,  two medium instances is better than one large instance.</p>
<p>- Move to dedicated server</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/17/vpsamazon-ec2-high-load-but-low-cpu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Amazon EC2 internal IP keeps changing?</title>
		<link>http://www.fireblazt.com/2011/02/17/amazon-ec2-internal-ip-keeps-changing/</link>
		<comments>http://www.fireblazt.com/2011/02/17/amazon-ec2-internal-ip-keeps-changing/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 04:14:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Amazon AWS]]></category>

		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=132</guid>
		<description><![CDATA[There is a good article on alestic about it.
Link: http://alestic.com/2009/06/ec2-elastic-ip-internal
Article:
Amazon EC2 supports Elastic IP Addresses to implement the effect of having a static IP address for public  servers running on EC2.  You can point the Elastic IP at any of your EC2  instances, changing the active instance at any time, without changing [...]]]></description>
			<content:encoded><![CDATA[<p>There is a good article on alestic about it.</p>
<p>Link: http://alestic.com/2009/06/ec2-elastic-ip-internal</p>
<p>Article:</p>
<p>Amazon EC2 supports <a href="http://ec2elasticip.notlong.com/">Elastic IP Addresses</a> to implement the effect of having a static IP address for public  servers running on EC2.  You can point the Elastic IP at any of your EC2  instances, changing the active instance at any time, without changing  the IP address seen by the public outside of EC2.</p>
<p>This is a valuable feature for things like web and email servers,  especially if you need to replace a failing server or upgrade or  downgrade the hardware capabilities of the server, but read on for an  insiders’ secret way to use Elastic IP addresses for non-public servers.</p>
<h2>Internal Servers</h2>
<p>Not all servers should be publicly accessible.  For example, you may  have an internal EC2 instance which hosts your database server accessed  by other application instances inside EC2.  You want to architect your  installation so that you can replace the database server (instance  failure, resizing, etc) but you want to make it easy to get all your  application servers to start using the new instance.</p>
<p>There are a number of design approaches which people have used to accomplish this, including:</p>
<ol>
<li>
<p>Hard code the internal IP address into the applications and  modify it whenever the internal server changes to a new instance (ugh  and ouch).</p>
</li>
<li>
<p>Run your own DNS server (or use an external DNS service) and  change the IP address of the internal hostname to the new internal IP  address (extra work and potentially extra failover time waiting for DNS  propagation).</p>
</li>
<li>
<p>Store the internal IP address in something like SimpleDB and  change it when you want to point to a new EC2 instance (extra work and  requires extra coding for clients to keep checking the SimpleDB mapping)</p>
</li>
</ol>
<p>The following approach is the one I use and is the topic of the rest of this article:</p>
<ol>
<li>
<p>Assign an Elastic IP to the internal instance and use  the external Elastic IP DNS name.  To switch servers, simply re-assign  the Elastic IP to a new EC2 instance</p>
</li>
</ol>
<p>This last option uses a little-known feature of the Elastic IP Address system as implemented by Amazon EC2:</p>
<blockquote><p><strong>When an EC2 instance queries the external DNS name of an Elastic IP, the EC2 DNS server returns the <em>internal</em> IP address of the instance to which the Elastic IP address is currently assigned.</strong></p>
</blockquote>
<p>You may need to read that a couple times to grasp the implications as  it is non-obvious that an “external” name will return an “internal”  address.</p>
<h2>Setting Up</h2>
<p>You can create an Elastic IP address in an number of ways including the <a href="http://ec2console.notlong.com/">EC2 Console</a> or the <a href="http://ec2apitools.notlong.com/">EC2 API command line tools</a>.  For example:</p>
<pre><code>$ ec2-allocate-address
ADDRESS 75.101.137.243</code></pre>
<p>The address returned at this point is the external Elastic IP  address.  You don’t want to use this external IP address directly for  internal server access since you would be charged for network traffic.</p>
<p>The next step is to assign the Elastic IP address to an EC2 instance (which is going to be your internal server):</p>
<pre><code>$ ec2-associate-address -i i-07612d6e 75.101.137.243
ADDRESS 75.101.137.243  i-07612d6e</code></pre>
<p>Once the Elastic IP has been assigned to an instance, you can describe that instance to find the <em>external</em> DNS name (which will include the external Elastic IP address in it):</p>
<pre><code>$ ec2-describe-instances i-07612d6e | egrep ^INSTANCE | cut -f4
ec2-75-101-137-243.compute-1.amazonaws.com</code></pre>
<p>This is the permanent external DNS name for that Elastic IP address  no matter how many times you change the instance to which it is  assigned.  If you query this DNS name from <em>outside</em> of EC2, it will resolve to the external IP address as shown above:</p>
<pre><code>$ dig +short ec2-75-101-137-243.compute-1.amazonaws.com
75.101.137.243</code></pre>
<p>However, if you query this DNS name from <em>inside</em> an EC2 instance, it will resolve to the <em>internal</em> IP address for the instance to which it is currently assigned:</p>
<pre><code>$ dig +short ec2-75-101-137-243.compute-1.amazonaws.com
10.254.171.132</code></pre>
<p>You can now use this external DNS name in your applications on EC2  instances to communicate with the server over the internal EC2 network  and you won’t be charged for the network traffic as long as you’re in  the same EC2 availability zone.</p>
<h2>Changing Servers</h2>
<p>If you ever need to move the service to a new EC2 instance, simply reassign the Elastic IP address to the new EC2 instance:</p>
<pre><code>$ ec2-associate-address -i i-3b783452 75.101.137.243
ADDRESS 75.101.137.243  i-3b783452</code></pre>
<p>and the original external DNS name will immediately resolve to the internal IP address of the new instance:</p>
<pre><code>$ dig +short ec2-75-101-137-243.compute-1.amazonaws.com
10.254.171.132</code></pre>
<p>Existing connections will fail and new connections to the external  DNS name will automatically be opened on the new instance and</p>
<h2>Using CNAME</h2>
<p>It is not entirely intuitive to have your application use names like <code>ec2-75-101-137-243.compute-1.amazonaws.com</code> but you can make it clearer by creating a permanent entry in your DNS  which points to that name with a CNAME alias.  For example, using bind:</p>
<pre><code>db.example.com.    CNAME    ec2-75-101-137-243.compute-1.amazonaws.com.</code></pre>
<p>You can then use <code>db.example.com</code> to refer to the server internally and still not have to update your DNS when you change instances.</p>
<h2>Further Notes</h2>
<p>Even though you are using an Elastic IP address, you don’t need (and  often don’t want) to allow external users to be able to access your  internal servers.  For example, it is just asking for trouble to expose a  MySQL server to the Internet.  Keep the security groups tight so that  the internal servers and services can only be accessed from your other  EC2 instances.</p>
<p>Open TCP connections to the original server will not survive when the  Elastic IP address is assigned to a new EC2 instance.  Some  applications and clients will automatically attempt to re-open a failed  connection, getting through to the new server on the new internal IP  address, but other applications may need to be kicked or signaled so  they attempt a new connection to the server.</p>
<p>When using this approach, you need one Elastic IP address for each  internal server which needs to be addressed.  AWS accounts default to a  limit of 5 Elastic IP addresses, but you can <a href="http://ec2elasticiplimit.notlong.com/">request an increased limit</a>.</p>
<p>How do you solve the problem of connecting internal EC2 servers to each other?</p>
<p>Update 2009-07-20: Correct example host name.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/17/amazon-ec2-internal-ip-keeps-changing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Debian/Ubuntu bash: dig: command not found</title>
		<link>http://www.fireblazt.com/2011/02/17/debianubuntu-bash-dig-command-not-found/</link>
		<comments>http://www.fireblazt.com/2011/02/17/debianubuntu-bash-dig-command-not-found/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 04:09:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=130</guid>
		<description><![CDATA[dig not found?
bash: dig: command not found
just install dnsutils
apt-get install dnsutils
]]></description>
			<content:encoded><![CDATA[<p>dig not found?</p>
<p>bash: dig: command not found</p>
<p>just install dnsutils</p>
<p>apt-get install dnsutils</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/17/debianubuntu-bash-dig-command-not-found/feed/</wfw:commentRss>
		</item>
		<item>
		<title>process xxxx going graceful shutdown, sending SIGTERM</title>
		<link>http://www.fireblazt.com/2011/02/17/process-xxxx-going-graceful-shutdown-sending-sigterm/</link>
		<comments>http://www.fireblazt.com/2011/02/17/process-xxxx-going-graceful-shutdown-sending-sigterm/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 03:48:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=128</guid>
		<description><![CDATA[If you are experiencing the code below, that means your script is taking too long to process.
- Either increase IPCCommTimeout
- Find the bottleneck (Database server timeout maybe?) or bad algorithm


[Thu Feb 17 03:42:23 2011] [notice] mod_fcgid: process 10081 going graceful shutdown, sending SIGTERM
[Thu Feb 17 03:42:29 2011] [notice] mod_fcgid: process /home/xxxx/public_html/index.php(10081) exit(communication error), terminated by [...]]]></description>
			<content:encoded><![CDATA[<p>If you are experiencing the code below, that means your script is taking too long to process.</p>
<p>- Either increase IPCCommTimeout</p>
<p>- Find the bottleneck (Database server timeout maybe?) or bad algorithm</p>
<pre>

[Thu Feb 17 03:42:23 2011] [notice] mod_fcgid: process 10081 going graceful shutdown, sending SIGTERM
[Thu Feb 17 03:42:29 2011] [notice] mod_fcgid: process /home/xxxx/public_html/index.php(10081) exit(communication error), terminated by calling exit(), return code: 0
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/17/process-xxxx-going-graceful-shutdown-sending-sigterm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>mod_fcgid: process /home/xxx/public_html/index.php  exit(server exited), terminated by calling exit(), return code:</title>
		<link>http://www.fireblazt.com/2011/02/17/mod_fcgid-process-homexxxpublic_htmlindexphp-exitserver-exited-terminated-by-calling-exit-return-code/</link>
		<comments>http://www.fireblazt.com/2011/02/17/mod_fcgid-process-homexxxpublic_htmlindexphp-exitserver-exited-terminated-by-calling-exit-return-code/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 03:18:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=121</guid>
		<description><![CDATA[If you are setting Apache + PHP in FastCGI mode and having these error messages, probably your fcgi script is not executable.



[Thu Feb 17 02:49:21 2011] [notice] mod_fcgid: call /home/xxx/public_html/inpo.php with wrapper /var/www/php-fcgi-scripts/xxx/php-fcgi-starter
suexec policy violation: see suexec log for more details
[Thu Feb 17 02:49:22 2011] [notice] mod_fcgid: call /home/xxx/public_html/inpo.php with wrapper /var/www/php-fcgi-scripts/xxx/php-fcgi-starter
suexec policy violation: see [...]]]></description>
			<content:encoded><![CDATA[<p>If you are setting Apache + PHP in FastCGI mode and having these error messages, probably your fcgi script is not executable.</p>
<p><br class="spacer_" /></p>
<pre>

[Thu Feb 17 02:49:21 2011] [notice] mod_fcgid: call /home/xxx/public_html/inpo.php with wrapper /var/www/php-fcgi-scripts/xxx/php-fcgi-starter
suexec policy violation: see suexec log for more details
[Thu Feb 17 02:49:22 2011] [notice] mod_fcgid: call /home/xxx/public_html/inpo.php with wrapper /var/www/php-fcgi-scripts/xxx/php-fcgi-starter
suexec policy violation: see suexec log for more details
[Thu Feb 17 02:49:25 2011] [notice] mod_fcgid: process /home/xxx/public_html/index.php(1511) exit(communication error), terminated by calling exit(), return code: 121
[Thu Feb 17 02:49:25 2011] [notice] mod_fcgid: process /home/xxx/public_html/index.php(1510) exit(server exited), terminated by calling exit(), return code: 121
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/17/mod_fcgid-process-homexxxpublic_htmlindexphp-exitserver-exited-terminated-by-calling-exit-return-code/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ubuntu/Debian phpize: command not found</title>
		<link>http://www.fireblazt.com/2011/02/17/ubuntudebian-phpize-command-not-found/</link>
		<comments>http://www.fireblazt.com/2011/02/17/ubuntudebian-phpize-command-not-found/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 03:18:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=124</guid>
		<description><![CDATA[install php5-dev package !!

apt-get install php5-dev
]]></description>
			<content:encoded><![CDATA[<p>install php5-dev package !!</p>
<p><br class="spacer_" /></p>
<pre>apt-get install php5-dev</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/17/ubuntudebian-phpize-command-not-found/feed/</wfw:commentRss>
		</item>
		<item>
		<title>[SOLVED] Apache2, FastCGI and PHPMyAdmin - 403 Forbidden</title>
		<link>http://www.fireblazt.com/2011/02/10/apache2-fastcgi-and-phpmyadmin/</link>
		<comments>http://www.fireblazt.com/2011/02/10/apache2-fastcgi-and-phpmyadmin/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 02:53:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Server]]></category>

		<category><![CDATA[fastcgi]]></category>

		<category><![CDATA[php5]]></category>

		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.fireblazt.com/?p=114</guid>
		<description><![CDATA[Having difficulties setting up PHPMyAdmin today, with Apache and FastCGI.
The things you need to take note is Options setting
Options Indexes MultiViews FollowSymLinks Includes +ExecCGI
The fix is you must set a new site/virtualhost with correct the Document Root.
Here is the settings for phpmyadmin. Yours should be similar.

ServerAdmin me@example.com
ServerName pma.example.com
ServerAlias www.pma.example.com
SuexecUserGroup pma pma
AddHandler fcgid-script .php
DocumentRoot /usr/share/phpmyadmin
DirectoryIndex index.htm [...]]]></description>
			<content:encoded><![CDATA[<p>Having difficulties setting up PHPMyAdmin today, with Apache and FastCGI.</p>
<p>The things you need to take note is Options setting</p>
<pre>Options Indexes MultiViews FollowSymLinks Includes +ExecCGI</pre>
<p>The fix is you must set a new site/virtualhost with correct the Document Root.</p>
<p>Here is the settings for phpmyadmin. Yours should be similar.</p>
<pre><VirtualHost *:80>
ServerAdmin me@example.com
ServerName pma.example.com
ServerAlias www.pma.example.com
SuexecUserGroup pma pma
AddHandler fcgid-script .php
DocumentRoot /usr/share/phpmyadmin
DirectoryIndex index.htm index.html index.php
<Directory />
Options FollowSymLinks Includes
AllowOverride None
</Directory>
<Directory "/usr/share/phpmyadmin/">
Options Indexes MultiViews FollowSymLinks Includes +ExecCGI
FCGIWrapper /var/www/pma/fcgi/fcgi-starter .php
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/pma/logs/error.log
LogLevel warn
CustomLog /var/www/pma/logs/access.log combined
ServerSignature Off
</VirtualHost>
</pre>
<p>And if it complains about the blowfish_secret, maybe you haven&#8217;t set it. Modify /usr/share/phpmyadmin/config.inc.php</p>
<pre>
// include('/var/lib/phpmyadmin/blowfish_secret.inc.php');
$cfg['blowfish_secret'] = 'BlowfishPasswordhehehehe';

<br class="spacer_" /></pre>
<p>.a</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fireblazt.com/2011/02/10/apache2-fastcgi-and-phpmyadmin/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

