Installing ColdFusion 9 on MacOSX with Apache : Broken Apache Configa

Tagged Under : ,

I had to re-install ColdFusion 9 on my MacOS today and having installed CF approx. a million times before, I thought it would only take few minutes.

Here is what I did :-

1) Went to /Applications/ -> Moved existing “ColdFusion 9″ folder to Trash.
2) Ran the CF Installer and everything went well. But finally, the installer got stuck at “Installing WebServer Connectors” – I waited a few minutes but then gave up.
3) Repeat Steps 1 and 2.
4) I then decided to try the installation with the in-built webserver. That worked, but I could not load any pages at all in browser. Basically, Apache was not working.
5) I opened Terminal. Ran the command “sudo apachectl start” – It says “Already running”. At this point, I was wondering whats wrong.
6) Ran the command “sudo apachectl restart” and it appeared as if it got restarted. No changes.
7) Did some Search and ran this command. “sudo apachectl configtest” to make sure the Apache config was fine. Turns out it was throwing this error.

httpd: Syntax error on line 241 of /private/etc/apache2/httpd.conf: /private/etc/apache2/httpd.conf:241: <Files> was not closed.

I think this surely must have been done by the CF Installer. I opened the httpd.conf file and sure enough, it was broken.

<Files "rsrc">
 Order allow,deny
 Deny from all
 Satisfy All
<DirectoryMatch ".*\.\.namedfork">
 Order allow,deny
 Deny from all
 Satisfy All
</DirectoryMatch>

Once I fixed this by closing the </Files> tag, Apache and CF both started working again.

Anyone else seen this before? I have seen this first time and its hard to believe that CF Installer actually messes up the Apache Config file.

Flex Builder Shortcuts for MacOS

Tagged Under :

Elad Elrom has compiled a pretty useful list of Flex Builder shortcuts for Mac users. You can grab the PDF version here. To me, this is something I could use on a daily basis. Thanks Elad.

Talk to your Mac

Tagged Under :

I just read this very interesting article on how can you set up some commands to talk to your Mac. I didnt know this was possible.  I am going to try this as soon as I get home (I dont get to use my Mac at work :( )

By the way, I am a regular reader of makeuseof.com,  the articles are extremely useful and practical.

Mac OS X Leopard: The Missing Manual

Tagged Under :

So, after being a MAC user for over 6 months, I finally decided to brush up my Mac skills . Till now, I have only been using some basic things like Firefox, Safari, iTunes, Eclipse, CF, SVN, and other basic stuff. Now, I want to go one step ahead and dive into the real power of Mac. Probably try and get used to the Terminal window.

Which is why, I just ordered this book : Mac OS X Leopard: The Missing Manual . I have read the book’s reviews and it looks like a good book for beginners/switchers like me.  Anyone already read this book and can give me a heads up?

How to edit httpd.conf on MacOS

Tagged Under :

I know this is an easy one for most of you out there but not so easy for me! I am a relatively new Mac user and everytime I want to make some changes to my Apache configuration file, I open Finder and go to /etc/apache2/httpd.conf , open it with TextEdit or TextWrangler and make changes and thats when I get the message “httpd.conf cant be saved as you dont have access” . Damn! More »

Setting up Subversion client on Mac

Tagged Under :

As the title says, I was trying to setup my Mac with a Subversion client. Althought I have been using Mac for a few months now, I always jump into my Windows VM to do certain things and this was one of them (purely because I like TortoiseSVN). However, today, I decided to setup Mac with a Subversion client. I know we can always use Subeclipse as an Eclipse plugin and that would serve all your requirements but I wanted something that would integrate with the Finder window. So, it turns out that I had to install the Subversion client and ScPlugin to get that working.

I found a really good step by step blog post on the very same subject and I thought I’d mention it here as a thanks to the author for taking the time to write a detailed informative post.

Migrating emails from Outlook to Mac

Tagged Under :

I was trying to transfer all my emails (keeping the folder structure intact) from Outlook (on Windows) to Mac. I decided to go with Thunderbird as my email client on Mac (the 3 contestants were Mail, Entourage and Thunderbird).

To my surprise, it was not the most straight forward thing to transfer emails over (as I had thought). Apparently, Mail (email program on Mac) needs mbox files and you cant convert your .pst files easily to mbox files. There are a few apps out there that would do this for you but they are all paid ones. I didnt think it was worth it to pay for something so simple. After looking at a few options, the one I found to be the easiest was this :-

1) Install Thunderbird on your Windows machine and import email/settings/addresses etc from MS Outlook into Thunderbird. (might take a while if you have lots of emails,  took me about 20 mins to do this)

2) Copy the Thunderbird profile to a USB stick or drive.

3) Copy the profile on to your Mac and then if you prefer to use Mail , you can import the Thunderbird profile into Mail or if you prefer to use Thunderbird ( like I did ), you can just replace your default profile folder with the ones that you just copied over. Or you can restore the backed up profile. There is a program called Mozbackup which can backup and restore profiles for you and you wont have to bother about knowing where the profile is etc but unfortunately it only works for Windows. So, would work only for a Windows to Windows transfer.

Thats it, you should be done.  I found this to be the easiest and cheapest way to transfer emails over, I might be wrong though.

Anyone got any better ideas ?

Early Days with my Mac

Tagged Under :

As stated in my earlier post, I have got myself a Mac recently. There was no real reason for me to do so, but I just wanted to go ahead and try it and I had also heard some good things about it from a few people, so I thought lets get one then! Before this, I never really worked on any OS other than Windows, which makes it a bit slow when it comes to getting my head around some of the stuff.

So far, I only have gotten as far as setting up Eclipse/ColdFusion on the machine, install some IM softwares, install FTP client, setup my email and I think thats about it. In general, things seem to be taking more time than normal. I will try and put some of my initial thoughts on some of the things I notice and I know I could be completely wrong because of my lack of awareness in the Mac world.

Things I don’t like :-

1) Nothing is without a cost! – That seems to be the norm in the Mac world. Every little utility you need e.g. Text editor , ftp clients etc are all with a price tag. I am not against paying for softwares but , to be honest, coming from Windows, I am not used to it. Again, I could be wrong but if thats the case I would like to be corrected.

2) Some very basic things like making hidden files visible and vice versa is not part of the OS or atleast that’s what I found out from my little search on the subject. I would have expected this to be a simple toggle on/off config in the Finder window. Cant think of a reason why its not there.

3) I am not sure if I am right or not but I could not find a way to eject a CD/DVD other than ejecting it from the context menu. I was expecting a hardware eject button (spent a fair amount of time looking for it actually and finally said to myself, “get over Windows” !!)

There are a few other minor things but it all comes down to getting used to it I guess.

Things I like :-

1) I love the dock and the way the whole thing works! The way the dock elements start jumping when an app needs attention is just awesome!

2) I love the fact that I dont really have to worry about viruses when I am on Mac. Getting an Antivirus up and making sure its always up-to-date and occassional cleanup/system checks were just so annoying in Windows.

3) I also like that Apache/PHP is all built in and no extra effort is required to get those things up and running.

I like it overall as a better system to work with, its more stable and reliable and I beleive I just need to give myself some time to get used to it.

MacBook Pro on its way!

Tagged Under :

I cant wait to get my macbook pro. Apparently, it has been shipped and should be with me before the weekend. This will be my first ever non-windows expereince and I am getting ready for the adventure. I realize the migration from Windows to Mac is not an easy one and there will be some (may be lots ;) ) hurdles along the way but I think nothing really major.

Any tips for regular Mac users on what / what not to do, would be really handy.

:)