<?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>DeveloperSide.NET Blog &#187; WordPress</title>
	<atom:link href="http://www.devside.net/blog/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.devside.net/blog</link>
	<description>Linux, Windows, MacOS? Who cares. Just give me something that works!</description>
	<lastBuildDate>Fri, 07 May 2010 03:43:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress, Disable and Delete Post Revisions</title>
		<link>http://www.devside.net/blog/wordpress-post-revisions-off</link>
		<comments>http://www.devside.net/blog/wordpress-post-revisions-off#comments</comments>
		<pubDate>Tue, 17 Feb 2009 15:07:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.devside.net/blog/?p=137</guid>
		<description><![CDATA[Post revisions are one of the more useless features of WordPress that do little but add bloat to the database.
At first they were kind of cool, but then what do you do with them?
You&#8217;re not running a wiki. Right?
Here is how to get rid of them once and for all.
Edit wp-config.php, add this line in [...]]]></description>
			<content:encoded><![CDATA[<p>Post revisions are one of the more useless features of WordPress that do little but add bloat to the database.</p>
<p>At first they were kind of cool, but then what do you do with them?</p>
<p>You&#8217;re not running a wiki. Right?</p>
<p>Here is how to get rid of them once and for all.</p>
<p>Edit wp-config.php, add this line in to disable the post revisions feature.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>You will also need to clean the database of all the previous entries under the wp_posts and wp_postmeta tables.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">USE</span> database_name;
<span style="color: #993333; font-weight: bold;">DELETE</span> a<span style="color: #66cc66;">,</span>b<span style="color: #66cc66;">,</span>c <span style="color: #993333; font-weight: bold;">FROM</span> wp_posts a <span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> wp_term_relationships b <span style="color: #993333; font-weight: bold;">ON</span> <span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>ID <span style="color: #66cc66;">=</span> b<span style="color: #66cc66;">.</span>object_id<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">LEFT</span> <span style="color: #993333; font-weight: bold;">JOIN</span> wp_postmeta c <span style="color: #993333; font-weight: bold;">ON</span> <span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span>ID <span style="color: #66cc66;">=</span> c<span style="color: #66cc66;">.</span>post_id<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span>post_type <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'revision'</span>;</pre></td></tr></table></div>

<p>Congratulations, you are done! Enjoy your now much smaller database.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devside.net/blog/wordpress-post-revisions-off/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Another Day, Another WordPress Hack.</title>
		<link>http://www.devside.net/blog/another-wordpress-hack</link>
		<comments>http://www.devside.net/blog/another-wordpress-hack#comments</comments>
		<pubDate>Tue, 09 Oct 2007 01:10:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hack]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.devside.net/blog/another-wordpress-hack</guid>
		<description><![CDATA[It could have been worse.
A few weeks ago we were hit with an SMF v1.1.3 exploit just a few days after the release of v1.1.4. The intruder inserted a slew of hidden spam links into the main &#8216;index.php&#8217; file.
It took me a day or two to detect the modifications. And in this short time period [...]]]></description>
			<content:encoded><![CDATA[<p><u>It could have been worse.</u></p>
<p>A few weeks ago we were <a href="http://www.simplemachines.org/community/index.php?topic=197670.msg1258941">hit</a> with an SMF v1.1.3 exploit just a few days after the release of v1.1.4. The intruder inserted a slew of hidden spam links into the main &#8216;index.php&#8217; file.</p>
<p>It took me a day or two to detect the modifications. And in this short time period <a href="http://forums.devside.net">forums.devside.net</a>, which has been online since 2003, with a healthy Pagerank, had all it&#8217;s pages dropped from Google [with the exception of profiles and archives].</p>
<p>It&#8217;s a good thing I keep the forums on their own sub-domain, which Google treats more like a separate domain than anything else. A SE problem with the sub does not affect the main domain.</p>
<p>As a counter-measure to these &#8220;exploit app weakness, get shell, d/l script, profit&#8221; type of attacks, I have disabled most of the shell related PHP functions on the server.</p>
<p>And so I thought my problems where solved&#8230;</p>
<p>This time it&#8217;s my fault. I was running WordPress v2.2.2, with v2.2.3 having been released about a month ago. I&#8217;ve been checking the WP dashboard, but I must have missed it, or forgotten about it.</p>
<p>This time the intruder exploited one of many WP weaknesses, and inserted some type of a hidden &#8220;-1&#8243; post that was nothing more than an attachment to this particular shell-script, executed with URL &#8216;/blog/?poncheg&#8217;&#8230;</p>
<p><a href="http://www.devside.net/blog/wp-content/uploads/2007/10/magic-shell-1.gif" title="WordPress Hack 1" ><br />
<img src="http://www.devside.net/blog/wp-content/uploads/2007/10/magic-shell-1-425.gif" alt="WordPress Hack 1" /></a></p>
<p><a href="http://www.devside.net/blog/wp-content/uploads/2007/10/magic-shell-2.gif" title="WordPress Hack 2" ><br />
<img src="http://www.devside.net/blog/wp-content/uploads/2007/10/magic-shell-2-425.gif" alt="WordPress Hack 2" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">10</span>:<span style="color: #000000;">20</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;GET /wp-includes/js/tinymce/wp-mce-help.php HTTP/1.0&quot;</span> <span style="color: #000000;">404</span> <span style="color: #000000;">520</span> <span style="color: #ff0000;">&quot;-&quot;</span> <span style="color: #ff0000;">&quot;-&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">10</span>:<span style="color: #000000;">25</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;GET / HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">12071</span> <span style="color: #ff0000;">&quot;-&quot;</span> <span style="color: #ff0000;">&quot;-&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">10</span>:<span style="color: #000000;">35</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;GET /blog/wp-includes/js/tinymce/wp-mce-help.php HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">7665</span> <span style="color: #ff0000;">&quot;-&quot;</span> <span style="color: #ff0000;">&quot;-&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">11</span>:01 -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;POST /blog/xmlrpc.php HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">4327</span> <span style="color: #ff0000;">&quot;-&quot;</span> <span style="color: #ff0000;">&quot;Opera&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">11</span>:<span style="color: #000000;">49</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;POST /blog/wp-admin/options.php HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">1647</span> <span style="color: #ff0000;">&quot;http://www.devside.net/blog/wp-admin/options.php&quot;</span> <span style="color: #ff0000;">&quot;Opera&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">11</span>:<span style="color: #000000;">56</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;POST /blog/wp-admin/options.php HTTP/1.0&quot;</span> <span style="color: #000000;">302</span> <span style="color: #000000;">904</span> <span style="color: #ff0000;">&quot;http://www.devside.net/blog/wp-admin/options.php&quot;</span> <span style="color: #ff0000;">&quot;Opera&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">11</span>:<span style="color: #000000;">59</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;POST /blog/wp-admin/upload.php?style=inline&amp;tab=upload&amp;post_id=-1 HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">1554</span> <span style="color: #ff0000;">&quot;http://www.devside.net/
blog/upload.php?style=inline&amp;tab=upload&amp;post_id=-1&quot;</span> <span style="color: #ff0000;">&quot;Opera&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">12</span>:<span style="color: #000000;">14</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;POST /blog/wp-admin/upload.php?style=inline&amp;tab=upload&amp;post_id=-1 HTTP/1.0&quot;</span> <span style="color: #000000;">302</span> <span style="color: #000000;">509</span> <span style="color: #ff0000;">&quot;http://www.devside.net/b
log/upload.php?style=inline&amp;tab=upload&amp;post_id=-1&quot;</span> <span style="color: #ff0000;">&quot;Opera&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">12</span>:<span style="color: #000000;">25</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;POST /blog/wp-admin/options.php HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">1629</span> <span style="color: #ff0000;">&quot;http://www.devside.net/blog/wp-admin/options.php&quot;</span> <span style="color: #ff0000;">&quot;Opera&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">12</span>:<span style="color: #000000;">30</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;POST /blog/wp-admin/options.php HTTP/1.0&quot;</span> <span style="color: #000000;">302</span> <span style="color: #000000;">904</span> <span style="color: #ff0000;">&quot;http://www.devside.net/blog/wp-admin/options.php&quot;</span> <span style="color: #ff0000;">&quot;Opera&quot;</span>
217.118.81.46 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">12</span>:<span style="color: #000000;">33</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;GET /blog/wp-admin/upgrade.php?step=1 HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">1446</span> <span style="color: #ff0000;">&quot;-&quot;</span> <span style="color: #ff0000;">&quot;-&quot;</span>
...
82.103.135.182 - - <span style="color: #7a0874; font-weight: bold;">&#91;</span>08<span style="color: #000000; font-weight: bold;">/</span>Oct<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2007</span>:07:<span style="color: #000000;">12</span>:<span style="color: #000000;">48</span> -0400<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #ff0000;">&quot;GET /blog/?poncheg HTTP/1.0&quot;</span> <span style="color: #000000;">200</span> <span style="color: #000000;">4789</span> <span style="color: #ff0000;">&quot;-&quot;</span> <span style="color: #ff0000;">&quot;Opera/9.22 (Windows NT 5.1; U; ru)&quot;</span>
...</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">whois 217.118.81.46
JSC <span style="color: #ff0000;">&quot;VimpelCom&quot;</span> WLAN1 Moscow
&nbsp;
resolveip 82.103.135.182
Host name of 82.103.135.182 is vps206.fastvps.ru</pre></div></div>

<p>Luckily, in addition to the disabled PHP functions, I also had all my file/dir permissions under WP locked down, so it does not look like anything was modified. I still recreated the entire WP directory, just for safety sakes, and had to manually go into the database and delete the hidden attachment/post.</p>
<p><em>It&#8217;s not a matter of <strong>if</strong> you are going to get hacked, it&#8217;s a matter of <strong>when</strong>.</em> So keep those web apps patched!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devside.net/blog/another-wordpress-hack/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress Blog Update</title>
		<link>http://www.devside.net/blog/wordpress-upgrade-2</link>
		<comments>http://www.devside.net/blog/wordpress-upgrade-2#comments</comments>
		<pubDate>Mon, 02 Apr 2007 19:00:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DeveloperSide.NET]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.devside.net/blog/wordpress-upgrade-2</guid>
		<description><![CDATA[Having some free time on my hands, I have taken the liberty of upgrading our WordPress version from 2.0 to v2.1.
It was a rather simple procedure &#8212; since our blog is very standard [non-modified]&#8230;

Backup wp db, as a precaution.
Backup wp dir, as a precaution.
Unpack new wp version dir.
Copy over files wp-config.php and .htaccess
Run upgrade.php

With other [...]]]></description>
			<content:encoded><![CDATA[<p>Having some free time on my hands, I have taken the liberty of upgrading our WordPress version from 2.0 to v2.1.</p>
<p>It was a rather simple procedure &#8212; since our blog is very standard [non-modified]&#8230;</p>
<ul>
<li>Backup wp db, as a precaution.</li>
<li>Backup wp dir, as a precaution.</li>
<li>Unpack new wp version dir.</li>
<li>Copy over files wp-config.php and .htaccess</li>
<li>Run upgrade.php</li>
</ul>
<p>With other setups, you would also want to copy over dir wordpress/wp-content, as it can contain themes, plugins, and images linked to from blog posts.</p>
<p>The major changes with our new setup are&#8230;</p>
<ul>
<li>The use of the default WP theme, as it&#8217;s a bit cleaner.</li>
<li>The use of the <a href="http://akismet.com/">Akismet spam</a> plugin, hence allowing all visitors to post comments.</li>
<li>The use of the <a href="http://mnm.uib.es/gallir/wp-cache-2/">wp-cache</a> plugin for faster load times.</li>
<li>The use of the <a href="http://www.dountsis.com/">Social Bookmarks</a> plugin to allow interested readers to bookmark/submit an article to the various social sites.</li>
<li>The use of the <a href="http://sw-guide.de/wordpress/category-tagging-plugin/">Category Tagging</a> plugin. [It's the only one in its category that I could get to work]</li>
<li>The use of the <a href="http://www.g-loaded.eu/2006/01/05/add-meta-tags-wordpress-plugin/">Add-Meta-Tags</a> plugin to improve Blog SEO.</li>
</ul>
<p>The installation of the wp-cache plugin required permissions and ownership change for the wordpress\wp-content dir&#8230;</p>
<ul>
<li>&#8216;chown root:apache wp-content&#8217; to give ownership to the Web-Server</li>
<li>&#8216;chmod 775 wp-content&#8217; to give write permissions to the Web-Server</li>
</ul>
<p>The Category Tagging plugin was a bit harder to setup, as it required the manual editing of a theme template and css file.</p>
<p>The other plugins installed automatic.</p>
<p>Previous posts: <a href="http://www.devside.net/blog/wordpress-upgrade">upgrading WordPress</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devside.net/blog/wordpress-upgrade-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Wordpress, the Simple Way</title>
		<link>http://www.devside.net/blog/wordpress-upgrade</link>
		<comments>http://www.devside.net/blog/wordpress-upgrade#comments</comments>
		<pubDate>Fri, 12 Jan 2007 16:38:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.devside.net/blog/wordpress-upgrade</guid>
		<description><![CDATA[I&#8217;m not sure why some instructions make simple task difficult, but here is how I upgrade WordPress&#8230;
Backup current &#8216;wordpress&#8217; directory and database.

cp -a wordpress/* /usr/local/bk/wordpress/
mysqldump --user=root --password=XXX wordpress > /usr/local/bk/wordpress/wordpress.sql

Download and extract latest version of WordPress.
This will unpack a directory called &#8216;wordpress&#8217; so be careful where you do this and how.

wget http://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz

Copy the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure why some instructions make simple task difficult, but here is how I upgrade WordPress&#8230;</p>
<p>Backup current &#8216;wordpress&#8217; directory and database.</p>
<ol>
<li><code>cp -a wordpress/* /usr/local/bk/wordpress/</code></li>
<li><code>mysqldump --user=root --password=XXX wordpress > /usr/local/bk/wordpress/wordpress.sql</code></li>
</ol>
<p>Download and extract latest version of WordPress.<br />
This will unpack a directory called &#8216;wordpress&#8217; so be careful where you do this and how.</p>
<ol>
<li><code>wget http://wordpress.org/latest.tar.gz</code></li>
<li><code>tar -xzf latest.tar.gz</code></li>
</ol>
<p>Copy the newer wordpress files over the current base. This will not overwrite files &#8216;.htaccess&#8217; or &#8216;wp-config.php&#8217;, or anything else that was placed or generated after the initial install.</p>
<p><code>cp -r --reply=yes wordpress/* /path/to/current/wordpress/dir/</code></p>
<p>Run upgrade script.</p>
<p>http://www.example.com/wordpress/wp-admin/upgrade.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devside.net/blog/wordpress-upgrade/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
