<?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>Learning On Demand &#187; PHP</title>
	<atom:link href="http://www.rasyid.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rasyid.net</link>
	<description>Learning anything from anywhere</description>
	<lastBuildDate>Sun, 12 Feb 2012 18:07:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Downgrade php version from 5.3 to 5.2 on Ubuntu 10.10 x86</title>
		<link>http://www.rasyid.net/2010/12/15/downgrade-php-version-from-5-3-to-5-2-on-ubuntu-10-10-x86/</link>
		<comments>http://www.rasyid.net/2010/12/15/downgrade-php-version-from-5-3-to-5-2-on-ubuntu-10-10-x86/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 16:19:19 +0000</pubDate>
		<dc:creator>alamster</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[downgrade php to php 5.2]]></category>
		<category><![CDATA[ubuntu 10.10]]></category>

		<guid isPermaLink="false">http://www.rasyid.net/?p=2730</guid>
		<description><![CDATA[New Server has come and again I must downgrade php version to 5.2 due to some problem on web application. I use same method I use for Ubuntu 10.04 for Ubuntu 10.10 x86. Let start Download required files for PHP 5.2 from Ubuntu Karmic repository #cd /etc/apt/sources.list.d #wget http://randyfay.com/sites/default/files/karmic_0.list # cd /etc/apt/preferences.d/ #wget http://randyfay.com/sites/default/files/php_1. # [...]]]></description>
			<content:encoded><![CDATA[<p>New Server has come and again I must downgrade php version to 5.2 due to some problem on web application. I use same method I use for Ubuntu 10.04 for Ubuntu 10.10 x86.</p>
<p>Let start</p>
<p><strong>Download required files for PHP 5.2 from Ubuntu Karmic repository</strong></p>
<blockquote><p>#cd /etc/apt/sources.list.d</p>
<p>#wget http://randyfay.com/sites/default/files/karmic_0.list</p>
<p># cd /etc/apt/preferences.d/</p>
<p>#wget http://randyfay.com/sites/default/files/php_1.</p>
<p># mv php_1. php</p></blockquote>
<p><strong>Find out installed PHP version</strong></p>
<blockquote><p># php -v</p>
<p>PHP 5.3.3-1ubuntu9.1 with Suhosin-Patch (cli) (built: Oct 15 2010 14:00:18)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies<br />
#</p>
<p># dpkg &#8211;get-selections | grep php<br />
libapache2-mod-php5Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php-dbÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php-pearÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-cliÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-commonÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-gdÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-mcryptÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-mysqlÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-xslÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install</p></blockquote>
<p><strong>Delete those PHP with apt-get remove</strong></p>
<blockquote><p># apt-get remove libapache2-mod-php5 php-db php-pear php5 php5-cli php5-common php5-gd php5-mcrypt php5-mysql php5-xsl</p>
<p># apt-get autoremove</p></blockquote>
<p>Add php5-mcrypt</p>
<blockquote><p># nano /etc/apt/preferences.d/php</p></blockquote>
<p>put these lines :</p>
<blockquote><p>Package: php5-mcrypt<br />
Pin: release a=karmic<br />
Pin-Priority: 991</p>
<p>at the bottom.</p></blockquote>
<p><strong>Update repository and reinstall PHP</strong></p>
<blockquote><p>#apt-get update</p>
<p>#apt-get install php5 libapache2-mod-php5 php-db php5-cli php5-common  php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache php5-mcrypt</p></blockquote>
<p><strong>Check PHP version</strong></p>
<blockquote><p># php -v</p></blockquote>
<p>PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies<br />
#</p>
<p>Great.</p>
<p>PHP successfully downgrade to 5.2.10 on Ubuntu 10.10 x86</p>
<hr/>Copyright &copy; 2012 <strong><a href="http://www.rasyid.net">Learning On Demand</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact alamster@gmail.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://redirectingat.com?id=23616X850408&xs=1&url=http%3A%2F%2Fblog.taragana.com%2Findex.php%2Farchive%2Fwordpress-plugins-provided-by-taraganacom%2F&sref=rss" rel="external nofollow">Plugin</a> by <a href="http://redirectingat.com?id=23616X850408&xs=1&url=http%3A%2F%2Fwww.taragana.com%2F&sref=rss" rel="external nofollow">Taragana</a></span><p><a href="http://redirectingat.com?id=23616X850408&xs=1&url=https%3A%2F%2Fplus.google.com%2F111076104099093236158%3Frel%3Dauthor&sref=rss" rel="author"><img src="http://www.google.com/images/icons/ui/gprofile_button-16.png" title="gprofile button 16 photo" alt="gprofile button 16 Downgrade php version from 5.3 to 5.2 on Ubuntu 10.10 x86" /></a></p><ul><li>downgrade php 5 3 to 5 2 ubuntu 10 10</li><li>ubuntu 10 10 downgrade php</li><li>downgrade php 5 3 to 5 2 ubuntu</li><li>downgrade php ubuntu 10 10</li><li>ubuntu 10 10 php downgrade</li></ul>
<div class="skimlinks-disclosure-button"><p><script class="skimlinks_ref_script" type="text/javascript" src="http://static.skimlinks.com/api/ref.js?p=23616&amp;d=850408&amp;t=1"></script></p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.rasyid.net/2010/12/15/downgrade-php-version-from-5-3-to-5-2-on-ubuntu-10-10-x86/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Downgrade php version from 5.3 to 5.2 on Ubuntu 10.04 i386</title>
		<link>http://www.rasyid.net/2010/12/10/downgrade-php-version-from-5-3-to-5-2-on-ubuntu-10-04-i386/</link>
		<comments>http://www.rasyid.net/2010/12/10/downgrade-php-version-from-5-3-to-5-2-on-ubuntu-10-04-i386/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 10:49:36 +0000</pubDate>
		<dc:creator>alamster</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[downgrade php]]></category>
		<category><![CDATA[downgrade ubuntu i386]]></category>

		<guid isPermaLink="false">http://www.rasyid.net/?p=2726</guid>
		<description><![CDATA[I have chance to install new server with standard requirement. SSH, Bind9 and LAMP. All process is smooth using i386 version of Ubuntu 10.04 but my friend complain about his web application not work well and after little investigation it looks like due to PHP version. Quick search on Google lead me to RandyFay post [...]]]></description>
			<content:encoded><![CDATA[<p>I have chance to install new server with standard requirement. SSH, Bind9 and LAMP.</p>
<p>All process is smooth using i386 version of Ubuntu 10.04 but my friend complain about his web application not work well and after little investigation it looks like due to PHP version.</p>
<p>Quick search on Google lead me to <a href="http://redirectingat.com?id=23616X850408&xs=1&url=http%3A%2F%2Frandyfay.com%2Fnode%2F63&sref=rss" target="_blank" rel="external nofollow">RandyFay</a> post about downgrade PHP version to 5.2 on Ubuntu 10.04</p>
<p>I follow the method and rewrite it with a few things that might useful for newbie like me <img src='http://www.rasyid.net/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Downgrade php version from 5.3 to 5.2 on Ubuntu 10.04 i386" class='wp-smiley' title="icon smile photo" /> </p>
<p>Note :</p>
<p>I use ubuntu 10.04 i386 and username : alam</p>
<p>Let start</p>
<p><strong>Download required files for PHP 5.2 from Ubuntu Karmic repository</strong></p>
<blockquote><p># wget http://randyfay.com/sites/default/files/karmic_0.list</p>
<p># mv /home/pusda/karmic_0.list /etc/apt/sources.list.d</p>
<p># wget http://randyfay.com/sites/default/files/php_1.</p>
<p># mv /home/pusda/php_1. /etc/apt/preferences.d/php</p></blockquote>
<p><strong>Find out installed PHP version</strong></p>
<blockquote><p># dpkg &#8211;get-selections | grep php</p></blockquote>
<p>libapache2-mod-php5Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php-dbÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php-pearÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-cliÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-commonÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-gdÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install<br />
php5-mcryptÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  deinstall<br />
php5-mysqlÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  install</p>
<p><strong>Delete those PHP with apt-get remove</strong></p>
<blockquote><p># apt-get remove libapache2-mod-php5 php-db php-pear php5 php5-cli php5-common php5-gd php5-mcrypt php5-mysql</p>
<p># apt-get autoremove</p></blockquote>
<p><strong>Update repository and reinstall PHP</strong></p>
<blockquote><p>#apt-get update</p>
<p>#apt-get install php5 libapache2-mod-php5 php-db php5-cli php5-common php5-xsl php5-gd php-pear php5-mysql php5-curl php5-memcache</p></blockquote>
<p><strong>Check PHP version</strong></p>
<blockquote><p># php -v</p></blockquote>
<p>PHP Warning:Â  PHP Startup: Unable to load dynamic library &#8216;/usr/lib/php5/20060613+lfs/mcrypt.so&#8217; &#8211; /usr/lib/php5/20060613+lfs/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0<br />
PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies<br />
#</p>
<p><strong>Dealing with php5-mcrypt error</strong></p>
<blockquote><p># apt-get install php5-mcrypt</p></blockquote>
<p>Reading package lists&#8230; Done<br />
Building dependency tree<br />
Reading state information&#8230; Done<br />
Some packages could not be installed. This may mean that you have<br />
requested an impossible situation or if you are using the unstable<br />
distribution that some required packages have not yet been created<br />
or been moved out of Incoming.<br />
The following information may help to resolve the situation:</p>
<p>The following packages have unmet dependencies:<br />
php5-mcrypt: Depends: phpapi-20090626+lfs<br />
E: Broken packages<br />
#</p>
<p>Quick solution for php5-mcrypt installation error</p>
<blockquote><p># nano /etc/apt/preferences.d/php</p></blockquote>
<p>put these lines :</p>
<blockquote><p>Package: php5-mcrypt<br />
Pin: release a=karmic<br />
Pin-Priority: 991</p>
<p>at the bottom.</p></blockquote>
<p><strong>Try reinstall php5-mcrypt</strong></p>
<blockquote><p># apt-get install php5-mcrypt</p></blockquote>
<p>Reading package lists&#8230; Done<br />
Building dependency tree<br />
Reading state information&#8230; Done<br />
The following extra packages will be installed:<br />
libmcrypt4<br />
Suggested packages:<br />
libmcrypt-dev mcrypt<br />
The following NEW packages will be installed:<br />
libmcrypt4 php5-mcrypt<br />
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.<br />
Need to get 91.4kB of archives.<br />
After this operation, 332kB of additional disk space will be used.<br />
Do you want to continue [Y/n]?y</p>
<p><strong>Recheck php version after install php5-mcrypt<br />
</strong></p>
<blockquote><p># php -v</p></blockquote>
<p>PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies<br />
#</p>
<p>Great.</p>
<p>PHP successfully downgrade to 5.2.10</p>
<hr/>Copyright &copy; 2012 <strong><a href="http://www.rasyid.net">Learning On Demand</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact alamster@gmail.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://redirectingat.com?id=23616X850408&xs=1&url=http%3A%2F%2Fblog.taragana.com%2Findex.php%2Farchive%2Fwordpress-plugins-provided-by-taraganacom%2F&sref=rss" rel="external nofollow">Plugin</a> by <a href="http://redirectingat.com?id=23616X850408&xs=1&url=http%3A%2F%2Fwww.taragana.com%2F&sref=rss" rel="external nofollow">Taragana</a></span><p><a href="http://redirectingat.com?id=23616X850408&xs=1&url=https%3A%2F%2Fplus.google.com%2F111076104099093236158%3Frel%3Dauthor&sref=rss" rel="author"><img src="http://www.google.com/images/icons/ui/gprofile_button-16.png" title="gprofile button 16 photo" alt="gprofile button 16 Downgrade php version from 5.3 to 5.2 on Ubuntu 10.04 i386" /></a></p><ul><li>phpapi-20090626 lfs</li><li>unable to load dynamic library /usr/lib/php5/20090626 lfs/msql so</li><li>PHP Startup: Unable to load dynamic library /usr/lib/php5/20090626 lfs/msql so</li><li>PHP Warning: PHP Startup: Unable to load dynamic library /usr/lib/php5/20090626 lfs/msql so</li><li>php5-curl: Depends: phpapi-20090626 lfs</li></ul>
<div class="skimlinks-disclosure-button"><p><script class="skimlinks_ref_script" type="text/javascript" src="http://static.skimlinks.com/api/ref.js?p=23616&amp;d=850408&amp;t=1"></script></p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.rasyid.net/2010/12/10/downgrade-php-version-from-5-3-to-5-2-on-ubuntu-10-04-i386/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

