Forbidden You don’t have permission to access /~username/directory in Mac OS X

I have this weird issue with my website backups. When I store them inside my Sites folder and try to view them from the browser.

1. They do not appear listed when I do a directory listing
2. Accessing the folder manually produces the error

You don’t have permission to access on localhost /~username/mydirectory

This is well known and documented on Apple here.

But my issue is it is only a problem for this backups, the existing directories I have in my system works fine.

The solution is not straightforward but this works.

Follow the solution from Apple website. edit your username.conf file using terminal and then add the following line before closing.

Options +FollowSymLinks

So it looks like this.

<Directory “/Users/username/Sites/”>
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
Options +FollowSymLinks

Then restart apache

service apachectl restart

Safari Bug on Lion: The application Safari canceled restart

Noticed a bug on my Safari after upgrading to Lion. Haven’t been able to recreate it is as it appears to be random, when using Safari and you close some tabs. When you try to quit the Safari, the option is greyed out from the Safari Menu and Command+Q does not work. If you try to restart your mac you’ll get the screen shot below.
Read the rest of this entry »

Java SE Development (JDK) not found installing Android SDK

This is a simple tutorial for users with Vista/Windows 7 64-bit.

So you got Eclipse(Helios, Indigo) 64 bit running on your 64-bit machine and definitely you have Java SE Development and Jave Runtime Environment in check. But when you run the Andriod SDK installer you get this error.

Java SE Development (JDK) not found.

Android SDK relies on Java SE Development Kit(JDK)
Go to > Downloads > Java SE > JD to download and install a JDK before continuing.

Note: A Java Runtime (JRE) is not enought to develop for Android.

Well its a bug in the installer, for a simple solution simply hit the Back button and click on Next. Your JDK should be detected.

Setup EC2 and FileZilla with PPK file on Mac OS X

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 same on Mac OS X which eventually took me a bit of time to figure out. So I’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.

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.

2. Next you need to convert the PPK key to an OpenSSH format. Using PuttyGen load the .ppk file and then save the .ssh file generated. (eg. files aws_rsa.ppk and aws_rsa.ssh)

3. Copy the .ssh file and the original .ppk file over to your Mac directory like the Documents folder

4. Next open up Terminal on your Mac and create a new directory

# mkdir ~/.ec2

5. Copy the .ssh file to the ~/.ec2 directory

#mv /Users/myUser/Documents/aws_rsa.ssh ~/.ec2/aws_rsa.ssh

6. Change the file permission

# sudo chmod 600 aws_rsa.ssh

7. Finally connect to your instance.

# ssh -i aws_rsa.ssh

Replace with your EC2 public address.

Hopefully you should be able to connect to your server instance then.

Next is straightforward, this is for using a GUI like FileZilla to connect to your instance.

1. Open up FileZilla then go to Preferences

2. Go under SFTP and click on Add Key

3. Browse over to your Documents folder where you saved your .ppk file

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.

That should be it you should be it. You could now SSH using the Terminal or connect via SFTP using FileZilla. Happy cloud computing.

Godaddy Checkout Issue

I encountered a problem with Godaddy today when renewing a domain using my credit card which I have stored on Godaddy, suddenly I’m getting the  error

“There was a problem authorizing your credit. Please verify your payment information or use an alternate form of payment.”

After some googling I found out it is common on Paypal type of payment method, but I’m not using Paypal. After some more investigating I remember I paid for the domain before using Paypal but now I’m paying via card.  The domain is on auto renew for Paypal.

Follow the steps below for the fix.

1. Go to My Account
2. My Payment Information
3. Click on View all Renewing Items link
4. This should list all the domains you have purchased with columns like Reciept, Next Billing date, and Auto
5. If the domain you are trying to renew is on Auto on: You would see the mode of payment either Paypal: username or the card version Visa: #####
7. Select the checkbox of the domain you are renewing and hit Update Payment Option
8. On Change Payment Type choose Select From Existing and choose your card then Save.
That should be it, go back to the checkout for your shopping cart and you should be able to purchase/renew without the error.
Hope this helps.