<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wordpress on Shane Cunningham</title><link>https://cunninghamshane.com/tags/wordpress/</link><description>Recent content in Wordpress on Shane Cunningham</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 25 Oct 2012 15:43:36 +0000</lastBuildDate><atom:link href="https://cunninghamshane.com/tags/wordpress/index.xml" rel="self" type="application/rss+xml"/><item><title>Locked myself out of Wordpress</title><link>https://cunninghamshane.com/posts/locked-myself-out-of-wordpress/</link><pubDate>Thu, 25 Oct 2012 15:43:36 +0000</pubDate><guid>https://cunninghamshane.com/posts/locked-myself-out-of-wordpress/</guid><description>&lt;p&gt;Another booboo I made while moving my Wordpress blog to another server was entirely my own fault, I forgot the administrator password I had setup, myep. Here&amp;rsquo;s a way to manually correct this without using something like phpMyAdmin. I&amp;rsquo;m assuming you have root access to your web server.&lt;/p&gt;&#10;&lt;p&gt;Login to MySQL&lt;/p&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sh&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mysql -u root -p&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sql&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sql" data-lang="sql"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;SHOW&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;databases&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sql&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sql" data-lang="sql"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;USE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;wordpressdb&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;figure class="code-block"&gt;&#10; &lt;figcaption class="code-bar"&gt;&#10; &lt;span class="code-title"&gt;sql&lt;/span&gt;&#10; &lt;span class="code-meta"&gt;&#10; &lt;button type="button" class="copy-btn" data-copy&gt;Copy&lt;/button&gt;&#10; &lt;/span&gt;&#10; &lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sql" data-lang="sql"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;wp_users&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;To get the md5 hash for your password you have a few options, visit this &lt;a href="http://www.miraclesalad.com/webtools/md5.php"&gt;md5 Hash Generator&lt;/a&gt; or let MySQL do it for you&amp;hellip;&lt;/p&gt;</description></item><item><title>Wordpress, Nginx and Pretty Permalinks</title><link>https://cunninghamshane.com/posts/wordpress-nginx-and-pretty-permalinks/</link><pubDate>Wed, 24 Oct 2012 15:19:21 +0000</pubDate><guid>https://cunninghamshane.com/posts/wordpress-nginx-and-pretty-permalinks/</guid><description>&lt;p&gt;The only issue I had with moving my blog from Apache to Nginx was with pretty permalinks. Installation and setup was very easy. I used &lt;a href="http://www.rackspace.com/knowledge_center/article/installing-nginx-and-php-fpm-running-on-unix-file-sockets"&gt;this&lt;/a&gt; guide from Rackspace Knowledge Center. Add in MySQL server after setting up Nginx, PHP-FPM and you&amp;rsquo;re all set. My server now uses much less RAM and is better suited for serving my static content.&lt;/p&gt;&#10;&lt;p&gt;When I first had everything setup, I could login to Wordpress dashboard and make edits to my site, but when I tried visiting any links I received 404 errors. After some Googling and trying a couple solutions it still was not working. I finally found the simple solution below, it&amp;rsquo;s on the &lt;a href="http://wiki.nginx.org/WordPress"&gt;Official Nginx Wiki&lt;/a&gt; (should have gone there first!).&lt;/p&gt;</description></item><item><title>Back to Wordpress</title><link>https://cunninghamshane.com/posts/back-to-wordpress/</link><pubDate>Fri, 13 Jan 2012 14:57:55 +0000</pubDate><guid>https://cunninghamshane.com/posts/back-to-wordpress/</guid><description>&lt;p&gt;A few months ago I switched my blog over to Tumblr. I liked Tumblr for the most part, but the lack of control finally got to me. So, I am back to using Wordpress. I&amp;rsquo;m also using a VPS instead of shared hosting I used on my first Wordpress blog.&lt;/p&gt;&#10;&lt;p&gt;To import my Tumblr blog into Wordpress I used &lt;a href="http://wordpress.org/extend/plugins/tumblr-importer/"&gt;Tumblr Import 0.5&lt;/a&gt;. When I tried using it I kept receiving an error stating there was a connection problem with Tumblr. From what I found with a few Google searches this is a very generic error. I finally found something worth trying - turn my custom .com domain that I used with Tumblr, off. That fixed the problem and Tumblr Importer successfully imported my Tumblr blog into Wordpress.&lt;/p&gt;</description></item></channel></rss>