<?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>Rui Miguel Feio &#187; WordPress</title>
	<atom:link href="http://www.ruifeio.com/category/web-development/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ruifeio.com</link>
	<description>Sharing knowledge with the world</description>
	<lastBuildDate>Sat, 04 Sep 2010 17:29:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Backup and Restore a web site in CPANEL</title>
		<link>http://www.ruifeio.com/2009/08/16/backup-and-restore-a-web-site-in-cpanel/</link>
		<comments>http://www.ruifeio.com/2009/08/16/backup-and-restore-a-web-site-in-cpanel/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 20:18:46 +0000</pubDate>
		<dc:creator>Rui Miguel Feio</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ruifeio.com/?p=246</guid>
		<description><![CDATA[It&#8217;s a good practice to make backups prior to submit any changes to your site. Time and again people skip the backup to find themselves with problems and not having an easy and quick way to undo their changes. This may not seem a big problem, but if the changes were done to the web [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a good practice to make backups prior to submit any changes to your site.</p>
<p>Time and again people skip the backup to find themselves with problems and not having an easy and quick way to undo their changes. This may not seem a big problem, but if the changes were done to the web site of your business and now the web site is not working probably, this means you&#8217;re losing money!</p>
<p>Backing up a site is easy and even more if your web server uses CPANEL.</p>
<p><strong>Consider the following steps to BACKUP your site:</strong></p>
<ul>
<li>To Backup the files of your site:
<ol>
<li>On <em>CPANEL </em>select option <em>Backups</em></li>
<li>Under <em>Home Directory</em> select option <em>Download a home directory Backup</em></li>
<li>Select <em>Save File</em></li>
</ol>
</li>
<li>To Backup the Databases of your site:
<ol>
<li>On <em>CPANEL </em>select option Backups</li>
<li>Under <span><em>Download a MySQL Database Backup </em>select the Database you wish to Backup</span></li>
<li><span>Select <em>Save File</em></span></li>
<li><span>Repeat Steps 2 and 3 for any other Database you wish to backup</span></li>
</ol>
</li>
</ul>
<p><strong>Consider the following steps to RESTORE your site:</strong></p>
<ul>
<li>To Restore the files of your site:
<ol>
<li>On <em>CPANEL </em>select option <em>Backups</em></li>
<li>Under <em><span>Restore a Home Directory Backup </span></em><span>select <em>Browse </em>and locate the backup you want to restore from<br />
</span></li>
<li>Select <em>Upload</em></li>
</ol>
</li>
<li>To Restore the Databases of your site:
<ol>
<li>On <em>CPANEL </em>select option Backups</li>
<li>Under <em><span>Restore a MySQL Database</span></em><span><em> </em>select <em>Browse </em>and locate the backup you want to restore from.<br />
</span></li>
<li><span>Select <em>Upload</em></span></li>
<li><span>Repeat Steps 2 and 3 for any other Database you wish to restore</span></li>
</ol>
</li>
</ul>
<div class="fullcircle-social-links" style="display: block;"></div><div style="clear: both;"></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="mailto:?subject=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL&amp;body=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F" title="email"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="javascript:AddToFavorites();" title="Add to favorites"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/addtofavorites.png" title="Add to favorites" alt="Add to favorites" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;t=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL" title="Facebook"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL%20-%20http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F" title="Twitter"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;t=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL" title="MySpace"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;title=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL&amp;notes=It%27s%20a%20good%20practice%20to%20make%20backups%20prior%20to%20submit%20any%20changes%20to%20your%20site.%0D%0A%0D%0ATime%20and%20again%20people%20skip%20the%20backup%20to%20find%20themselves%20with%20problems%20and%20not%20having%20an%20easy%20and%20quick%20way%20to%20undo%20their%20changes.%20This%20may%20not%20seem%20a%20big%20problem%2C%20but%20" title="del.icio.us"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;title=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL&amp;source=Rui+Miguel+Feio+Sharing+knowledge+with+the+world&amp;summary=It%27s%20a%20good%20practice%20to%20make%20backups%20prior%20to%20submit%20any%20changes%20to%20your%20site.%0D%0A%0D%0ATime%20and%20again%20people%20skip%20the%20backup%20to%20find%20themselves%20with%20problems%20and%20not%20having%20an%20easy%20and%20quick%20way%20to%20undo%20their%20changes.%20This%20may%20not%20seem%20a%20big%20problem%2C%20but%20" title="LinkedIn"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;title=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL&amp;bodytext=It%27s%20a%20good%20practice%20to%20make%20backups%20prior%20to%20submit%20any%20changes%20to%20your%20site.%0D%0A%0D%0ATime%20and%20again%20people%20skip%20the%20backup%20to%20find%20themselves%20with%20problems%20and%20not%20having%20an%20easy%20and%20quick%20way%20to%20undo%20their%20changes.%20This%20may%20not%20seem%20a%20big%20problem%2C%20but%20" title="Digg"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;title=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL" title="StumbleUpon"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;title=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL&amp;annotation=It%27s%20a%20good%20practice%20to%20make%20backups%20prior%20to%20submit%20any%20changes%20to%20your%20site.%0D%0A%0D%0ATime%20and%20again%20people%20skip%20the%20backup%20to%20find%20themselves%20with%20problems%20and%20not%20having%20an%20easy%20and%20quick%20way%20to%20undo%20their%20changes.%20This%20may%20not%20seem%20a%20big%20problem%2C%20but%20" title="Google Bookmarks"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F&amp;submitHeadline=Backup%20and%20Restore%20a%20web%20site%20in%20CPANEL&amp;submitSummary=It%27s%20a%20good%20practice%20to%20make%20backups%20prior%20to%20submit%20any%20changes%20to%20your%20site.%0D%0A%0D%0ATime%20and%20again%20people%20skip%20the%20backup%20to%20find%20themselves%20with%20problems%20and%20not%20having%20an%20easy%20and%20quick%20way%20to%20undo%20their%20changes.%20This%20may%20not%20seem%20a%20big%20problem%2C%20but%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.indianpad.com/submit.php?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F16%2Fbackup-and-restore-a-web-site-in-cpanel%2F" title="IndianPad"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/indianpad.png" title="IndianPad" alt="IndianPad" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ruifeio.com/2009/08/16/backup-and-restore-a-web-site-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to move a WordPress site to a different Server or URL</title>
		<link>http://www.ruifeio.com/2009/08/08/how-to-move-a-wordpress-site-to-a-different-server-or-url/</link>
		<comments>http://www.ruifeio.com/2009/08/08/how-to-move-a-wordpress-site-to-a-different-server-or-url/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 18:10:01 +0000</pubDate>
		<dc:creator>Rui Miguel Feio</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ruifeio.com/?p=203</guid>
		<description><![CDATA[Moving a WordPress site from one server to another or to a different Web address (URL) may seem a daunting task and something to stay away from. The truth is that it is quite simple! Last month I was asked to help moving a WordPress (WP) blog from one server to another and I thought [...]]]></description>
			<content:encoded><![CDATA[<p>Moving a WordPress site from one server to another or to a different Web address (URL) may seem a daunting task and something to stay away from. The truth is that it is quite simple!</p>
<p>Last month I was asked to help moving a WordPress (WP) blog from one server to another and I thought I should share with the world how this can be done.</p>
<p>Performing this task requires 3 major steps:</p>
<p>1. Move the WordPress Source Code<br />
2. Move the WordPress Database<br />
3. Update the WordPress configuration</p>
<p>For the sake of this example I will provide the general instructions for a WordPress running on LAMP (Lunix, Apache, MySQL and PHP) environment with CPanel and I&#8217;ll assume that we want to move it from http://www.original-server.com/blog to http://www.destination-server.com/blog.</p>
<p><strong>STEP 1 &#8211; Move the WordPress Source Code:</strong></p>
<p><em><span style="text-decoration: underline;"> (Original server)- Download the WordPress source files:</span></em></p>
<p>1. On <em>CPanel </em>select &#8220;<em>File Manager</em>&#8221;<br />
2. Tick (check) the folder that contains the WordPress blog source files (ex: blog)<br />
3. Select &#8220;<em>Compress</em>&#8221; from the menu<br />
4. Select &#8220;<em>Compress File(s)</em>&#8221;<br />
5. Tick (check) the <em>zip </em>file you&#8217;ve just created<br />
6. Select &#8220;<em>Download</em>&#8221; from the menu and save the <em>zip </em>file locally<br />
7. Once the download is finished delete the <em>zip </em>file from the server</p>
<p><em><span style="text-decoration: underline;">(Destination Server) &#8211; Upload the WordPress source code:</span></em></p>
<p>1. On <em>CPanel </em>select &#8220;<em>File Manager</em>&#8221;<br />
2. Select the &#8220;<em>Upload</em>&#8221; option<br />
3. Locate and select the <em>zip </em>file that contains the WordPress source code you&#8217;ve copied into your PC.<br />
4. Upload your file into the new server<br />
5. Select the <em>zip </em>file<br />
6. Select &#8220;<em>Extract</em>&#8221; from menu<br />
7. Delete <em>Zip </em>file from server</p>
<p>Note: Beware! When you <em>unzip </em>the file if a directory already exists with the same name its content will be replaced!</p>
<p><strong>STEP 2 &#8211; Move the WordPress Database:</strong></p>
<p><em><span style="text-decoration: underline;">(Original Server) &#8211; Export WordPress Database:</span></em></p>
<p>1. On <em>CPanel </em>select option &#8220;<em>phpMyAdmin</em>&#8221; (MySQL Databases)<br />
2. Select the WordPress Database that you want to export (ex: wp01)<br />
2. Select &#8220;<em>Export</em>&#8221;<br />
3. Make sure all the <em>Tables </em>are selected<br />
4. Leave all the default options ticked<br />
5. Make sure to download as an <em>SQL </em>file<br />
6. Check &#8220;<em>Save as File</em>&#8221;<br />
7. Click &#8220;<em>Go</em>&#8221; and save it locally</p>
<p>Note: In addition you may also select &#8220;<em>zipped</em>&#8221; or &#8220;<em>gzipped</em>&#8221; to compress your database when downloading it.</p>
<p><em><span style="text-decoration: underline;">(Destination Server) &#8211; Create new Database:</span></em></p>
<p>1. On <em>CPanel </em>select &#8220;<em>MySQL Databases</em>&#8221;<br />
2. Create a new <em>DB </em>for the blog (ex: wp01) and if possible with the same name as it had originally<br />
3. Create a new <em>user </em>for the blog if possible with the same name as originally<br />
4. Associate the new <em>user </em>with the WordPress <em>Database </em>you&#8217;ve just created and all privileges to it.</p>
<p><span style="text-decoration: underline;"><em>(Locally) &#8211; Update WordPress MySQL database:</em></span></p>
<p>1. Edit the WordPress SQL <em>database </em>you&#8217;ve downloaded from the original server.<br />
2. If the web address <em>URL </em>has changed:</p>
<ul>
<li>replace all references of the old <em>URL </em>with the new <em>URL</em></li>
<li> note that if on the new server you&#8217;re using a different directory, this needs to change too.</li>
</ul>
<p>3. If the email addresses have changed, replace them with the new addresses.<br />
4. Save your changes.</p>
<p><span style="text-decoration: underline;"><em>(Destination server) &#8211; Upload WordPress Database:</em></span></p>
<p>1. On <em>CPanel</em>, select &#8220;<em>phpMyAdmin</em>&#8221; (MySQL Databases)<br />
2. Select the WordPress <em>Database</em><br />
3. Select the &#8220;<em>Import</em>&#8221; option<br />
4. Locate and select the WordPress SQL <em>Database </em>you have saved locally.<br />
5. <em>Import </em>file</p>
<p><strong>STEP 3 &#8211; Update the WordPress configuration:</strong></p>
<p><em><span style="text-decoration: underline;">(Destination Server) &#8211; Update config file:</span></em></p>
<p>1. On <em>Cpanel </em>select &#8220;<em>File Manager</em>&#8221;<br />
2. Locate and edit WordPress configuration file &#8220;<em>wp-config.php</em>&#8221;<br />
3. Update WP <em>DB name</em> with the new WordPress Database name:   define(&#8216;DB_NAME&#8217;, &#8216;database_name_goes_here&#8217;);<br />
4. Update <em>user name</em>:  define(&#8216;DB_USER&#8217;, &#8216;user_name_goes_here&#8217;);<br />
5. Update <em>Database password</em>:  define(&#8216;DB_PASSWORD&#8217;, &#8216;password_goes_here&#8217;);<br />
6. Update <em>hostname </em>(if required):  define(&#8216;DB_HOST&#8217;, &#8216;hostname_goes_here&#8217;);<br />
7. Save your changes</p>
<p><strong>STEP 4 &#8211; Testing:</strong></p>
<p>1. Simply test your blog to make sure that all the functionalities are available</p>
<div class="fullcircle-social-links" style="display: block;"></div><div style="clear: both;"></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="mailto:?subject=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL&amp;body=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F" title="email"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="javascript:AddToFavorites();" title="Add to favorites"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/addtofavorites.png" title="Add to favorites" alt="Add to favorites" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;t=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL" title="Facebook"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL%20-%20http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F" title="Twitter"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;t=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL" title="MySpace"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;title=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL&amp;notes=Moving%20a%20WordPress%20site%20from%20one%20server%20to%20another%20or%20to%20a%20different%20Web%20address%20%28URL%29%20may%20seem%20a%20daunting%20task%20and%20something%20to%20stay%20away%20from.%20The%20truth%20is%20that%20it%20is%20quite%20simple%21%0D%0A%0D%0ALast%20month%20I%20was%20asked%20to%20help%20moving%20a%20WordPress%20%28WP%29%20blog%20from" title="del.icio.us"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;title=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL&amp;source=Rui+Miguel+Feio+Sharing+knowledge+with+the+world&amp;summary=Moving%20a%20WordPress%20site%20from%20one%20server%20to%20another%20or%20to%20a%20different%20Web%20address%20%28URL%29%20may%20seem%20a%20daunting%20task%20and%20something%20to%20stay%20away%20from.%20The%20truth%20is%20that%20it%20is%20quite%20simple%21%0D%0A%0D%0ALast%20month%20I%20was%20asked%20to%20help%20moving%20a%20WordPress%20%28WP%29%20blog%20from" title="LinkedIn"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;title=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL&amp;bodytext=Moving%20a%20WordPress%20site%20from%20one%20server%20to%20another%20or%20to%20a%20different%20Web%20address%20%28URL%29%20may%20seem%20a%20daunting%20task%20and%20something%20to%20stay%20away%20from.%20The%20truth%20is%20that%20it%20is%20quite%20simple%21%0D%0A%0D%0ALast%20month%20I%20was%20asked%20to%20help%20moving%20a%20WordPress%20%28WP%29%20blog%20from" title="Digg"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;title=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL" title="StumbleUpon"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;title=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL&amp;annotation=Moving%20a%20WordPress%20site%20from%20one%20server%20to%20another%20or%20to%20a%20different%20Web%20address%20%28URL%29%20may%20seem%20a%20daunting%20task%20and%20something%20to%20stay%20away%20from.%20The%20truth%20is%20that%20it%20is%20quite%20simple%21%0D%0A%0D%0ALast%20month%20I%20was%20asked%20to%20help%20moving%20a%20WordPress%20%28WP%29%20blog%20from" title="Google Bookmarks"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F&amp;submitHeadline=How%20to%20move%20a%20WordPress%20site%20to%20a%20different%20Server%20or%20URL&amp;submitSummary=Moving%20a%20WordPress%20site%20from%20one%20server%20to%20another%20or%20to%20a%20different%20Web%20address%20%28URL%29%20may%20seem%20a%20daunting%20task%20and%20something%20to%20stay%20away%20from.%20The%20truth%20is%20that%20it%20is%20quite%20simple%21%0D%0A%0D%0ALast%20month%20I%20was%20asked%20to%20help%20moving%20a%20WordPress%20%28WP%29%20blog%20from&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.indianpad.com/submit.php?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F08%2F08%2Fhow-to-move-a-wordpress-site-to-a-different-server-or-url%2F" title="IndianPad"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/indianpad.png" title="IndianPad" alt="IndianPad" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ruifeio.com/2009/08/08/how-to-move-a-wordpress-site-to-a-different-server-or-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Session not being passed from a web site to WordPress</title>
		<link>http://www.ruifeio.com/2009/06/30/php-session-not-being-from-site-to-wordpress/</link>
		<comments>http://www.ruifeio.com/2009/06/30/php-session-not-being-from-site-to-wordpress/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 13:14:34 +0000</pubDate>
		<dc:creator>Rui Miguel Feio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.ruifeio.com/?p=38</guid>
		<description><![CDATA[Recently I had this case where a PHP session ($_SESSION) was not being passed from a web site to WordPress. Basically, WordPress was installed and configured to be part of a web site and there was the need to use Sessions to control the login/logout process of the site. Although the session_start() had been defined [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had this case where a PHP session ($_SESSION) was not being passed from a web site to WordPress.</p>
<p>Basically, WordPress was installed and configured to be part of a web site and there was the need to use Sessions to control the login/logout process of the site.</p>
<p>Although the session_start() had been defined to WordPress, the latter did not recognize the session values and therefore simply ignored if a user was logged on.</p>
<p>After some research and some brainstorming with some great experts on the field, I realized that the problem was in the WordPress URL itself.</p>
<p>The problem was that although the domain was the same, WordPress was suppressing the &#8220;www&#8221; from the URL which caused the $_SESSION values not to be recognized.</p>
<p><strong>Example:</strong></p>
<p>Site URL: http://www.this-is-an-example.com</p>
<p>WP URL: http://this-is-an-example.com  (missing the &#8220;www.&#8221;)</p>
<p><strong>Solution:</strong></p>
<p>By adding the &#8220;www.&#8221; to the WordPress domain name the problem was solved:</p>
<ol>
<li>Login to WordPress Admin area</li>
<li>Go to <em>Settings</em> &#8211; <em>General</em></li>
<li>Add &#8220;www.&#8221; to the WordPress address (URL) and Blog address (URL).</li>
</ol>
<div class="fullcircle-social-links" style="display: block;"></div><div style="clear: both;"></div>
<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="mailto:?subject=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress&amp;body=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F" title="email"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="javascript:AddToFavorites();" title="Add to favorites"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/addtofavorites.png" title="Add to favorites" alt="Add to favorites" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;t=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress" title="Facebook"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress%20-%20http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F" title="Twitter"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;t=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress" title="MySpace"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;title=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress&amp;notes=Recently%20I%20had%20this%20case%20where%20a%20PHP%20session%20%28%24_SESSION%29%20was%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress.%0D%0A%0D%0ABasically%2C%20WordPress%20was%20installed%20and%20configured%20to%20be%20part%20of%20a%20web%20site%20and%20there%20was%20the%20need%20to%20use%20Sessions%20to%20control%20the%20login%2Flogo" title="del.icio.us"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;title=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress&amp;source=Rui+Miguel+Feio+Sharing+knowledge+with+the+world&amp;summary=Recently%20I%20had%20this%20case%20where%20a%20PHP%20session%20%28%24_SESSION%29%20was%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress.%0D%0A%0D%0ABasically%2C%20WordPress%20was%20installed%20and%20configured%20to%20be%20part%20of%20a%20web%20site%20and%20there%20was%20the%20need%20to%20use%20Sessions%20to%20control%20the%20login%2Flogo" title="LinkedIn"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;title=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress&amp;bodytext=Recently%20I%20had%20this%20case%20where%20a%20PHP%20session%20%28%24_SESSION%29%20was%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress.%0D%0A%0D%0ABasically%2C%20WordPress%20was%20installed%20and%20configured%20to%20be%20part%20of%20a%20web%20site%20and%20there%20was%20the%20need%20to%20use%20Sessions%20to%20control%20the%20login%2Flogo" title="Digg"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;title=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress" title="StumbleUpon"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;title=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress&amp;annotation=Recently%20I%20had%20this%20case%20where%20a%20PHP%20session%20%28%24_SESSION%29%20was%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress.%0D%0A%0D%0ABasically%2C%20WordPress%20was%20installed%20and%20configured%20to%20be%20part%20of%20a%20web%20site%20and%20there%20was%20the%20need%20to%20use%20Sessions%20to%20control%20the%20login%2Flogo" title="Google Bookmarks"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F&amp;submitHeadline=PHP%20Session%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress&amp;submitSummary=Recently%20I%20had%20this%20case%20where%20a%20PHP%20session%20%28%24_SESSION%29%20was%20not%20being%20passed%20from%20a%20web%20site%20to%20WordPress.%0D%0A%0D%0ABasically%2C%20WordPress%20was%20installed%20and%20configured%20to%20be%20part%20of%20a%20web%20site%20and%20there%20was%20the%20need%20to%20use%20Sessions%20to%20control%20the%20login%2Flogo&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.indianpad.com/submit.php?url=http%3A%2F%2Fwww.ruifeio.com%2F2009%2F06%2F30%2Fphp-session-not-being-from-site-to-wordpress%2F" title="IndianPad"><img src="http://www.ruifeio.com/wp-content/plugins/sociable/images/indianpad.png" title="IndianPad" alt="IndianPad" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ruifeio.com/2009/06/30/php-session-not-being-from-site-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
