<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Upgrade wordpress quickly in 3 easy steps from UNIX shell prompt</title> <atom:link href="http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: n2j3</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-168699</link> <dc:creator>n2j3</dc:creator> <pubDate>Fri, 11 Feb 2011 09:41:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-168699</guid> <description>lifesaver. thanks :)</description> <content:encoded><![CDATA[<p>lifesaver. thanks :)</p> ]]></content:encoded> </item> <item><title>By: blancpain</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-161632</link> <dc:creator>blancpain</dc:creator> <pubDate>Sun, 05 Dec 2010 14:30:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-161632</guid> <description>In it something is. Earlier I thought differently, many thanks for the help in this question.</description> <content:encoded><![CDATA[<p>In it something is. Earlier I thought differently, many thanks for the help in this question.</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-152777</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Thu, 07 Jan 2010 19:38:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-152777</guid> <description>@Simon J Mudd,
Generally web servers don&#039;t care about file permission as long as they have read permission for a directory. However, before running this go to your blog directory and run the following to see permissions. Note down them:
&lt;code&gt;ls -l&lt;/code&gt;
Once new file copied just run chown in a blog dir:
&lt;code&gt;chown -R user:group .&lt;/code&gt;</description> <content:encoded><![CDATA[<p>@Simon J Mudd,</p><p>Generally web servers don&#8217;t care about file permission as long as they have read permission for a directory. However, before running this go to your blog directory and run the following to see permissions. Note down them:<br
/> <code>ls -l</code><br
/> Once new file copied just run chown in a blog dir:<br
/> <code>chown -R user:group .</code></p> ]]></content:encoded> </item> <item><title>By: Simon J Mudd</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-152771</link> <dc:creator>Simon J Mudd</dc:creator> <pubDate>Thu, 07 Jan 2010 13:29:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-152771</guid> <description>Handy to know but misses an important point: users and permissions on the server. This can make or break things quite significantly on a box. I&#039;ve found the instructions on what the correct ownership of the wordpress files to be either missing or not clear to me.
So should ALL wordpress files be owned by the apache user, or perhaps owned by another user with the group set to the group the apache server runs as? That&#039;s what is not clear to me and could be better documented.</description> <content:encoded><![CDATA[<p>Handy to know but misses an important point: users and permissions on the server. This can make or break things quite significantly on a box. I&#8217;ve found the instructions on what the correct ownership of the wordpress files to be either missing or not clear to me.</p><p>So should ALL wordpress files be owned by the apache user, or perhaps owned by another user with the group set to the group the apache server runs as? That&#8217;s what is not clear to me and could be better documented.</p> ]]></content:encoded> </item> <item><title>By: Wazzup</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-144682</link> <dc:creator>Wazzup</dc:creator> <pubDate>Mon, 18 Aug 2008 07:28:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-144682</guid> <description>Is there a way to perdform the actual upgrade from the command line as well...
that is this part: &quot;Open a browser and run update script such as http://yourblog.com/wp-admin/upgrade.php &quot;</description> <content:encoded><![CDATA[<p>Is there a way to perdform the actual upgrade from the command line as well&#8230;</p><p>that is this part: &#8220;Open a browser and run update script such as <a
href="http://yourblog.com/wp-admin/upgrade.php" rel="nofollow">http://yourblog.com/wp-admin/upgrade.php</a> &#8220;</p> ]]></content:encoded> </item> <item><title>By: Video Game Sigs</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-143672</link> <dc:creator>Video Game Sigs</dc:creator> <pubDate>Sat, 03 May 2008 15:50:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-143672</guid> <description>Thanks to this post I was able to upgrade WP on my sites in no time. I dreaded having to wait for the slow ftp process to complete with my sites being down.
After testing the process on one site and seeing how fast it was, I did not even bother activating the maintenance mode plug in on the other sites. My users tend to get pissed off when the site goes down for a few mins and following the steps you provided prevents this.
One thing I did before copying over the new WP files to the site, was delete the wp-contents folder from the new WP files. I did not want it over writing what I had in my existing WP-contents folder (plug-ins and themes)
Thanks again.</description> <content:encoded><![CDATA[<p>Thanks to this post I was able to upgrade WP on my sites in no time. I dreaded having to wait for the slow ftp process to complete with my sites being down.</p><p>After testing the process on one site and seeing how fast it was, I did not even bother activating the maintenance mode plug in on the other sites. My users tend to get pissed off when the site goes down for a few mins and following the steps you provided prevents this.</p><p>One thing I did before copying over the new WP files to the site, was delete the wp-contents folder from the new WP files. I did not want it over writing what I had in my existing WP-contents folder (plug-ins and themes)</p><p>Thanks again.</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-140702</link> <dc:creator>vivek</dc:creator> <pubDate>Mon, 06 Aug 2007 16:33:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-140702</guid> <description>fak3r,
Nice script :D. Few things
a) change wget http://wordpress.org/latest.zip to
wget http://wordpress.org/latest.zip -O latest.zip
b) add little protection before cd ${BLOG_DIR}
&lt;pre&gt;
if [ $? -eq 0 ]; then
cd ${BLOG_DIR}
cp -avr /tmp/wordpress/* .
rm -rf /tmp/wordpress /tmp/latest.zip
else
echo &quot;Error failed to unzip or download failed&quot;
fi&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>fak3r,</p><p>Nice script :D. Few things<br
/> a) change wget <a
href="http://wordpress.org/latest.zip" rel="nofollow">http://wordpress.org/latest.zip</a> to<br
/> wget <a
href="http://wordpress.org/latest.zip" rel="nofollow">http://wordpress.org/latest.zip</a> -O latest.zip</p><p>b) add little protection before cd ${BLOG_DIR}</p><pre>
if [ $? -eq 0 ]; then
   cd ${BLOG_DIR}
cp -avr /tmp/wordpress/* .
rm -rf /tmp/wordpress /tmp/latest.zip
else
  echo "Error failed to unzip or download failed"
fi</pre>]]></content:encoded> </item> <item><title>By: fak3r</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-140701</link> <dc:creator>fak3r</dc:creator> <pubDate>Mon, 06 Aug 2007 16:14:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-140701</guid> <description>Thanks for the script, I&#039;ve changed it to make it more generic, can be run via command followed by the instance name of your site&#039;s directory.
&lt;pre&gt;#!/bin/bash
# Modify these variables for your system
BLOG_DIR=/usr/local/www/data-dist
BACK_DIR=/root/wp
# Do not modify these variables
DATE=`date +%Y.%m.%d`
INSTANCE=${1}
# If there&#039;s no variable, explain usage and exit
if [ -z &quot;$1&quot; ]; then
echo &quot;usage: $0 &quot;
exit 0
fi
# Backup existing database and wordpress directory
mkdir -p ${BACK_DIR}/${INSTANCENAME}/${DATE}
mysqldump -u root -p ${INSTANCE} &gt; ${BACK_DIR}/${INSTANCENAME}/${DATE}/${INSTANCE}.db.sql
tar -zcvf ${BACK_DIR}/${INSTANCENAME}/${DATE}/${INSTANCE}.tar.gz ${BLOG_DIR}/${INSTANCE}
# Download latest wordpress CMS
cd /tmp
wget http://wordpress.org/latest.zip
unzip latest.zip
# Overwrite all new files and cleanup
cd ${BLOG_DIR}
cp -avr /tmp/wordpress/* .
rm -rf /tmp/wordpress /tmp/latest.zip
exit 0&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Thanks for the script, I&#8217;ve changed it to make it more generic, can be run via command followed by the instance name of your site&#8217;s directory.</p><pre>#!/bin/bash
# Modify these variables for your system
BLOG_DIR=/usr/local/www/data-dist
BACK_DIR=/root/wp
# Do not modify these variables
DATE=`date +%Y.%m.%d`
INSTANCE=${1}
# If there's no variable, explain usage and exit
if [ -z "$1" ]; then
        echo "usage: $0 "
        exit 0
fi
# Backup existing database and wordpress directory
mkdir -p ${BACK_DIR}/${INSTANCENAME}/${DATE}
mysqldump -u root -p ${INSTANCE} &gt; ${BACK_DIR}/${INSTANCENAME}/${DATE}/${INSTANCE}.db.sql
tar -zcvf ${BACK_DIR}/${INSTANCENAME}/${DATE}/${INSTANCE}.tar.gz ${BLOG_DIR}/${INSTANCE}
# Download latest wordpress CMS
cd /tmp
wget <a href="http://wordpress.org/latest.zip" rel="nofollow">http://wordpress.org/latest.zip</a>
unzip latest.zip
# Overwrite all new files and cleanup
cd ${BLOG_DIR}
cp -avr /tmp/wordpress/* .
rm -rf /tmp/wordpress /tmp/latest.zip
exit 0</pre>]]></content:encoded> </item> <item><title>By: Life focus pro</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-82542</link> <dc:creator>Life focus pro</dc:creator> <pubDate>Mon, 05 Mar 2007 15:48:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-82542</guid> <description>Yes, it sounds very fast and easy. I just wish I had access to the schell.</description> <content:encoded><![CDATA[<p>Yes, it sounds very fast and easy. I just wish I had access to the schell.</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-82263</link> <dc:creator>Chris</dc:creator> <pubDate>Mon, 05 Mar 2007 03:13:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-82263</guid> <description>Be very careful with this method. Since it is basically overwriting existing files with new ones etc it is NOT removing depreciated files which may or may not have security holes in them.</description> <content:encoded><![CDATA[<p>Be very careful with this method. Since it is basically overwriting existing files with new ones etc it is NOT removing depreciated files which may or may not have security holes in them.</p> ]]></content:encoded> </item> <item><title>By: MichaelB</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-52973</link> <dc:creator>MichaelB</dc:creator> <pubDate>Sun, 07 Jan 2007 03:42:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-52973</guid> <description>Thanks, this worked perfectly and saved me a huge amount of time.</description> <content:encoded><![CDATA[<p>Thanks, this worked perfectly and saved me a huge amount of time.</p> ]]></content:encoded> </item> <item><title>By: Igor</title><link>http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-35568</link> <dc:creator>Igor</dc:creator> <pubDate>Tue, 28 Nov 2006 08:15:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-upgrade-wordpress-from-linux-unix-shell-prompt.html#comment-35568</guid> <description>hey, you cloned my script i wrote recently! ;-)
little sidenote: tarballs (.tgz) are smaller than zipfiles... but that doesn&#039;t matter these days.
have fun!</description> <content:encoded><![CDATA[<p>hey, you cloned my script i wrote recently! ;-)</p><p>little sidenote: tarballs (.tgz) are smaller than zipfiles&#8230; but that doesn&#8217;t matter these days.</p><p>have fun!</p> ]]></content:encoded> </item> </channel> </rss>
