<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Web Server Hacks Blog - Hacks for Dedicated/VPS Servers, SSH, and Plesk</title>
	
	<link>http://webserverhacks.com</link>
	<description>Hacks for Dedicated/VPS Servers, SSH, and Plesk</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:59:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/webserverhacks" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="webserverhacks" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">webserverhacks</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to Reset Wordpress Password via MySQL Command Line!</title>
		<link>http://webserverhacks.com/web-server-hacks/how-to-reset-wordpress-password-via-mysql-command-line/</link>
		<comments>http://webserverhacks.com/web-server-hacks/how-to-reset-wordpress-password-via-mysql-command-line/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:59:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[mysql command line]]></category>
		<category><![CDATA[reset wordpress password]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=140</guid>
		<description><![CDATA[For those of you wondering how to reset your Wordpress admin password via MySQL command line, here&#8217;s how to do it:
Enter your MySQL command line with something like:
mysql -uroot -p
Then enter your password.
Once inside the MySQL command line do:
show databases;
and then find your database for the Wordpress blog that you want to change password.
use mydatabase; [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you wondering how to reset your Wordpress admin password via MySQL command line, here&#8217;s how to do it:</p>
<p>Enter your MySQL command line with something like:</p>
<p><strong>mysql -uroot -p</strong></p>
<p>Then enter your password.</p>
<p>Once inside the MySQL command line do:</p>
<p><strong>show databases;</strong></p>
<p>and then find your database for the Wordpress blog that you want to change password.</p>
<p><strong>use mydatabase; </strong></p>
<p>where mydatabase should be &#8220;your&#8221; database.</p>
<p>Then do:</p>
<p><strong>update wp_users  set user_pass =MD5(&#8217;typenewpasswordhere&#8217;) where id=1;</strong></p>
<p>to change the admin password.</p>
<p>That&#8217;s it!</p>
<p>You can also do:</p>
<p><strong>SELECT ID, user_login, user_pass FROM wp_users;</strong></p>
<p>to list current users.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/web-server-hacks/how-to-reset-wordpress-password-via-mysql-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Run as Root on Ubuntu/Debian – Avoid Annoying SUDO!</title>
		<link>http://webserverhacks.com/linux-commands/how-to-run-as-root-on-ubuntudebian-avoid-annoying-sudo/</link>
		<comments>http://webserverhacks.com/linux-commands/how-to-run-as-root-on-ubuntudebian-avoid-annoying-sudo/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 21:13:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>
		<category><![CDATA[debian root]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[run root]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[ubuntu root]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=134</guid>
		<description><![CDATA[If you are installing many programs using apt-get command in Ubuntu/Debian, you will want to avoid using sudo in front of every command.
To do that it&#8217;s rather simple, just type:
sudo /bin/bash 
to enter root for good and you won&#8217;t have to type sudo in front of every command.
]]></description>
			<content:encoded><![CDATA[<p>If you are installing many programs using apt-get command in Ubuntu/Debian, you will want to avoid using sudo in front of every command.</p>
<p>To do that it&#8217;s rather simple, just type:</p>
<p><strong>sudo /bin/bash </strong></p>
<p>to enter root for good and you won&#8217;t have to type sudo in front of every command.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/linux-commands/how-to-run-as-root-on-ubuntudebian-avoid-annoying-sudo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[apt-get] How to See all Installed Packages!</title>
		<link>http://webserverhacks.com/linux-commands/apt-get-how-to-see-all-installed-packages/</link>
		<comments>http://webserverhacks.com/linux-commands/apt-get-how-to-see-all-installed-packages/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 01:14:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[Ubuntu/Debian]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[dpkg -l]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[installed packages]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux servers]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=121</guid>
		<description><![CDATA[To see all the installed packaged on your linux servers, you can do:
dpkg -l
which will list all installed packages on your web server.
]]></description>
			<content:encoded><![CDATA[<p>To see all the installed packaged on your linux servers, you can do:</p>
<p><strong>dpkg -l</strong></p>
<p>which will list all installed packages on your web server.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/linux-commands/apt-get-how-to-see-all-installed-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!</title>
		<link>http://webserverhacks.com/mysql/starting-mysql-database-server-mysqld-failed/</link>
		<comments>http://webserverhacks.com/mysql/starting-mysql-database-server-mysqld-failed/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 01:10:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[database server]]></category>
		<category><![CDATA[failed]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=118</guid>
		<description><![CDATA[For those of you having trouble starting your MySQL server, try this to log your errors:

mysqld_safe --log-error=/var/log/mysql.err
Then do:
cat /var/log/mysql.err 
to read what went wrong.
]]></description>
			<content:encoded><![CDATA[<p>For those of you having trouble starting your MySQL server, try this to log your errors:</p>
<pre class="php">
mysqld_safe --log-error=/var/log/mysql.err</pre>
<p>Then do:</p>
<p><strong>cat /var/log/mysql.err </strong></p>
<p>to read what went wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/mysql/starting-mysql-database-server-mysqld-failed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List Users in Linux!</title>
		<link>http://webserverhacks.com/linux-commands/list-users-in-linux/</link>
		<comments>http://webserverhacks.com/linux-commands/list-users-in-linux/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 21:22:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Commands]]></category>
		<category><![CDATA[list users]]></category>
		<category><![CDATA[List Users in Linux]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=115</guid>
		<description><![CDATA[You can use the command:
cat /etc/passwd
to list all the users in your linux system.
]]></description>
			<content:encoded><![CDATA[<p>You can use the command:</p>
<p>cat /etc/passwd</p>
<p>to list all the users in your linux system.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/linux-commands/list-users-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add DNS Caching to Your Web Server!</title>
		<link>http://webserverhacks.com/web-server-hacks/how-to-add-dns-caching-to-your-web-server/</link>
		<comments>http://webserverhacks.com/web-server-hacks/how-to-add-dns-caching-to-your-web-server/#comments</comments>
		<pubDate>Sun, 23 May 2010 01:17:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[add dns caching]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[slow api]]></category>
		<category><![CDATA[slow twitter api]]></category>
		<category><![CDATA[slow web server]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=113</guid>
		<description><![CDATA[If you have a website that uses a lot of API requests (such as dealing with Twitter), you can save a lot of server load/costs simply by installing DNS caching to your web server.
Each DNS request (every time you request from any domain name using an API) takes anywhere between 0 to 500 miliseconds.   [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a website that uses a lot of API requests (such as dealing with Twitter), you can save a lot of server load/costs simply by installing DNS caching to your web server.</p>
<p>Each DNS request (every time you request from any domain name using an API) takes anywhere between 0 to 500 miliseconds.   Sometimes, adding DNS caching to your web server can make your website load in 1 second versus 10 seconds.</p>
<p>Anyways, it&#8217;s easy to do and here&#8217;s how to do it on CentOS/Fedora linux servers:  (Ubuntu should be similar, just use apt-get install of yum)</p>
<p>First install Bind-utils:</p>
<p><strong>yum install bind-utils</strong></p>
<p>Do a command:</p>
<p><strong>dig yahoo.com</strong></p>
<p>Do it several times and note how many miliseconds it takes to retrieve the URL.  Later, after we install DNSMasq, we will try dig command again to see if your web server has started caching DNS requests.</p>
<p>Install DNSMasq:</p>
<p><strong>yum install dnsmasq</strong></p>
<p>Edit the file in <strong>/etc/dnsmasq.conf</strong>:</p>
<p>Then add the following lines:</p>
<p><strong>listen-address=127.0.0.1<br />
cache-size=500</strong></p>
<p>Next, edit the file in <strong>/etc/dhcp6c.conf</strong>:</p>
<p>Then add the following line:<br />
<strong> prepend domain-name-servers 127.0.0.1;</strong></p>
<p>Next, edit the file in <strong>/etc/resolv.conf</strong>:</p>
<p>Add the following lines with 127.0.0.1 first:</p>
<p><strong>nameserver 127.0.0.1<br />
nameserver 208.67.220.220<br />
nameserver 8.8.8.8<br />
nameserver 8.8.4.4</strong></p>
<p>208.67.220.220 is DNS server of Open DNS, which I highly recommend as it&#8217;s FAST.<br />
Also 8.8.8.8 and 8.8.4.4 are DNS servers of Google, which are also FAST.<br />
You can however, decide to use any other DNS such as your hosting company&#8217;s.</p>
<p>You can do a test of how fast they are by doing a ping test such as:</p>
<p><strong>ping 8.8.8.8 </strong></p>
<p>to test Google&#8217;s DNS server response times.</p>
<p>Next, you can start the DNSMasq so your web server starts caching, do:</p>
<p><strong>/sbin/service dnsmasq start</strong></p>
<p>Also, you will want to add DNSMasq to your chkconfig list so it will start up next time your web server reboots, do:</p>
<p><strong>chkconfig dnsmasq on</strong></p>
<p>To check all the processes running at boot-up, do:</p>
<p><strong>chkconfig &#8211;list</strong></p>
<p>That&#8217;s it!</p>
<p>Now do a dig command on yahoo.com, you should see 0 miliseconds after the first dig command!</p>
<p><strong>dig yahoo.com</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/web-server-hacks/how-to-add-dns-caching-to-your-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Ping Your Website Worldwide!</title>
		<link>http://webserverhacks.com/performance-tests/how-to-ping-your-website-worldwide/</link>
		<comments>http://webserverhacks.com/performance-tests/how-to-ping-your-website-worldwide/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 20:49:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Performance Tests]]></category>
		<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[just ping]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[world]]></category>
		<category><![CDATA[worldwide]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=109</guid>
		<description><![CDATA[Just Ping is a service that will ping your website from various different locations in the world.  If you want to optimize your site and also wonder how fast it would load in other parts of the world, you can use Just Ping to do just that.
Another great feature is that you can also [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://just-ping.com/index.php" >Just Ping</a> is a service that will ping your website from various different locations in the world.  If you want to optimize your site and also wonder how fast it would load in other parts of the world, you can use Just Ping to do just that.</p>
<p>Another great feature is that you can also check the IP address being reported by various different points in the world.  What this does is helps you check DNS delegation status of your website during a DNS move.</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/performance-tests/how-to-ping-your-website-worldwide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Check Your Website During DNS Delegation!</title>
		<link>http://webserverhacks.com/web-server-hacks/how-to-check-your-website-during-dns-delegation/</link>
		<comments>http://webserverhacks.com/web-server-hacks/how-to-check-your-website-during-dns-delegation/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 09:24:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[check website]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dns delegation]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=105</guid>
		<description><![CDATA[When you change your DNS records, your DNS delegation will usually take more than 12-24 hours on average.  This means that during that time, it might be impossible to check your website.
This can be a big problem if you are moving a website to a new server and you can&#8217;t check if you&#8217;ve moved everything [...]]]></description>
			<content:encoded><![CDATA[<p>When you change your DNS records, your DNS delegation will usually take more than 12-24 hours on average.  This means that during that time, it might be impossible to check your website.</p>
<p>This can be a big problem if you are moving a website to a new server and you can&#8217;t check if you&#8217;ve moved everything right.</p>
<p>So, how do you check your website on the new server during DNS delegation?</p>
<p>You can easily do this by changing the DNS servers on your computer.</p>
<p>For Windows, you can go into your network adaptor settings, then right-click on your adaptor, then select &#8220;Properties&#8221;.</p>
<p><img class="alignnone size-full wp-image-106" title="dns-howto-1" src="http://webserverhacks.com/wp-content/uploads/2010/03/dns-howto-1.PNG" alt="dns-howto-1" width="489" height="361" /></p>
<p>You will see a bunch of options like the above screen shot.  Simply double-click on &#8220;Internet Protocol Version 4 (TCP/IPv4).  This screenshot was from Windows 7 and on other Windows, I think it&#8217;s simply called &#8220;TCP/IP&#8221;.</p>
<p><img class="alignnone size-full wp-image-107" title="dns-howto-2" src="http://webserverhacks.com/wp-content/uploads/2010/03/dns-howto-2.PNG" alt="dns-howto-2" width="406" height="451" /></p>
<p>Here, you can set your DNS server to your new web server&#8217;s IP address.  In this example, I set it to &#8220;47.23.55.24&#8243;.</p>
<p>Click okay and try navigating to your URL such as mydomain.com.  Now you should be able to see your website on your browser and make sure your website has been moved successfully before DNS delegation is finished.</p>
<p>Also, any images not from your own domain name (URL) will not load on your browser.   This is because you can only load elements from your domain name as your DNS is set to your new web server.</p>
<p>Now, this might not work if you are on shared server or it could, it depends on your hosting provider.  For dedicated servers, VPS, or hosting servers with your own unique IP address, it should work flawlessly.</p>
<p>Make sure you go through the above process and set your DNS back to &#8220;Obtain DNS server address automatically&#8221; when you are done testing your new server.</p>
<p>That is one of the ways of doin&#8217; it but there&#8217;s also a better way if you want to be able to access the whole internet.</p>
<p>You can edit the hosts file under C:\windows\system32\drivers\etc\hosts.  Simply edit the file with a notepad program and add the following line at the end of the file:</p>
<p><strong>47.23.55.24 mydomain.com</strong></p>
<p>where <strong>47.23.55.24</strong> is the IP of your new server and <strong>mydomain.com</strong> is the domain name of your website.</p>
<p>Now save the file and try loading your site on the browser, it will load from your new server.</p>
<p>One more thing, you can also check the IP address of your website (to make sure it&#8217;s coming from the new server) by going to command prompt (type <strong>cmd</strong> under <strong>Start-&gt;Search programs and files</strong>) then typing ping <strong>mydomain.com</strong>.</p>
<p>By being able to check that everything is working correctly on your new server, you will lose ZERO traffic during DNS delegation because your website will load flawlessly whether on the old server or the new server.</p>
<p>How cool is that?</p>
<p>Well, for those of you who didn&#8217;t know, now you know!  Make sure to subscribe for more great free tips on hacking your web server!</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/web-server-hacks/how-to-check-your-website-during-dns-delegation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Hack – How to Upgrade Wordpress in 15 seconds using SSH/Wget!</title>
		<link>http://webserverhacks.com/web-server-hacks/wordpress-hack-how-to-upgrade-wordpress-in-15-seconds-using-sshwget/</link>
		<comments>http://webserverhacks.com/web-server-hacks/wordpress-hack-how-to-upgrade-wordpress-in-15-seconds-using-sshwget/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 07:51:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[15 seconds]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wget]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress hack]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=102</guid>
		<description><![CDATA[I&#8217;ve been upgrading Wordpress for almost 4 years now and since I manage about 20 blogs, I have learned to figure out how to upgrade your Wordpress faster than ever using SSH and wget command.
For one, you will need a dedicated server/VPS that supports SSH.  Otherwise you won&#8217;t be able to do it.
Here&#8217;s exactly how [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been upgrading Wordpress for almost 4 years now and since I manage about 20 blogs, I have learned to figure out how to upgrade your Wordpress faster than ever using SSH and wget command.</p>
<p>For one, you will need a dedicated server/VPS that supports SSH.  Otherwise you won&#8217;t be able to do it.</p>
<p>Here&#8217;s exactly how I do it.</p>
<p>1) I go to my Wordpress directory using the command <a target="_blank" href="http://www.computerhope.com/unix/ucd.htm" >cd</a>. ~ 2 seconds</p>
<p>2) I use <a target="_blank" href="http://linux.about.com/od/commands/l/blcmdl1_wget.htm" >wget</a> to pull the latest wordpress files, &#8220;<strong>wget http://wordpress.org/latest.tar.gz</strong>&#8221; ~ 3 seconds</p>
<p>3) Then I unzip the tar file using &#8220;<strong>tar xvf latest.tar.gz</strong>&#8221; ~ 5 seconds (<a target="_blank" href="http://www.computerhope.com/unix/utar.htm" >see tar command howto here</a>)</p>
<p>4) Then I remove the wp-admin and wp-includes directories by doing &#8220;<strong>rm wp-admin -rf</strong>&#8221; and &#8220;<strong>rm wp-includes -rf</strong>&#8220;. ~ 3 seconds</p>
<p>5) Next I will copy over the old Wordpress files with the new ones using commands, &#8220;<strong>cp wordress/* . -rf &#8211;reply=yes</strong>&#8221; ~ 2 seconds.</p>
<p>6) I am done, that&#8217;s 2+3+5+3+2=15 seconds.  If you are on at least a quad-core CPU server, downloading and unzipping should be rather fast but for those of you on slower servers, give it couple more seconds as download/unzip will take longer.</p>
<p>This is lightening fast compared to downloading Wordpress files to your computer, unzipping it then uploading them to your website via FTP.  And if you are on shared hosting, sometimes uploading FTP can take forever.</p>
<p>Even if you use built-in upgrade functions in Wordpress, you are not going to beat SSH, not even a chance.</p>
<p>Of course, even better than this is to write a simple bash shell script that will do all the above for you.  Then you could probably do it in just about 5 seconds.  I will try to write a script soon and let you know on that btw.  (I just realize it!)</p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/web-server-hacks/wordpress-hack-how-to-upgrade-wordpress-in-15-seconds-using-sshwget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS Hack – How to Upgrade from PHP 5.1.6 to 5.2!</title>
		<link>http://webserverhacks.com/web-server-hacks/centos-hack-how-to-upgrade-from-php-5-1-6-to-5-2/</link>
		<comments>http://webserverhacks.com/web-server-hacks/centos-hack-how-to-upgrade-from-php-5-1-6-to-5-2/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 06:19:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Server Hacks]]></category>
		<category><![CDATA[5.2]]></category>
		<category><![CDATA[centos hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[php 5.1.6]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://webserverhacks.com/?p=97</guid>
		<description><![CDATA[For those of you who are trying to upgrade from PHP 5.2 because your application requires PHP 5.2 or above, you can use this hack to upgrade your web server running CentOS.  Since CentOS doesn&#8217;t officially support PHP 5.2 officially yet, this could possibly be a great workaround.
Word of caution, this hack has worked fine [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who are trying to upgrade from PHP 5.2 because your application requires PHP 5.2 or above, you can use this hack to upgrade your web server running CentOS.  Since CentOS doesn&#8217;t officially support PHP 5.2 officially yet, this could possibly be a great workaround.</p>
<p>Word of caution, this hack has worked fine for me for a new Twitter app site I am making that requires use of PHP 5.2 but if you have non-standard customizations to your server, you might want to test it first.</p>
<p>I&#8217;ve also found that JSON library that comes with PHP 5.2 is like 20 times faster rather than trying to run separate JSON libraries with PHP 5.1.6.  It made a HUGE difference let me just say in page loading times. (Like .90 seconds versus 0.003 seconds.)</p>
<blockquote><p>This guide describes how to upgrade the standard PHP 5.1.x packages in CentOS 5.x 32-bit to the current development versions 5.2.x. These instructions were created using CentOS 5.3 32-bit and with the following PHP packages installed:</p>
<p># rpm -qa |grep php</p>
<p>php-common-5.1.6-15.el5.i386<br />
php-cli-5.1.6-15.el5.i386<br />
php-5.1.6-15.el5.i386<br />
php-pdo-5.1.6-15.el5.i386<br />
php-bcmath-5.1.6-15.el5.i386<br />
php-ldap-5.1.6-15.el5.i386<br />
php-devel-5.1.6-15.el5.i386<br />
php-gd-5.1.6-15.el5.i386<br />
php-xml-5.1.6-15.el5.i386<br />
php-mbstring-5.1.6-15.el5.i386<br />
php-mysql-5.1.6-15.el5.i386<br />
php-dba-5.1.6-15.el5.i386</p>
<p>As long as you&#8217;re using the standard PHP packages on your CentOS server you won&#8217;t need to do anything extra. If you&#8217;re using extra PHP packages that aren&#8217;t part of the standard CentOS repositories (like php-mcrypt) you&#8217;ll have to remove them or find updated versions of them.</p></blockquote>
<p><a target="_blank" href="http://wiki.centos.org/HowTos/PHP_5.1_To_5.2" >via cent.os</a></p>
]]></content:encoded>
			<wfw:commentRss>http://webserverhacks.com/web-server-hacks/centos-hack-how-to-upgrade-from-php-5-1-6-to-5-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 1.175 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-08-22 00:48:16 -->
