<?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>Just Another Dang Blog &#187; Tutorials</title>
	<atom:link href="http://blog.lopau.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lopau.com</link>
	<description>A tech blog about web development, graphic designs, freelancing, cloud computing, mobile development, innovations and seo.</description>
	<lastBuildDate>Thu, 06 Oct 2011 03:01:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Install Subversion on Bluehost, configuring subversion client on Windows and Mac OS X</title>
		<link>http://blog.lopau.com/install-subversion-on-bluehost-configuring-subversion-client-windows-and-mac-os-x/</link>
		<comments>http://blog.lopau.com/install-subversion-on-bluehost-configuring-subversion-client-windows-and-mac-os-x/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 16:14:37 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=1382</guid>
		<description><![CDATA[Been using Version Control System on our company projects for a couple of years now. I&#8217;ve installed Subversion before on a dedicated Linux hosting(Known Host) and everything is straightforward since I have root access. Recently my personal hosting account with bluehost got renewed and I&#8217;m not really utilizing the server that much I figured to [...]]]></description>
			<content:encoded><![CDATA[<p>Been using Version Control System on our company projects for a couple of years now. I&#8217;ve installed Subversion before on a dedicated Linux hosting(<a href="http://www.knownhost.com/">Known Host</a>) and everything is straightforward since I have root access.</p>
<p>Recently my personal hosting account with bluehost got renewed and I&#8217;m not really utilizing the server that much I figured to try installing subversion on Bluehost to make my hosting more useful. As far as I have tried I can only connect via svn+ssh and not through http as I dont have access to apache to add mod_dav_svn.so on my shared hosting account unless I upgrade to a dedicated host which is not what I want. I documented the steps I took just in case someone will find them useful on setting up theirs.</p>
<p><span id="more-1382"></span><br />

<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
<br />
On my initial setup I used a Windows machine(I&#8217;m using Windows 7 64bit)</p>
<p>1. First is you need to enable SSH access on your account. Login to your account and request to enable SSH if not yet enabled. (The SSH option is disabled by default you need to submit a ticket to have it activated) Got mine activated within an hour.</p>
<p>2. Once enabled you should be supplied with a hostname, login user and password</p>
<p>3. Download the following applications: <strong>Putty </strong>and <strong>PuttyGen</strong> from <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html<br />
</a><br />
and TortoiseSVN from <a href="http://tortoisesvn.net/">http://tortoisesvn.net/</a></p>
<p>4. Using putty connect to your host by entering the hostname and default port 22, enter your username and password on the command prompt type window.</p>
<p>5. Next is to create src directory and download the latest subversion package.</p>
<div class="codesnip-container" >mkdir src<br />
cd src<br />
wget http://subversion.tigris.org/downloads/subversion-1.6.9.tar.bz2<br />
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.9.tar.bz2<br />
tar -xvjpf  subversion-1.6.9.tar.bz2<br />
tar -xvjpf  subversion-deps-1.6.9.tar.bz2<br />
cd subversion-1.6.9<br />
./configure &#8211;prefix=$HOME &#8211;without-berkeley-db &#8211;with-ssl LDFLAGS=&#8221;-L/lib64&#8243;<br />
make<br />
make install</div>
<p>that should install subversion on your server<br />
6. Create a svn directory and then the repository folder</p>
<div class="codesnip-container" >cd<br />
mkdir svn<br />
cd svn</div>
<div class="codesnip-container" >svnadmin create &#8211;fs-type fsfs projects<br />
chmod -R 755 projects</div>
<p>7.  If you have an existing website under public_html you can import it now to your repo</p>
<div class="codesnip-container" >svn import /home/USER/public_html/mywebsite file:///home/USER/svn/projects/mywebsite &#8211;message=&#8221;Importing website&#8221;</div>
<p>8. Edit your .bashrc file in vi and add the following then exit and save.</p>
<div class="codesnip-container" >PATH=$PATH:$HOME/bin</div>
<p>9. Next test out if all is working</p>
<div class="codesnip-container" >svn list svn+ssh://<br />
 USER_NAME@www.YOUR_DOMAIN.com/home/USER/svn/projects/mywebsite</div>
<p>10. Next is for setting up your subversion client to connect to the repo URL for Windows. Create a keypair on the server, this is going to be used for authentication.</p>
<div class="codesnip-container" >cd<br />
ssh-keygen -b 1024 -t dsa -f mykey</div>
<div class="codesnip-container" >mkdir ~/.ssh<br />
chmod 700 ~/.ssh<br />
cp mykey.pub ~/.ssh/authorized_keys</div>
<p>11. Download the key to your computer using your FTP client.<br />
12. Convert the key in <strong>puttygen</strong>, open up <strong>puttygen </strong>then on <strong>Conversions </strong>menu load the key and click on <strong>Save Private Key</strong> and save it as <strong>mykey.ppk</strong></p>
<p>13. Test the key<br />
open putty and create a new session like this:<br />
Session->HostName: www.yourdomain.com<br />
Session->Protocol: SSH<br />
Session->Saved Sessions: yourdomain<br />
SSH->Prefered SSH Protocol version: 2<br />
SSH->Auth->Private Key file for auth: browse and select mykey.PKK<br />
Go back to Session node and hit &#8220;save&#8221; button. You will see &#8220;yourdomain&#8221; in the list of available sessions.<br />
Click &#8220;open&#8221; and you should see a telnet login prompt.<br />
Use your username and if everything is ok, you don&#8217;t have to provide a password to your system.</p>
<p>14. On Windows 7 go to config file and edit with notepad.</p>
<div class="codesnip-container" >C:\Users\YOUR_LOCAL_USERNAME\AppData\Roaming\Subversion\config</div>
<p>Look for the section [tunnels] and add the following line</p>
<div class="codesnip-container" >ssh = c:\\Program\ Files\\TortoiseSVN\\bin\\TortoisePlink.exe</div>
<p>15. Finally checkout go to the folder you want to store the files and, if you already installed TortoiseSVN you should have a right click option SVN Checkout. For the URL of the repository simply enter the svn+ssh URL you tested earlier.</p>
<div class="codesnip-container" >svn+ssh://<br />
 USER_NAME@www.YOUR_DOMAIN.com/home/USER/svn/projects/mywebsite</div>
<p>That should get you up and running on your Windows machine.</p>
<p>Now for your Mac machine, first download the <a href="http://scplugin.tigris.org/">scplugin</a>, this is the mac counterpart of TortoiseSVN. Currently the contextual menu and icon badging is not working right on Snow Leopard or on Lion.</p>
<p>1. First launch Terminal from the Utilities and create a key, leave passphrase as blank</p>
<div class="codesnip-container" >ssh-keygen -t dsa</div>
<p>2.  Next is SCP the key to your server using the username, domain name and password</p>
<div class="codesnip-container" >scp ~/.ssh/id_dsa.pub username@domainname.com:</div>
<p>The key should be uploaded successfully to your server</p>
<p>3. Next login to your server</p>
<div class="codesnip-container" >ssh username@domainname.com<br />
mkdir .ssh          # if it&#8217;s not already there<br />
cat id_dsa.pub >>.ssh/authorized_keys<br />
rm id_dsa.pub       # cleanup</div>
<p>4. That should be it you should not be prompted to enter your password when you login to your server either from SSH or SCP and even on the scplugin.</p>
<p>5. Open up Finder and browse to the folder you want to Checkout for your files. On the Finder Toolbar if you installed it right you should see the scplugin toolbar, click on that and choose Checkout, then enter your svn+ssh URL.</p>
<div class="codesnip-container" >svn+ssh://<br />
 USER_NAME@www.YOUR_DOMAIN.com/home/USER/svn/projects/mywebsite</div>
<p>That should be it, you should be up and running. </p>
<p>Resources:<br />
<a href="http://www.tabruyn.com/site/index.php?option=com_content&#038;view=article&#038;id=55:tortoisesvn-subversion-and-bluehost&#038;catid=36:digital&#038;Itemid=58">http://www.tabruyn.com/site/index.php?option=com_content&#038;view=article&#038;id=55:tortoisesvn-subversion-and-bluehost&#038;catid=36:digital&#038;Itemid=58</a><br />
<a href="http://">http://www.bluehostforum.com/showthread.php?12099-Setting-up-Subversion-on-Bluehost</a><br />
<a href="http://blog.macromates.com/2005/subversion-support-and-ssh-key-pairs/">http://blog.macromates.com/2005/subversion-support-and-ssh-key-pairs/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/install-subversion-on-bluehost-configuring-subversion-client-windows-and-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse PDT 32-bit on Windows 7</title>
		<link>http://blog.lopau.com/eclipse-pdt-32-bit-on-windows-7/</link>
		<comments>http://blog.lopau.com/eclipse-pdt-32-bit-on-windows-7/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 03:47:32 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=1312</guid>
		<description><![CDATA[Recently I upgraded from Windows XP to Windows 7. Seems that the 32-bit and 64-bit architecture in regards to programs is still a bit confusing. I&#8217;m using Eclipse PDT 32-bit which at the moment the only current all in one version. Can be downloaded here. You have 2 optiona to get started 1. The first [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I upgraded from Windows XP to Windows 7. Seems that the 32-bit and 64-bit architecture in regards to programs is still a bit confusing.</p>
<p>I&#8217;m using Eclipse PDT 32-bit which at the moment the only current all in one version. Can be downloaded <a href="http://www.eclipse.org/pdt/downloads/">here</a>.<br />
<span id="more-1312"></span><br />

<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
<br />
You have 2 optiona to get started</p>
<p>1. The first option needs a bit of work which is to<br />
download the <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">64 bit JRE and Java SDK</a> then<br />
 download <a href="http://www.eclipse.org/downloads/">Eclipse Classic</a> 64 bit version and manually add the PDT. <a href="http://wiki.eclipse.org/PDT/Installation#Eclipse_3.7_.2F_Indigo_.2F_PDT_3.0">Check tutorial here.</a></p>
<p>2. Second option is download the Eclipse PDT 32 bit version and then download 32 bit JRE and JDK. You should not mix eclipse 32 bit with 64 bit java, it wont work as I found out the long way.  See my screenshot below, it cannot find it since my Java is 64 bit.</p>
<p><a href="http://blog.lopau.com/wp-content/uploads/2011/07/jre-jdk-error.png"><img class="aligncenter size-full wp-image-1314" title="jre-jdk-error" src="http://blog.lopau.com/wp-content/uploads/2011/07/jre-jdk-error.png" alt="" width="401" height="196" /></a></p>
<p>Following option 2 which is the option I took.<br />
Download the 32 bit version of JRE and Java SDK <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">here </a>.</p>
<p>They will be installed on the C:\Program Files (x64)\Java\ folder.</p>
<p>Next download Eclipse PDT and extract this your C drive like C:\eclipse. If try to run it you will likely get this error.</p>
<p>A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:<br />
c:\Program Files\Eclipse\jre\bin\javaw.exe &#8216;javaw.exe&#8217; in your current PATH</p>
<p><a href="http://blog.lopau.com/wp-content/uploads/2011/07/eclipse-error.png"><img class="aligncenter size-medium wp-image-1316" title="eclipse-error" src="http://blog.lopau.com/wp-content/uploads/2011/07/eclipse-error-300x155.png" alt="" width="300" height="155" /></a></p>
<p>To resolve this<br />
1. Create a shortcut to your desktop</p>
<p>2. Right click on the shortcut and choose properties</p>
<p>3. Edit the target path to</p>
<p>C:\eclipse\eclipse.exe -vm &#8220;C:\Program Files\Java\jdk1.6.0_26\bin&#8221;</p>
<p>Dont forget the quotes as spaces in the target path returns strange results in Windows 7.</p>
<p>That should be it you should be up and running.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/eclipse-pdt-32-bit-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup EC2 and FileZilla with PPK file on Mac OS X</title>
		<link>http://blog.lopau.com/setup-ec2-and-filezilla-with-ppk-file-on-mac-os-x/</link>
		<comments>http://blog.lopau.com/setup-ec2-and-filezilla-with-ppk-file-on-mac-os-x/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 10:07:42 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=1231</guid>
		<description><![CDATA[Coming from a Windows platform where I have tools like Putty to connect via SSH to our EC2 (Elastic Cloud Compute) instance on Amazon web services(AWS) and a tool like Pageant where I can load a .ppk key to allow me to connect my Filezilla client to connect via SFTP. I had  to do the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Coming from a Windows platform where I have tools like <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> to connect via SSH to our EC2 (Elastic Cloud Compute) instance on Amazon web services(AWS) and a tool like <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Pageant</a> where I can load a .ppk key to allow me to connect my Filezilla client to connect via SFTP.</p>
<p>I had  to do the same on Mac OS X which eventually took me a bit of time to figure out. So I&#8217;m writing this short tutorial to document how I got it configured, so I can refer to it in the future and also help out those having a hard time setting it up. This tutorial is basically for those users who connect to Ec2 from a Windows platform and then moved to a Mac OS X platform.</p>
<p>1. On Windows using a telnet application like Putty to connect via SSH, you require a .ppk key. So first thing is to locate your PPK key in Windows.</p>
<p>2. Next you need to convert the PPK key to an OpenSSH format. Using <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuttyGen</a> load the .ppk file and then save the .ssh file generated. (eg. files aws_rsa.ppk and aws_rsa.ssh)</p>
<p>3. Copy the .ssh file and the original .ppk file over to your Mac directory like the Documents folder</p>
<p>4. Next open up Terminal on your Mac and create a new directory</p>
<p># mkdir ~/.ec2</p>
<p>5. Copy the .ssh file to the ~/.ec2 directory</p>
<p>#mv /Users/myUser/Documents/aws_rsa.ssh ~/.ec2/aws_rsa.ssh</p>
<p>6. Change the file permission</p>
<p># sudo chmod 600 aws_rsa.ssh</p>
<p>7. Finally connect to your instance.</p>
<p># ssh -i aws_rsa.ssh root@ec2-xxx-xx-xxx-xxx.compute-1.amazonaws.com</p>
<p>Replace ec2-xxx-xx-xxx-xxx.compute-1.amazonaws.com with your EC2 public address.</p>
<p>Hopefully you should be able to connect to your server instance then.</p>
<p>Next is straightforward, this is for using a GUI like FileZilla to connect to your instance.</p>
<p>1. Open up FileZilla then go to Preferences</p>
<p>2. Go under SFTP and click on Add Key</p>
<p style="text-align: center;"><img class="aligncenter" title="Screen shot 2011-03-30 at 6.02.53 PM" src="http://blog.lopau.com/wp-content/uploads/2011/03/Screen-shot-2011-03-30-at-6.02.53-PM-1024x640.png" alt="" width="574" height="358" /></p>
<p>3. Browse over to your Documents folder where you saved your .ppk file</p>
<p>4. Create a new site and add the public address for the host and protocol as SFTP (SSH File Transfer Protocol), user as root and password leave as blank.</p>
<p>That should be it you should be it. You could now SSH using the Terminal or connect via SFTP using FileZilla. Happy cloud computing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/setup-ec2-and-filezilla-with-ppk-file-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Setup PHP, MySQL and phpMyAdmin on Mac OS X Snow Leopard</title>
		<link>http://blog.lopau.com/how-to-setup-php-mysql-and-phpmyadmin-on-mac-os-x-snow-leopard/</link>
		<comments>http://blog.lopau.com/how-to-setup-php-mysql-and-phpmyadmin-on-mac-os-x-snow-leopard/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 15:11:07 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=1151</guid>
		<description><![CDATA[My previous working setup was on WAMP( Windows, Apache, MySQL and PHP). On Windows I used a bundled app WampServer that did the job, just install the executable and your all set. On Mac it kinda needs a bit of work but basically you have to configure PHP, download-install MySQL and phpMyAdmin. I wrote a [...]]]></description>
			<content:encoded><![CDATA[<p>My previous working setup was on WAMP( Windows, Apache, MySQL and PHP). On Windows I used a bundled app WampServer that did the job, just install the executable and your all set.</p>
<p>On Mac it kinda needs a bit of work but basically you have to configure PHP, download-install MySQL and phpMyAdmin.<br />
<span id="more-1151"></span><br />
I wrote a short tutorial below to cover the installation.<br />

<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
<br />
1. Setup php</p>
<p>Mac OS X Snow Leopard includes <strong>PHP 5.3.x</strong> version by default, you simply need to enable it to start using it.</p>
<p>You can use a text editor or use the <strong>Terminal</strong>, I prefer to use the latter.</p>
<p>a. To launch Terminal go to Applications &gt; Utilities &gt; Terminal</p>
<p>b. On Terminal change directory to <strong>/etc/apache2</strong></p>
<p># cd /etc/apache2</p>
<p>c. Use your favorite editor, I use Vi, open up <strong>httpd.conf </strong></p>
<p>NOTE: The file has write permission, so you need to sudo in order to make changes, if you haven&#8217;t created a password yet for your account, this is the perfect time to create one.</p>
<p>Go to  System Preference &gt; Accounts &gt; Set the password for your account. Once done continue with the terminal</p>
<p># sudo vi httpd.conf</p>
<p>If prompted for your password enter the password.</p>
<p>d. Do a search for .php and uncomment the line</p>
<p>#LoadModule php5_module        libexec/apache2/libphp5.so</p>
<p>To do a search type /.php on the vi editor and hit Enter</p>
<p>e. Exit and Save</p>
<p>Hit the Esc key and type <img src='http://blog.lopau.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' />  to exit and save</p>
<p><!-- p.p1 {margin: 0.0px 0.0px 15.0px 0.0px; text-align: justify; line-height: 21.0px; font: 12.0px Helvetica; color: #cccccc} -->2. Start Sharing by opening System Preferences, clicking on <strong>“Sharing” </strong>under Internet &amp; Wireless and then check  <strong>“Web Sharing”</strong>.</p>
<p>Congrats PHP is enabled.</p>
<p>2. Install MySQL</p>
<p>a. Download the package from http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg</p>
<p>b. Pick the 64 bit version.</p>
<p>c. After mounting, go over the readme.txt for more information.  Install the mysql-5.1.56-osx10.6-x86_64.pkg, go through the wizard. </p>
<p>d. Then also install the startup package which will start the MySQL server when you start your Mac.</p>
<p>e. You should be able to connect to the MySQL server, byrunning `/usr/local/mysql/bin/mysql&#8217; on the command line</p>
<p>3. Next for managing your database with a GUI </p>
<p>a. Go ahead and download phpMyAdmin from</p>
<p>http://www.phpmyadmin.net/home_page/downloads.php</p>
<p>b. I extracted the folder inside my local folder.</p>
<p>c. Read the documentation for ways on how to setup authentication for phpMyAdmin either by cookie or config.<br />

<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
<br />
d. One thing to note is the configuration for the mysql socket.</p>
<p>$cfg['Servers'][$i]['socket'] = &#8221;;</p>
<p>e. To find out where it is located type the command &#8216;status&#8217; on the Terminal when logged in to Mysql.</p>
<blockquote><p>Connection id:		36</p>
<p>Current database:</p>
<p>Current user:		pauloorquillo@localhost</p>
<p>SSL:			Not in use</p>
<p>Current pager:		stdout</p>
<p>Using outfile:		&#8221;</p>
<p>Using delimiter:	;</p>
<p>Server version:		5.1.56 MySQL Community Server (GPL)</p>
<p>Protocol version:	10</p>
<p>Connection:		Localhost via UNIX socket</p>
<p>Server characterset:	latin1</p>
<p>Db     characterset:	latin1</p>
<p>Client characterset:	latin1</p>
<p>Conn.  characterset:	latin1</p>
<p>UNIX socket:		/tmp/mysql.sock</p>
<p>Uptime:			7 days 2 hours 30 min 9 sec</p></blockquote>
<p>f. You should see something like above note the UNIX socket and edit your phpmyadmin config file</p>
<p>$cfg['Servers'][$i]['socket'] = &#8216;/tmp/mysql.sock&#8217;;</p>
<p>That should be it you should be up and running. Happy coding.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/how-to-setup-php-mysql-and-phpmyadmin-on-mac-os-x-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress error- Is its parent directory writable by the server?</title>
		<link>http://blog.lopau.com/wordpress-error-is-its-parent-directory-writable-by-the-server/</link>
		<comments>http://blog.lopau.com/wordpress-error-is-its-parent-directory-writable-by-the-server/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 17:52:24 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=310</guid>
		<description><![CDATA[Been using WordPress now for about 4 months on my projects and I occasionally find problems with plugins and themes but not on WordPress itself. I seem to be getting good at troubleshooting some. Yesterday my host changed servers, then I upgraded to the latest version of WordPress and everything got whack on uploading images [...]]]></description>
			<content:encoded><![CDATA[<p>Been using WordPress now for about 4 months on my projects and I occasionally find problems with plugins and themes but not on WordPress itself. I seem to be getting good at troubleshooting some.</p>
<p>Yesterday my host changed servers, then I upgraded to the latest version of WordPress and everything got whack on uploading images in the admin with this error.<br />
<span id="more-310"></span></p>
<blockquote><p>Unable to create directory /home/username/public_html/wp-content/uploads/2008/05. Is its parent directory writable by the server?</p></blockquote>
<p>
<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
Most people encounter the error after upgrading WordPress or changing servers</p>
<p>Here are troubleshooting steps you can do.<br />
1. With the error above, it can be assumed it is a permission problem with the folder. Default is 755, With your FTP software or WebFTP, edit the uploads folder in the wp-content to 777. Then try again.</p>
<p>2. If that doesn&#8217;t work, it can be an ownership issue. Wherein the owner of the files is apache and not your user account.</p>
<p>If you have access to SSH, you can edit the file to change ownership to</p>
<p>chown -R username:apache_user /home/username/public_html/wp-content/</p>
<p>username:apache_user for me is the ftp account, others are different.</p>
<p>3. If this doesn&#8217;t work. Check the upload path in the admin &#8211; Settings &#8211; Miscellaneous and make sure it is wp-content/uploads sometimes the upgrade or  server move changes it to the absolute path.</p>
<p>The 3rd solution worked for me. Hope you find this useful</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/wordpress-error-is-its-parent-directory-writable-by-the-server/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Reset Administrator Password for Vista or XP</title>
		<link>http://blog.lopau.com/reset-administrator-password-for-vista-or-xp/</link>
		<comments>http://blog.lopau.com/reset-administrator-password-for-vista-or-xp/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 06:42:37 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[password reset]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=252</guid>
		<description><![CDATA[Over consecutive weeks I have couple of friend and a cousin who cannot use their laptops because they forgot or dont know the password for the administrator to login. The initial assumption is to reformat it, but there are two steps to retrieve the password before attempting to reformat or bring it to a service [...]]]></description>
			<content:encoded><![CDATA[<p>Over consecutive weeks I have couple of friend and a cousin who cannot use their laptops because they forgot or dont know the password for the administrator to login.<br />
<span id="more-252"></span><br />

<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
<br />
The initial assumption is to reformat it, but there are two steps to retrieve the password before attempting to reformat or bring it to a service technician.</p>
<p>1. Built in password reset disk creation in XP and Vista. When you enable password for the administrator in Vista or XP on the User Accounts, there is an option to create a password reset disk which is designed for future use incase you forget it. This is one option if you created one. But the truth is who creates one? maybe network administrators but not the common PC users.</p>
<p><a href="http://blog.lopau.com/wp-content/uploads/2008/10/password-reset-disk.jpg"><img class="aligncenter size-medium wp-image-253" title="password-reset-disk" src="http://blog.lopau.com/wp-content/uploads/2008/10/password-reset-disk-300x234.jpg" alt="" width="300" height="234" /></a></p>
<p>2. If first option is not available to you,then you can search for a password boot disk which will disable the administrator password. There are dozens of these types of programs but one program I recommend is<a href="http://www.pcloginnow.com/product.html"> PC Login Now 2.0</a>. Download the iso file and burn it to a disk to create the boot disk, that simple. Configure your pc or laptop to boot in the cd drive, insert the CD and it would boot then just disable the password and restart. Took about 5 minutes for the whole process.</p>
<p><a href="http://blog.lopau.com/wp-content/uploads/2008/10/pc_login_now_160.jpg"><img class="aligncenter size-medium wp-image-254" title="pc_login_now_160" src="http://blog.lopau.com/wp-content/uploads/2008/10/pc_login_now_160.jpg" alt="" width="160" height="120" /></a></p>
<p>And from that effort, my friend gave me my request for Absolut Vodka, not bad for a 5 minute work which took them about a month trying without any success.</p>
<p><a href="http://blog.lopau.com/wp-content/uploads/2008/10/ab-clear.jpg"><img class="aligncenter size-medium wp-image-255" title="ab-clear" src="http://blog.lopau.com/wp-content/uploads/2008/10/ab-clear.jpg" alt="" width="220" height="220" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/reset-administrator-password-for-vista-or-xp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress parse error: syntax error on PHP 5.2.x</title>
		<link>http://blog.lopau.com/wordpress-parse-error-syntax-error-on-php-52x/</link>
		<comments>http://blog.lopau.com/wordpress-parse-error-syntax-error-on-php-52x/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 16:19:25 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=221</guid>
		<description><![CDATA[Here is a short WordPress troubleshooting tutorial for theme tweaking. A theme I&#8217;m working on runs fine and was tested on PHP 4.3.x locally in my machine, I tried testing on PHP 5.2.x and I immediately encountered syntax error on WordPress. Traced the problem to be inside the Loop in WordPress. Sharing it here for [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a short WordPress troubleshooting tutorial for theme tweaking.</p>
<p>A theme I&#8217;m working on runs fine and was tested on PHP 4.3.x locally in my machine, I tried testing on PHP 5.2.x and I immediately encountered syntax error on WordPress. Traced the problem to be inside the Loop in WordPress. Sharing it here for those having hard time making their themes work on their host.</p>
<p><span id="more-221"></span><br />

<!-- Begin Google Adsense code -->
<div class="googleads">
<script type="text/javascript"><!--
google_ad_client = "pub-4515932012590505";
/* 200x200, created 10/29/08 */
google_ad_slot = "3929428513";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
<br />
If you are getting these PHP Token errors like the following:</p>
<blockquote><p><strong>Parse error</strong>:  syntax error, unexpected T_ENDWHILE</p></blockquote>
<blockquote><p><strong>Parse error</strong>:  syntax error, unexpected T_ELSE</p></blockquote>
<blockquote><p><strong>Parse error</strong>:  syntax error, unexpected T_ENDIF</p></blockquote>
<p>Solution: check your if/else or while scripts and modify them accordingly to confirm to WordPress or your initial PHP tags.</p>
<p>Example script courtesy of <a href="http://theundersigned.net/2006/03/wordpress-change-look-of-every-second-post/">undersigned.net</a>, This code changes every other post to their own css tags. This runs fine and tested on PHP 4.3.x only</p>
<blockquote><p>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post();</p>
<p>$loopcounter++; ?&gt;</p>
<p>&lt;div class=“post”&gt;</p>
<p>&lt;?php if ($loopcounter % 2 == 0) { ?&gt;</p>
<p>&lt;h1 class=“even”&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;</p>
<p>&lt;?php } else { ?&gt;</p>
<p>&lt;h1 class=“odd”&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;</p>
<p>&lt;? } ?&gt;</p>
<p>&lt;?php the_content(); ?&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;?php endwhile; ?&gt;</p></blockquote>
<p>You used the if/else normal php codes inside the WordPress loop tag. Make a strict code by simply changing your if/else to WordPress tags to make it work on PHP 5.2.x.</p>
<blockquote><p>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post();</p>
<p>$loopcounter++; ?&gt;</p>
<p>&lt;div class=“post”&gt;</p>
<p>&lt;?php if ($loopcounter % 2 == 0) : ?&gt;</p>
<p>&lt;h1 class=“even”&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;</p>
<p>&lt;?php else : ?&gt;</p>
<p>&lt;h1 class=“odd”&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt;</p>
<p>&lt;? endif; ?&gt;</p>
<p>&lt;?php the_content(); ?&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;?php endwhile; ?&gt;</p></blockquote>
<p>That&#8217;s it, issue fixed! It should be similar to other scripts using similar coding style and not just to WordPress. Happy theme tweaking!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/wordpress-parse-error-syntax-error-on-php-52x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to enable GD Library</title>
		<link>http://blog.lopau.com/how-to-enable-gd-library/</link>
		<comments>http://blog.lopau.com/how-to-enable-gd-library/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 13:47:58 +0000</pubDate>
		<dc:creator>lopau</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[enable gd library]]></category>

		<guid isPermaLink="false">http://blog.lopau.com/?p=12</guid>
		<description><![CDATA[My first basic PHP tutorial. Pretty simple tutorial on enabling the GD support extension. PHP 4.3.x and higher by default has GD support included but may not be enabled. First thing to do is to check with phpinfo(), if you don&#8217;t see GD support, then we need to enable it. Simply open your php.ini and [...]]]></description>
			<content:encoded><![CDATA[<p>My first basic PHP tutorial. Pretty simple tutorial on enabling the GD support extension. PHP 4.3.x and higher by default has GD support included but may not be enabled. First thing to do is to check with <em>phpinfo()</em>, if you don&#8217;t see GD support, then we need to enable it.</p>
<p><span id="more-12"></span></p>
<p>Simply open your <em>php.ini</em> and uncomment extension=php_gd2.dll</p>
<blockquote><p>;extension=php_exif.dll<br />
;extension=php_fdf.dll<br />
;extension=php_filepro.dll<br />
extension=php_gd2.dll</p></blockquote>
<p>Next check the extension_dir and edit to your php directory.</p>
<blockquote><p>extension_dir = C:\php\extensions\</p></blockquote>
<p>Edit the path accordingly to where the php_gd2.dll file is found in the php directory.<br />
Save and restart Apache. GD should now be enabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lopau.com/how-to-enable-gd-library/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

