<?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>Linux System Admins Blog &#187; Centos</title>
	<atom:link href="http://linuxsysadminblog.com/category/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxsysadminblog.com</link>
	<description>System admins of Promet - an e-commerce, high availability Open Source web shop - share their findings</description>
	<lastBuildDate>Sat, 10 Jul 2010 01:33:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mail Relay Issue on Cpanel Server</title>
		<link>http://linuxsysadminblog.com/2010/02/mail-relay-issue-on-cpanel-server/</link>
		<comments>http://linuxsysadminblog.com/2010/02/mail-relay-issue-on-cpanel-server/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 14:05:00 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[relayers]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=1050</guid>
		<description><![CDATA[I noticed lots of email being relayed on one of our shared hosting server, CentOS5 with Cpanel and running Exim, and the strange thing is that the email server (MX) for these accounts are pointing to Google (GoogleApps), and we have correct entries for localdomains and remotedomains for these account.  The relayers (&#8216;From&#8217; server/address) [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed lots of email being relayed on one of our shared hosting server, CentOS5 with Cpanel and running Exim, and the strange thing is that the email server (MX) for these accounts are pointing to Google (GoogleApps), and we have correct entries for <em>localdomains</em> and <em>remotedomains</em> for these account.  The relayers (<em>&#8216;From&#8217;</em> server/address) looks like spam anyway.  From the mail logs I noticed that the relayed messages have &#8216;<em>fixed_login</em>&#8216; and key (&#8216;<em>rsa-sha1</em>&#8216;) for their authentications.</p>
<p>Since the mail server for these accounts are pointing to other servers, I deleted all the email accounts, forwarders, mailinglists, etc.  After this I&#8217;ve seen sending error/failure messages from mail logs of the said accounts  It shows &#8216;<em>fixed_login authenticator failed for hostxx&#8217; [535 Incorrect authentication data]</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2010/02/mail-relay-issue-on-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOS 5.4 released</title>
		<link>http://linuxsysadminblog.com/2009/11/centos-5-4-released/</link>
		<comments>http://linuxsysadminblog.com/2009/11/centos-5-4-released/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 07:41:01 +0000</pubDate>
		<dc:creator>marius</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[releases]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=957</guid>
		<description><![CDATA[Almost two months after RHEL5.4, Centos 5.4 was released on the 21st October. This version includes various changes into the virtualization field and it includes support for KVM (kernel-based virtual machine) hypervisor and the Xen hypervisor.
Also this release features many bug fixes and security updates, and should be an easy upgrade for users running centos5.x:
yum [...]]]></description>
			<content:encoded><![CDATA[<p>Almost two months after RHEL5.4, <strong>Centos 5.4</strong> was <a href="http://lists.centos.org/pipermail/centos-announce/2009-October/016195.html" target="_blank">released</a> on the <strong>21st October</strong>. This version includes various changes into the virtualization field and it includes support for <strong>KVM</strong> (kernel-based virtual machine) hypervisor and the <strong>Xen</strong> hypervisor.</p>
<p>Also this release features many bug fixes and security updates, and should be an easy upgrade for users running centos5.x:<br />
<code>yum update</code></p>
<p>For the full list of packages changed/added please see the centos5.4 release notes: <a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.4" target="_blank">http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.4</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/11/centos-5-4-released/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>HowTo display PHP errors when you don&#8217;t have access to php.ini</title>
		<link>http://linuxsysadminblog.com/2009/09/howto-display-php-errors-when-you-dont-have-access-to-php-ini/</link>
		<comments>http://linuxsysadminblog.com/2009/09/howto-display-php-errors-when-you-dont-have-access-to-php-ini/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 12:10:34 +0000</pubDate>
		<dc:creator>marius</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=867</guid>
		<description><![CDATA[If you are using a shared server, or just have a limited account on your company servers, you might not have access to your php configuration file php.ini (this is usually found under /etc/php.ini in rhel/centos and /etc/php5/apache2/php.ini in debian/ubuntu). Still, in many situations it might be needed to enable php errors in the browser [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using a shared server, or just have a limited account on your company servers, you might <strong>not have access</strong> to your php configuration file <strong>php.ini</strong> (this is usually found under <em>/etc/php.ini</em> in rhel/centos and <em>/etc/php5/apache2/php.ini</em> in debian/ubuntu). Still, in many situations it might be needed to <strong>enable php errors</strong> in the browser so you can see what is the actual problem instead of an empty page (if the server has error reporting disabled as most production systems should have).</p>
<p>In order to enable error reporting for your php script or application include inside your code the following lines:<br />
<code>error_reporting(E_ALL);<br />
ini_set("display_errors", 1);</code><br />
and this will result in displaying in the browser any errors your application might have.</p>
<p>ps: once you are done with this and fixed the issue, don&#8217;t forget to remove the error reporting lines, as we don&#8217;t want our users/clients to see errors in the browser in case something went wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/09/howto-display-php-errors-when-you-dont-have-access-to-php-ini/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOS 4.8 finally released!</title>
		<link>http://linuxsysadminblog.com/2009/09/centos-4-8-finally-released/</link>
		<comments>http://linuxsysadminblog.com/2009/09/centos-4-8-finally-released/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 10:03:36 +0000</pubDate>
		<dc:creator>marius</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=842</guid>
		<description><![CDATA[After a long development time, Centos 4.8 was finally released on the 21st August. This is a good thing that after the latest problems between the centos developers, they were able to pull this out finally and now be able to focus on the upcoming 5.4 release.
There are no major changes in this update, mostly [...]]]></description>
			<content:encoded><![CDATA[<p>After a long development time, <strong>Centos 4.8</strong> was finally <a href="http://lists.centos.org/pipermail/centos-announce/2009-August/016106.html" target="_blank">released</a> on the 21st August. This is a good thing that after the latest <a href="http://www.centos.org/modules/news/article.php?storyid=381" target="_blank">problems</a> between the centos developers, they were able to pull this out finally and now be able to focus on the upcoming 5.4 release.</p>
<p>There are no major <a href="http://www.centos.org/docs/4/4.8/release_notes/" target="_blank">changes</a> in this update, mostly <em>bug fixes and security fixes</em>, and it should be a quick and easy upgrade for most people still running the 4.x branch (you should really consider upgrading to 5.x <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/09/centos-4-8-finally-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Task on Amazon EBS on CentOS AMI</title>
		<link>http://linuxsysadminblog.com/2009/07/task-on-amazon-ebs-on-centos-ami/</link>
		<comments>http://linuxsysadminblog.com/2009/07/task-on-amazon-ebs-on-centos-ami/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 08:43:51 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[ebs]]></category>
		<category><![CDATA[ec2]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=813</guid>
		<description><![CDATA[This is my second activity on using AWS &#8211; this time the use of EBS.
Objectives:

 Format a new EBS (10GB) and mount it on a running instance of private AMI (created on first activity &#8211; add link/ref to old post)
 Setup a MySQL server with the datastore on EBS partition
 Setup the partition(EBS) to start [...]]]></description>
			<content:encoded><![CDATA[<p>This is my second activity on using AWS &#8211; this time the use of <a href="http://aws.amazon.com/ebs/">EBS</a>.</p>
<p><strong>Objectives:</strong></p>
<ol>
<li> Format a new EBS (10GB) and mount it on a running instance of private AMI (created on first activity &#8211; add link/ref to old post)</li>
<li> Setup a MySQL server with the datastore on EBS partition</li>
<li> Setup the partition(EBS) to start at boot time of AMI</li>
</ol>
<p>Here, I will elaborate the steps (mostly commands) and some issues that I encountered along the way.  I also included the script (below) that i used for attaching the EBS to AMI at boot time. Reference <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1663">here</a>.  I will add an indicator on where i am running my commands, either on controling machine or on instance.  On variables or values i assumed that you already know how to get them, the ec2-describe-instances/volume..etc.  If the ec2 commands is not available on your system make sure you have the <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88">ec2 api tools</a> or have your environment variables configured.<br />
<span id="more-813"></span><strong>Objective #1: Format EBS and mount on a running instance</strong></p>
<ul>
<li> Run instance of private ami and take note of the zone (default is us-east-1a &#8211; not sure <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )<br />
<code>controlling machine$:  ec2-run-instances -z us-east-1a --key YOURKEYPAIR ami-xxxxx</code></li>
<li>Create ebs volume with 10GB size.  Note the use of same zone so the volume can be attached to the instance above.  Check the EBS docs for more details on Zones.<br />
<code>controlling machine$:  ec2-create-volume -z us-east-1a -s 10</code></li>
<li>Attach the zone to your instance, ex: as /dev/sdh<br />
<code>controlling machine$:  ec2-attach-volume -d /dev/sdh -i i-IIII1111 vol-VVVV1111</code></li>
<li>Login to your instance and format your ebs drive on /dev/sdh. It&#8217;s your choice on what filesystem to use.  For my activity, i used xfs as i was advised that it is easier/faster to increase/shrink xfs filesystem compared to ext3 &#8211; and on the above reference xfs as used.<br />
controlling machine$:  ssh -i ssh_key root@ec2.xxxxx.amazonaws.com<br />
(host may not be on this format, just refer to the details on your instance)<br />
<code>instance$: yum install xfsprogs<br />
instance$: modprobe xfs<br />
instance$: mkfs.xfs /dev/sdh</code></li>
<li>Mount the ebs volume.<br />
instance$: mount -t xfs /dev/sdh /ebs</li>
</ul>
<p><strong>Objective #2: Setup a MySQL server with the datastore on EBS partition</strong></p>
<ul>
<li>Install mysql on your running instance, edit /etc/my.cnf and set the value for datadir to /ebs (my example), and start your MySQL.<br />
<code>instance$: yum install mysql-server<br />
instance$: vi /etc/my.cnf<br />
instance$: /etc/init.d/mysqld start</code></li>
<li>Create a sample database to test<br />
<code>instance$: mysql<br />
mysql&gt; create database ebstest;<br />
mysql&gt; quit<br />
instance$: ls /ebs/</code></li>
</ul>
<p><strong>Objective #3: Setup the partition(EBS) to start at boot time of AMI</strong></p>
<ul>
<li>I was advised here to create an init script that will attach the ebs volume to my running instance and i was given a sample script (for debian) that i modified to my need (for CentOS) and added some stuff.  I encountered several issues here as my init script failed to start correctly, like my environment variable is not available or incorrect paths etc.  And was able to bundle four or five times. <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   In short the script (below) does the automation, i only need to add this on my start up &#8211; so for the process, please check or continue reading the notes/comments on the script below.  Btw, I just added the section to start MySQL inside the init script, but of course you can separate them.</li>
<li>After creating a init script with the correct variables/filenames, bundle or create new AMI.  Commands below are summary from a video tutorial &#8211; i forgot the link <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Run help for each command to get details on the options used, ex: &#8216;ec2-bundle-vol -h&#8217;.<br />
<code>instance$: cd /mnt<br />
instance$: mkdir ami<br />
instance$: ec2-bundle-vol -d /mnt/ami -k /root/.ec2/pk.xxx.pem -c /root/.ec2/cert.xxx.pem -u xxxx-xxxx-xxxx<br />
instance$: ec2-upload-bundle -b bucket1 -m /mnt/ami/image.manifest.xml -a XXXXXX -s xxxXXXXx<br />
controlling machine$: ec2-register bucket1/image.manifest.xml</code></li>
<li>Test your new AMI &#8211; run new instance and check if your ebs volume is attached &#8211; goodluck!</li>
</ul>
<p><strong>Init Script Here: <a href="http://linuxsysadminblog.com/wp-content/uploads/2009/07/mountebs"> mountebs</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/07/task-on-amazon-ebs-on-centos-ami/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Waiting for SSH login prompt</title>
		<link>http://linuxsysadminblog.com/2009/07/waiting-for-ssh-login-prompt/</link>
		<comments>http://linuxsysadminblog.com/2009/07/waiting-for-ssh-login-prompt/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 22:45:55 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[lag]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=799</guid>
		<description><![CDATA[Are you often waiting over 1 minute to get a ssh prompt? This can be caused by several things however more often then not is a missing PTR record for server address and enabled GSSAPIAuthentication in ssh_config. GSSAPIAuthentiction is Kerberos 5 centralized authentication/authorization mechanism that relies on resolving a hostname for proper operation, when it [...]]]></description>
			<content:encoded><![CDATA[<p>Are you often waiting over 1 minute to get a ssh prompt? This can be caused by several things however more often then not is a missing PTR record for server address and enabled GSSAPIAuthentication in ssh_config. GSSAPIAuthentiction is Kerberos 5 centralized authentication/authorization mechanism that relies on resolving a hostname for proper operation, when it cannot do so it tries 3 times before falling back on the next authentication mechanism.</p>
<p>First you need to see where the login process gets hung up:<br />
<code>ssh -vvv server_address<br />
debug1: Authentications that can continue: publickey,gssapi-with-mic,password<br />
debug3: start over, passed a different list publickey,gssapi-with-mic,password<br />
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password<br />
debug3: authmethod_lookup gssapi-with-mic<br />
debug3: remaining preferred: publickey,keyboard-interactive,password<br />
debug3: authmethod_is_enabled gssapi-with-mic<br />
debug1: Next authentication method: gssapi-with-mic<br />
debug3: Trying to reverse map address server_address.<br />
debug1: Unspecified GSS failure.  Minor code may provide more information<br />
No credentials cache found<br />
debug1: Unspecified GSS failure.  Minor code may provide more information<br />
No credentials cache found<br />
debug1: Unspecified GSS failure.  Minor code may provide more information<br />
debug2: we did not send a packet, disable method</code></p>
<p>and check if a PTR record exists:<br />
<code>[max@linux ~]$ dig -x server_address<br />
; <<>> DiG 9.5.1-P2-RedHat-9.5.1-2.P2.fc10 <<>> -x server_address<br />
;; global options:  printcmd<br />
;; Got answer:<br />
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 20960<br />
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</code></p>
<p><code>;; QUESTION SECTION:<br />
;sserdda_revres.in-addr.arpa.	IN	PTR</code></p>
<p><code>;; Query time: 87 msec</code></p>
<p>Here we see that in fact we are being hung on the gssapi-with-mic method  and there is no PTR record for the host. The quickest and simples way to resolve this is to disable gssapi-with-mic authmethod globally on the client.<br />
In RedHat/Fedora Linux edit /etc/ssh/ssh_config and make sure you have an uncommented "GSSAPIAuthentication no" line for Host *</p>
<p><code># Host *<br />
#   ForwardAgent no<br />
#   ForwardX11 no<br />
#   RhostsRSAAuthentication no<br />
#   RSAAuthentication yes<br />
#   PasswordAuthentication yes<br />
#   HostbasedAuthentication no<br />
     GSSAPIAuthentication no<br />
#   GSSAPIDelegateCredentials no</code></p>
<p>If you are using host-based configuration be sure to put this at the top of the file so it takes priority over the defaults below it.<br />
<code>Host server_name<br />
HostName server_address<br />
Port 22<br />
User max<br />
GSSAPIAuthentication no</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/07/waiting-for-ssh-login-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Amazon EC2 Setup (CentOS AMI)</title>
		<link>http://linuxsysadminblog.com/2009/06/my-first-amazon-ec2-setup-centos-ami/</link>
		<comments>http://linuxsysadminblog.com/2009/06/my-first-amazon-ec2-setup-centos-ami/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 12:52:12 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=761</guid>
		<description><![CDATA[Here&#8217;s my first try working with Amazon Web Services. Covered tasks are the following:
- getting familiar with AWS, specially EC2 and S3.
- working with EC2 instance using CentOS image &#8211; search, start/stop, and do some customization of an instance
- create AMIs (private) and start instance from it.
-  S3 buckets &#8211; upload files.
I based my [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my first try working with Amazon Web Services. Covered tasks are the following:<br />
- getting familiar with AWS, specially EC2 and S3.<br />
- working with EC2 instance using CentOS image &#8211; search, start/stop, and do some customization of an instance<br />
- create AMIs (private) and start instance from it.<br />
-  S3 buckets &#8211; upload files.</p>
<p>I based my instructions on previous post on <a href="http://linuxsysadminblog.com/2009/06/howto-get-started-with-amazon-ec2-api-tools/"><strong>Howto Get Started With Amazon EC2 API Tools</strong></a>, so I won&#8217;t give details on some steps.  And this post will cover mainly the steps taken to complete my objectives above.<br />
<span id="more-761"></span><br />
To start, I signed up for an account and enabled EC2 and S3 services, and generate X509 certificate.  Next, I selected a test server running CentOS 5.3 with Cpanel and installed <em>java</em> (openjdk 1.6, using <em>yum</em>) as a requirement.  </p>
<p>Then, download <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&#038;categoryID=88">EC2 API Tools</a> and extract to my working directory at <em>/myhome/.ec2/</em> and upload your private key and x509 certificates. Don&#8217;t forget to follow the filename format of cert-xxx.pem and pk-xx.pem.</p>
<p>Export shell variables (posted on the previous post) and specify the correct private and x509 path.  Then run source /myhome/.bashrc or open new terminal to load new environment variables.</p>
<p>Setup EC2 keypair. At first i used the certificate from different account but i got the error below:<br />
<code>Client.AuthFailure: AWS was not able to validate the provided access credentials</code><br />
I searched for this error and one suggestion is to chmod your certificate and key files to 600 but it didn&#8217;t help me.  My problem is on our account because one of my teammates changed our account password and probably generated new keys.  Anyway, this is where i signed up for a new account and proceeded without issues.</p>
<p>Search for the AMIs to use.  Following the steps listed on the instructions, I tried several AMI&#8217;s (start/stop processes).  I observed some AMI&#8217;s took longer to start compare to others but i have no idea why <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  Btw, you can also search for AMI&#8217;s, and start/stop them from Amazon Management Console (EC2 Dashboard).</p>
<p>My next task is to create my private AMIs and here&#8217;s a good video tutorial on <a href="http://s3.amazonaws.com/awsVideos/CustomizeAnExistingAMI/wmv/Customize an Existing AMI.wmv">Customizing an existing AMI and create your own AMI from it</a>.  From this part that I need to setup my S3 bucket or directory to store my AMI.  There&#8217;s a Firefox addon called <a href="https://addons.mozilla.org/en-US/firefox/addon/3247">S3Fox</a> that my friend suggested but unfortunately i can&#8217;t install it on my Firefox due to some errors.  I found and tried this <a href="http://www.bucketexplorer.com/">BucketExplorer</a> for creating my S3 Bucket.  Btw, this one is commercial and you can try it for 30 days.  I haven&#8217;t checked for other apps.  <img src='http://linuxsysadminblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Back to creating my private AMI based on the above video, I ran into issue with ec2-bundle-vol command as it is not included on the AMI that i used, so i search for other AMIs that includes the EC2 Tools and found one from RightScale (CentOS5V1_10.img.manifest.xml).</p>
<p>After this i was able to complete my private AMI and start new instance from it using the above steps without any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/06/my-first-amazon-ec2-setup-centos-ami/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Drupal / Civicrm Sites</title>
		<link>http://linuxsysadminblog.com/2009/06/moving-drupalcivicrm-sites/</link>
		<comments>http://linuxsysadminblog.com/2009/06/moving-drupalcivicrm-sites/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 10:39:10 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[civicrm]]></category>
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=743</guid>
		<description><![CDATA[In this guide i will provide the steps in moving Drupal sites with CiviCRM &#8211; with Drupal and CiviCRM in one or separate databases.  I will outline the steps and sample commands but won&#8217;t give much details, so feel free to ask if you need any clarifications.  Also, refer to my previous guide [...]]]></description>
			<content:encoded><![CDATA[<p>In this guide i will provide the steps in moving Drupal sites with CiviCRM &#8211; with Drupal and CiviCRM in one or separate databases.  I will outline the steps and sample commands but won&#8217;t give much details, so feel free to ask if you need any clarifications.  Also, refer to my previous guide on &#8220;<a href="http://linuxsysadminblog.com/2009/04/drupal-howto-duplicate-copy-drupal-site/">HowTo Duplicate or Copy Drupal Site</a>&#8221; for detailed instructions, commands, and sample shell scripts.</p>
<p><strong>Moving Files:</strong></p>
<ul>
<li>Copy Drupal file and preserve mode (ownerships, permissions, etc)<br />
Example: <code>cp -rp drupal_source drupal_destination</code><br />
Review your directory permissions on sites/default/files, sites/default/files/civicrm, and other directories.</li>
<p><span id="more-743"></span></p>
<li>Update references to Drupal url, path, and database details (name, user, pass, and host). Sample commands below using grep:<br />
<code>find /path/to/drupal -type f -exec perl -pi -e "s/example.com/example2.com/g" {} \;<br />
find /path/to/drupal -type f -exec perl -pi -e "s/public_html\/example/public_html\/example2/g" {} \;<br />
find /path/to/drupal -type f -exec perl -pi -e "s/db_name/db_name2/g" {} \;<br />
find /path/to/drupal -type f -exec perl -pi -e "s/db_user/db_user2/g" {} \;<br />
find /path/to/drupal -type f -exec perl -pi -e "s/db_pass/db_pass2/g" {} \;</code></li>
</ul>
<p><strong>Moving Database/s:</strong></p>
<p><strong>Case 1:  Combined CiviCRM and Drupal Database.</strong></p>
<ul>
<li>Create sql dump of source database.<br />
     Example: <code>mysqldump -Q -udb_user -pdbpass db_name &gt; db_name.sql</code></li>
<li>Import to destination database.<br />
    Example: <code>mysql -udb_user2 -pdbpass2 db_name2 &lt; db_name.sql</code></li>
<li>Update references to Drupal url, path, and database details (name, user, pass, and host) of non-CiviCRM tables.  You can use PhpMyAdmin to export this tables, then do the search/replace process on your local editor, and upload back the updates sql.  You can also dump the tables from using command line (but you&#8217;ll have a long list of tables) and do the grep (same as above) and re-import the updated sql file.</li>
<li>Update CiviCRM configurations from Drupal Admin section.  You need to update the &#8220;Resource URLs&#8221; and &#8220;Directories&#8221;.<br />
    <em>CiviCRM Admin Settings:  Administer Civicrm &gt; Global Settings &gt; Directories    (or use the direct url:  /civicrm/admin/setting/path?reset=1)<br />
    CiviCRM Admin Settings:  Administer Civicrm &gt; Global Settings &gt; Resource Urls  (or use the direct url:  /civicrm/admin/setting/url?reset=1)</em>
</li>
<li>Optional:  You can empty Sessions and Cache tables if you want.</li>
</ul>
<p><strong>Case 2:  Separate CiviCRM and Drupal Database </strong>(recommended install for CiviCRM).<br />
Process for this setup is almost the same as Case 1, the difference is on the import process for databases.  I&#8217;ll just provide the complete info below.</p>
<ul>
<li>Create sql dump of source databases.<br />
   Examples:<br />
<code>   mysqldump -Q -udb_user -pdbpass db_name_drupal &gt; db_name_drupal.sql<br />
   mysqldump -Q -udb_user -pdbpass db_name_civicrm &gt; db_name_civicrm.sql<br />
</code></li>
<li>Import directly the CiviCRM database.<br />
     Example: <code>mysql -udb_user2 -pdbpass2 db_name2_civicrm &lt; db_name_civicrm.sql</code></li>
<li>Update CiviCRM configurations from Drupal Admin section.  You need to update the &#8220;Resource URLs&#8221; and &#8220;Directories&#8221;.<br />
    <em>CiviCRM Admin Settings:  Administer Civicrm &gt; Global Settings &gt; Directories    (or use the direct url:  /civicrm/admin/setting/path?reset=1)<br />
    CiviCRM Admin Settings:  Administer Civicrm &gt; Global Settings &gt; Resource Urls  (or use the direct url:  /civicrm/admin/setting/url?reset=1)</em>
</li>
<li>Update references to Drupal url, path, and database details (name, user, pass, and host) of Drupal database dump.<br />
<code>perl -pi -e "s/example.com/example2.com/g"  db_name_drupal.sql<br />
perl -pi -e "s/public_html\/example/public_html\/example2/g"  db_name_drupal.sql</code></li>
<li>Import the Drupal database.<br />
    Example: <code>mysql -udb_user2 -pdbpass2 db_name2_drupal &lt; db_name_drupal.sql</code></li>
<li>Optional:  You can empty Sessions and Cache tables if you want.</li>
</ul>
<p>That&#8217;s All!</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/06/moving-drupalcivicrm-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install GNUPG PHP extension in Cpanel</title>
		<link>http://linuxsysadminblog.com/2009/05/install-gnupg-php-extension-in-cpanel/</link>
		<comments>http://linuxsysadminblog.com/2009/05/install-gnupg-php-extension-in-cpanel/#comments</comments>
		<pubDate>Thu, 21 May 2009 09:20:35 +0000</pubDate>
		<dc:creator>gerold</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[gnupg]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php extension]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=674</guid>
		<description><![CDATA[Here&#8217;s my quick howto on installing GNUPG PHP Pecl extension (pecl docs) in Cpanel.  Please note that this covers only the installation process and no further details on setting up gpg keys or using the function with extension or sample PHP scripts.
Installation process is very straightforward provided you met the requirements like php-pear, gnupg, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my quick howto on installing <a href="http://us2.php.net/manual/en/book.gnupg.php">GNUPG</a> PHP Pecl extension (<a href="http://pecl.php.net/package/gnupg/docs">pecl docs</a>) in Cpanel.  Please note that this covers only the installation process and no further details on setting up gpg keys or using the function with extension or sample PHP scripts.</p>
<p>Installation process is very straightforward provided you met the requirements like php-pear, gnupg, libgpg-error, and gpgme.  You can install it directly from WHM -> Module Installers -> PHP Pecl, enter &#8216;<em>gnupg</em>&#8216; and click the Install button.  You can do the same via shell with this command &#8216;<em>pecl install gnupg</em>&#8216;.  Then restart your Apache.  Be sure to double check if the extension was added to you <em>php.ini</em>.<br />
<span id="more-674"></span><br />
On Cpanel servers most of the requirements are present, like <em>php-pear</em> (if you compiled your apache/php with pear), <em>gnupg, libgpg-error</em>, etc, except for <a href="http://www.gnupg.org/gpgme.html"><em>gpgme</em></a> which is the main library used by <em>gnupg</em> extension.  Our system is running CentOS 4.7 with latest STABLE branch of Cpanel (S35075 at this time of writing), PHP 5.2.9 with pear and libgpg-error (version 1.0-1 only).  Only missing requirement was <em>gpgme</em> which i installed from source as it was not available on our default yum repository.  You can also install it from other repositories like <em>centos.karan.org</em>.  At this time the latest <em>gpgme</em> version is <a href="http://www.gnupg.org/download/index.en.html#gpgme">1.1.8</a> but I installed version 1.1.2 because it&#8217;s the latest version compatible with our libgpg.</p>
<p>I also encountered an error library path when I check the extension, <code>"error while loading shared libraries: libgpgme.so.11: cannot open shared object file: No such file or directory"</code>, so I had to add &#8216;<em>/usr/local/lib</em>&#8216; to <em>/etc/ld.so.conf</em> and run <em>ldconfig</em>, so that libraries in this directory are detected automatically.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/05/install-gnupg-php-extension-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rhel/centos x86_64 and i386 packages mess&#8230;</title>
		<link>http://linuxsysadminblog.com/2009/05/rhelcentos-x86_64-and-i386-packages-mess/</link>
		<comments>http://linuxsysadminblog.com/2009/05/rhelcentos-x86_64-and-i386-packages-mess/#comments</comments>
		<pubDate>Tue, 19 May 2009 09:30:51 +0000</pubDate>
		<dc:creator>marius</dc:creator>
				<category><![CDATA[CLI]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=665</guid>
		<description><![CDATA[Anyone running centos/rhel x86_64 systems has probably noticed that redhat has a strange way to install a mix of i386 and x86_64 rpms on such a systems. This is how redhat is using the 64bit architecture in a mixed way to be able to support also i386 applications. This is completely different from how for [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone running <strong>centos/rhel</strong> <strong>x86_64</strong> systems has probably noticed that redhat has a strange way to install a mix of i386 and x86_64 rpms on such a systems. This is how <strong>redhat </strong>is using the <span style="text-decoration: underline;">64bit architecture</span> in a mixed way to be able to support also i386 applications. This is completely different from how for example <strong>debian </strong>does this where you will not see by default any i386 libraries or duplicate applications installed (you can install and use ia32 libraries for compatibility reasons but the user is in full control on this process). The way how this works in rhel is <strong>confusing</strong>; let&#8217;s take a simple example (the commands are taken from a clean centos5.3 install with the base packages selected): let&#8217;s see what version of ncurses we have on the system:<br />
<code lang="bash">rpm -qa | grep ncurses<br />
ncurses-5.5-24.20060715<br />
ncurses-5.5-24.20060715</code><br />
what? why is this listed twice? hmm&#8230; Running: <em>rpm -qi ncurses-5.5-24.20060715</em> will also list the package twice (but doesn&#8217;t show the difference). We can assume one is <strong>i386 </strong>and one is <strong>x86_64</strong> right? but we can&#8217;t see this.</p>
<p><span id="more-665"></span>To overcome this issue, and at least have <strong>rpm report the proper versions</strong> we have to add in our <strong>rpmmacros </strong>file a new line like: <em>&#8220;%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}&#8221;</em> that will add to the rpm output the architecture and allow us to see the this:</p>
<pre><code lang="bash">cat >> ~/.rpmmacros
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}</code></pre>
<p>and now running the same command will return a more intuitive and meaningful:<br />
<code lang="bash">rpm -qa | grep ncurses<br />
ncurses-5.5-24.20060715.x86_64<br />
ncurses-5.5-24.20060715.i386</code></p>
<p>This doesn&#8217;t fix anything in how yum will install duplicate programs or libraries, but at least it will allow us to see the full name of the packages in rpm commands. Theoretically people should be able to add into <strong>yum.conf </strong>(this is the default anyway, so you might have it already):<br />
<code lang="bash">exactarch=1</code><br />
and <strong>yum </strong>will install by default the packages of the arch it is running on (x86_64 in our case). Still, this will not prevent i386 dependencies to show up and be installed. In case you want to completely ignore other arch packages add in the <strong>[main] </strong>section of <strong>/etc/yum.conf </strong>to exclude all 32bit packages,:<br />
<code lang="bash">exclude=*.i386 *.i586 *.i686</code><br />
and this will completely exclude them completely from yum operations. Please use this with care, and only if you have a full understanding of the implications to exclude those packages.</p>
<p>Even if you don&#8217;t exclude the 32bit packages as shown above, it is a good idea to add the <strong>arch </strong>to all yum operations (like install, remove, etc.), like:<br />
<code lang="bash">yum install ncurses.x86_64</code></p>
<p>Hopefully you found this post useful, and have now a better understanding on how rhel/centos use the i368 and x86_64 packages and libraries with rpm and yum on a 64bit installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/05/rhelcentos-x86_64-and-i386-packages-mess/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
