<?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>Palm Pre Hacks Blog! &#187; Palm Pre Websites</title>
	<atom:link href="http://palmpre-hacks.com/category/palm-pre-websites/feed/" rel="self" type="application/rss+xml" />
	<link>http://palmpre-hacks.com</link>
	<description>Palm Pre Hacks Blog!</description>
	<lastBuildDate>Sat, 24 Jul 2010 00:27:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Install/Run A Wordpress Blog on a Palm Pre!</title>
		<link>http://palmpre-hacks.com/palm-pre-hacks/how-to-installrun-a-wordpress-blog-on-a-palm-pre/</link>
		<comments>http://palmpre-hacks.com/palm-pre-hacks/how-to-installrun-a-wordpress-blog-on-a-palm-pre/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 05:51:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Palm Pre Hacks]]></category>
		<category><![CDATA[Palm Pre Websites]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[palm pre]]></category>
		<category><![CDATA[run]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://palmpre-hacks.com/?p=75</guid>
		<description><![CDATA[
(Download This YouTube Video using FREE FLVDirect software)


(screenshot of SSH Top command showing processes running on my Palm Pre)
Since the Palm Pre is based on Linux, I figured that you could probably run a Wordpress blog on the Palm Pre.   Well, after about 3 hours of research, I found a way to run a wordpress [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/VKZMurw-Vsg&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/VKZMurw-Vsg&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>(<a href="http://palmpre-hacks.com/out/downloadflv"  target="_blank">Download This YouTube Video using FREE FLVDirect software</a>)</p>
<p><img class="alignnone size-full wp-image-97" title="palmpre-wordpressblog" src="http://palmpre-hacks.com/wp-content/uploads/2009/08/palmpre-wordpressblog.jpg" alt="palmpre-wordpressblog" width="500" height="375" /></p>
<p><img class="alignnone size-full wp-image-95" title="lighttpd-palmpre" src="http://palmpre-hacks.com/wp-content/uploads/2009/08/lighttpd-palmpre.jpg" alt="lighttpd-palmpre" width="550" height="223" /></p>
<p>(screenshot of SSH Top command showing processes running on my Palm Pre)</p>
<p>Since the Palm Pre is based on Linux, I figured that you could probably run a Wordpress blog on the Palm Pre.   Well, after about 3 hours of research, I found a way to run a wordpress blog using Optware Lighttpd and MySQL server.  (<a target="_blank" href="http://www.lighttpd.net/" >Lighttpd</a> is a &#8220;light&#8221; version of Apache pretty much and would be perfect candiate for the Palm Pre since its hardware isn&#8217;t made for full-fledged websites rather for a smartphone.)</p>
<p>I think this might be a great way to host your personal websites that your family and friends visit without having to pay for hosting fees.  (Well, just be careful Sprint doesn&#8217;t find out&#8230;)</p>
<p>Anyways, I am amazed that you can actually run a Wordpress blog on the Palm Pre, here&#8217;s detailed step-by-step instructions so you can do it too.</p>
<p>You will have to <a href="http://palmpre-hacks.com/palm-pre-hacks/how-to-ssh-into-your-palm-pre/" >first learn how to SSH into your Palm Pre</a>, after doing that follow the rest of the directions outlined here.</p>
<p>P.S. If you have never dealt with Linux, just be patient and feel free to ask me questions on the comments line as I will do my best to help you setup a Wordpress blog on your Palm Pre.</p>
<p>1) First, we will need to mount the filesystem to be writable.  Go SSH into your Palm Pre to the linux command prompt and type the following.  (Please press enter after any of these code lines of course&#8230;)</p>
<pre>sudo mount -o remount,rw /</pre>
<p>2) Next, let&#8217;s install optware MySQL package by typing the command below:</p>
<pre>sudo ipkg-opt install mysql</pre>
<p>You will get the following messages if installation is successful.</p>
<pre>To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/opt/bin/mysqladmin -u root password 'new-password'
/opt/bin/mysqladmin -u root -h castle password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /opt ; /opt/bin/mysqld_safe &amp;

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /opt/bin/mysqlbug script!

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL SUCCESS!
Successfully terminated.</pre>
<p>3) Let&#8217;s reset our MySQL root password by typing the following command where <strong>new-password</strong> should be your new password.  (Please make a note of your MySQL root password as we will need it later for Wordpress configuration file.)</p>
<pre>/opt/bin/mysqladmin -u root password 'new-password'</pre>
<p>4) Next, let&#8217;s create a new database for the MySQL server so we can use it for the Wordpress blog.</p>
<pre>/opt/bin/mysql -u root

mysql&gt; create database test;

mysql&gt; quit;</pre>
<p>5) Next, we will install <strong>Lighttpd</strong>, which is the light version of Apache.</p>
<pre>sudo ipkg-opt install lighttpd php-fcgi</pre>
<p>Your web root will be in the following directory:</p>
<pre>/opt/share/www/</pre>
<p>6) Next, we will edit the Lighttpd port to 9999 to not interfere with other httpd processes on the Palm Pre:</p>
<pre>sudo vi /opt/etc/lighttpd/lighttpd.conf</pre>
<p>Change the server.port form 8081 to 9999 like here:<br />
(You will need to type &#8220;i&#8221; to start typing&#8230;<a target="_blank" href="http://www.computerhope.com/unix/uvi.htm" >refer to complete VI command instructions here</a> or you can use your favorite linux editor too.)</p>
<pre>## bind to port (default: 80)
server.port                = 9999</pre>
<p>Press the <strong>Esc</strong> key on your keyboard and &#8220;<strong>:wq!</strong>&#8221; to save file and exit back to command prompt.</p>
<p>7) Next, we will setup a start-up event so our <strong>lighttpd</strong> and <strong>mysqld</strong> server runs at boot time and when your phone is on:</p>
<pre>sudo vi /etc/event.d/optware-lighttpd</pre>
<p>Copy and paste the following: (hit &#8220;<strong>i</strong>&#8221; and <strong>Shift+Ins</strong> in the editor)</p>
<pre># don't start until the WebOS finishes it's normal boot
# that way no delay is added to the GUI startup
start on stopped finish
stop on runlevel [!2]

# Restart the lighttpd daemon if it exits/dies
respawn

exec /opt/sbin/lighttpd -f /opt/etc/lighttpd/lighttpd.conf

pre-start script
/usr/sbin/iptables -D INPUT -p tcp --dport 9999 -j ACCEPT || /bin/true
/usr/sbin/iptables -I INPUT -p tcp --dport 9999 -j ACCEPT
/opt/bin/mysqld_safe &amp;
end script</pre>
<p>Press <strong>Esc</strong> key and &#8220;<strong>:wq!</strong>&#8221; to save file and exit VI editor.</p>
<p> <img src='http://palmpre-hacks.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Now we will need to install the blog.  Since this is a test, we will install it in a subdirectory called /blog.</p>
<p>Browse to the web root by typing the cd command below:</p>
<pre>cd /opt/share/www/</pre>
<p>9) Next, let&#8217;s make a new directory called blog:</p>
<pre>sudo mkdir blog</pre>
<p>10) Enter the blog directory:</p>
<pre>cd blog</pre>
<p>11) Let&#8217;s download the latest version of Wordpress:</p>
<pre>sudo wget http://wordpress.org/latest.zip</pre>
<p>12) Unzip the Wordpress zip file:</p>
<pre>sudo unzip latest.zip</pre>
<p>13) Copy the files in wordpress directory to the blog directory like this:</p>
<pre>sudo cp wordpress/* . -rf</pre>
<p>14) Open up your dynamic domain name on your browser like this:</p>
<pre>http://MyDynamicDNS.blogdns.com:9999/blog/</pre>
<p>15) If you get a screen like below, you are ready to rock, let&#8217;s go back to the Linux command prompt and edit the Wordpress configuration files so we can setup the new Wordpress Blog.</p>
<p><img class="alignnone size-full wp-image-85" title="palmpre-wordpress-0" src="http://palmpre-hacks.com/wp-content/uploads/2009/08/palmpre-wordpress-0.jpg" alt="palmpre-wordpress-0" width="500" height="125" /></p>
<p>16) We will first move the wp-config-sample.php file to wp-config.php.</p>
<pre>sudo mv wp-config-sample.php wp-config.php</pre>
<p>17) And let&#8217;s edit the Wordpress config file:</p>
<pre>sudo vi wp-config.php</pre>
<p>18) Change the following lines to your database name and root password:</p>
<pre>define('DB_NAME', 'test');
define('DB_USER', 'root');
define('DB_PASSWORD', 'mypassword');</pre>
<p>19) Since we are using Lighttpd, we need to tell PHP where the www root is, so let&#8217;s edit the php.ini file like this:<br />
<strong>(This is to enable the MySQL server to work with Lighttpd!  If you don&#8217;t do this step you will get a DATABASE ERROR message because PHP cannot find your web root.)</strong></p>
<pre>sudo vi /opt/etc/php.ini</pre>
<p>20) Find the following line and add <strong>/opt/share/www </strong>to <strong>doc_root</strong> parameter:</p>
<pre>doc_root ="/opt/share/www/"</pre>
<p>21) Hit <strong>Escape</strong> key and &#8220;<strong>:wq!</strong>&#8221; to save and exit.</p>
<p>22) Next reboot your Palm Pre so the changes take effect:</p>
<pre>sudo /sbin/reboot</pre>
<p>23) Open up your dynamic domain name on your browser again (on your computer of course!):</p>
<pre>http://MyDynamicDNS.blogdns.com:9999/blog/</pre>
<p>You should now see something like this:</p>
<p><img class="alignnone size-full wp-image-86" title="palmpre-wordpress-1" src="http://palmpre-hacks.com/wp-content/uploads/2009/08/palmpre-wordpress-1.jpg" alt="palmpre-wordpress-1" width="500" height="365" /></p>
<p>24) Fill out Blot Title, E-mail, and &#8220;Install WordPress&#8221;!</p>
<p><img class="alignnone size-full wp-image-87" title="palmpre-wordpress-2" src="http://palmpre-hacks.com/wp-content/uploads/2009/08/palmpre-wordpress-2.jpg" alt="palmpre-wordpress-2" width="500" height="330" /></p>
<p>25) Log In using the admin username and password provided.</p>
<p><img class="alignnone size-full wp-image-88" title="palmpre-wordpress-3" src="http://palmpre-hacks.com/wp-content/uploads/2009/08/palmpre-wordpress-3.jpg" alt="palmpre-wordpress-3" width="428" height="404" /></p>
<p>26) Open up your dynamic domain name on your browser again&#8230;</p>
<pre>http://MyDynamicDNS.blogdns.com:9999/blog/</pre>
<p>27) You should see a new Wordpress blog, completely hosted on your Palm Pre.  Congratulations, you did it bud.</p>
<p><img class="alignnone size-full wp-image-90" title="palmpre-wordpress-4" src="http://palmpre-hacks.com/wp-content/uploads/2009/08/palmpre-wordpress-4.jpg" alt="palmpre-wordpress-4" width="500" height="331" /></p>
<h2>Final Words</h2>
<p>Based on my testing, it seems that the Wordpress blog could easily handle light traffic (up to 3 concurrent users) and I am sure that could be a lot better by installing <a target="_blank" href="http://wordpress.org/extend/plugins/wp-super-cache/" >Wordpress Super Cache</a>, which I will have some test reports later this week.  Also, when you run Lighttpd, you will need to refer to <a target="_blank" href="http://tumble.jalada.co.uk/2008/11/wordpress-and-super-cache-rewrite-rules/" >this guide on how to do human-friendly permalinks and to work with Super Cache</a>.  There&#8217;s also ways to optimize the Lighttpd and MySQL server, which could further enhance the Palm Pre Wordpress blog.</p>
<p>You can also install Apache on the Palm Pre but I don&#8217;t recommend it as your Palm Pre blog will run much slower than on Lighttpd.</p>
<p>Well, I am sure you can also install many other types of websites running on the LAMP stack now, it doesn&#8217;t have to be a Wordpress blog but I&#8217;ve laid down the foundation for you so you can save time while developing your next mobile Palm Pre website.</p>
<p>I wish I could publicly show you my Wordpress blog running on my Palm Pre but Sprint will surely pinpoint me and cancel my contract so I will leave it up to you guys to try it out yourselves. <img src='http://palmpre-hacks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   And don&#8217;t make your Palm Pre blog public either, I won&#8217;t be responsible if you lose your contract because of it.</p>
<p>*Note -  This guide works well and I am no linux expert myself.  I just happened to know a little bit about linux systems as I manage web servers on a daily basis.  Please follow the instructions carefully and I am sure you can do it too and learn a bunch of great stuff about linux.  If you ever have trouble or want to know more about certain commands, just google it! <img src='http://palmpre-hacks.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>FAQ</h2>
<p>Q: I cannot edit files, I get a &#8220;readonly&#8221; error!</p>
<p>A: Whenever you reboot the Palm Pre, you will need to make the filesystem writable again, just use this code before trying to edit files:</p>
<pre>
<pre>sudo mount -o remount,rw /</pre>
</pre>
<p>Also, you might want to make sure to add &#8220;<strong>sudo</strong>&#8221; before any code.  This is so you have root permissions to execute files.  Sometimes I forget this and I get errors.</p>
<p>Q: How do I disable the web server from running?</p>
<p>A: To disable, use the following command and reboot your phone:</p>
<pre>sudo chmod 000 /etc/event.d/optware-lighttpd</pre>
<p>To enable, use the following command and reboot your phone:</p>
<pre>sudo chmod 700 /etc/event.d/optware-lighttpd</pre>
<p>Q: How do I reboot my phone via command line?<br />
A: This code right here:</p>
<pre>sudo /sbin/reboot</pre>
<h2>Reference: Commands for Restarting, Stopping Lighttpd or Mysqld</h2>
<p>Restart lighttpd!</p>
<pre>sudo /opt/etc/init.d/S80lighttpd restart</pre>
<p>Start mysqld:</p>
<pre>sudo /opt/bin/mysqld_safe &amp;

sudo /opt/bin/mysqld_safe &amp;</pre>
<h2>Resources</h2>
<p>I&#8217;ve used many resources to install Wordpress blog on my Palm Pre.  I&#8217;ve hacked existing code to make this work but I have to give credit to these guides that have helped me get through problems.  (Thanks Open Source!!!)</p>
<ul>
<li><a target="_blank" href="http://www.webos-internals.org/wiki/Lighttpd" >WebOs-Internals.Org </a>- Lighttpd Installation instructions.</li>
<li><a target="_blank" href="http://www.nslu2-linux.org/wiki/Optware/MediaWiki" >NSLU2-linux.org</a> &#8211; How to install MediaWiki on Optware.</li>
<li><a target="_blank" href="http://www.nslu2-linux.org/wiki/Optware/MySQL" >NSLU2-linux.org</a> &#8211; How to Reset MySQL password.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://palmpre-hacks.com/palm-pre-hacks/how-to-installrun-a-wordpress-blog-on-a-palm-pre/feed/</wfw:commentRss>
		<slash:comments>80</slash:comments>
		</item>
		<item>
		<title>Palm Pre Blogs and Forums!</title>
		<link>http://palmpre-hacks.com/palm-pre-websites/palm-pre-blogs-and-forums/</link>
		<comments>http://palmpre-hacks.com/palm-pre-websites/palm-pre-blogs-and-forums/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 21:00:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Palm Pre Websites]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[forum post]]></category>
		<category><![CDATA[great forum]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[palm]]></category>
		<category><![CDATA[palm pre blogs]]></category>
		<category><![CDATA[palm pre forums]]></category>

		<guid isPermaLink="false">http://palmpre-hacks.com/?p=44</guid>
		<description><![CDATA[I&#8217;ve been getting a ton of e-mails from my friends who just got the Palm Pre asking where to find information about the Palm Pre.
Well, here&#8217;s  a list of the major Palm Pre blog and forums you can check out for further digging into the &#8220;elite&#8221; early-adaptor society:

PreCentral.Net &#8211; PreCentral.Net has some great information through [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting a ton of e-mails from my friends who just got the Palm Pre asking where to find information about the Palm Pre.</p>
<p>Well, here&#8217;s  a list of the major Palm Pre blog and forums you can check out for further digging into the &#8220;elite&#8221; early-adaptor society:</p>
<ul>
<li><a target="_blank" href="http://www.precentral.net/" >PreCentral.Net</a> &#8211; PreCentral.Net has some great information through its blog, forum, and they even sell Palm Pre accessories for cheap.  Definitely worth taking time to search through their database if you want more information on the Palm Pre.  (Thanks to <a target="_blank" href="http://forums.precentral.net/web-os-development/196558-howto-install-mytether-dummies-step-step-guided-instructions.html" >member iPod12345 for the forum post!</a>)</li>
<li><a target="_blank" href="http://palmwebos.org" >PalmWebOs.Org</a> &#8211; PalmWebOs.org is another blog/forum social network for Palm Pre users.  I think their site is more oriented towards hacking and the WebOS operating system itself, another great resource to check out.  (Thanks btw to the people there for <a target="_blank" href="http://palmwebos.org/2009/08/03/turn-your-pre-into-a-wifi-hotspot-with-my-tether/" >featuring our blog post</a>, you guys rock!)</li>
<li><a target="_blank" href="http://www.everythingpre.com" >EverythingPre.com</a> &#8211; Here&#8217;s another great forum for hacking the Palm Pre. (Thanks to <a target="_blank" href="http://www.everythingpre.com/forum/homebrew-apps/for-pre-my-tether-app-v-2-0-0-a-22778.html" >AkiTaYo for the forum post</a>!)</li>
<li><a target="_blank" href="http://www.palmpreforum.org/" >PalmPreForum.Org</a> &#8211; PalmPreForum.Org is another good one to check out.</li>
<li><a target="_blank" href="http://palmpreblog.com/" >PalmPreBlog.com</a> &#8211; Cool Palm Pre blog.</li>
<li><a target="_blank" href="http://blogpalmpre.com/" >BlogPalmPre.com</a> &#8211; Another cool blog, nuff said.</li>
<li><a target="_blank" href="http://mypre.com/" >MyPre.com</a> &#8211; Oh I am exhausted with so MUCH info, here&#8217;s another good Palm Pre blog!</li>
</ul>
<p>Of course, last but not least, don&#8217;t forget <a target="_blank" href="http://forums.palm.com/palm/" >Palm has their own forum dedicated to the Palm Pre here</a>.</p>
<p>I probably didn&#8217;t cover ALL the Palm Pre blogs and forums here but you can always add yours in the comments line and I will update the list.</p>
<p>I really think Palm Pre is only going to get bigger and bigger, even if they are getting <a target="_blank" href="http://blogs.zdnet.com/BTL/?p=22159" >scary press</a>.  There&#8217;s a lot of Palm Pre haters out there, specifically those iPhone users who cannot accept the fact that Palm Pre is faster and can do more things than an iPhone.   Well, don&#8217;t worry, time will prove that Palm Pre is just as good or better than the iPhone.  (Take a look at the <a href="http://palmpre-hacks.com/palm-pre-hacks/how-to-hacktether-palm-pre-into-a-wifi-router/" >Palm Pre WiFi Router hack</a>, I tried it last night with multiple computers and it works flawless!)</p>
<p>P.S. Of course, don&#8217;t forget to check out this blog too, where we will be diving into &#8220;Palm Pre Linux for dummies&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://palmpre-hacks.com/palm-pre-websites/palm-pre-blogs-and-forums/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
