Anthony J Hunter

Thoughts on Technology, Business and Politics

Archive for April 2011

Fixing “invalid command…” When Trying to Start Apache

leave a comment »

This is just an FYI post for those honorable and brave techies who would rather geek out with OS-level files and settings than let MAMP have all the fun.  Actually, I had MAMP installed and I uninstalled it because I felt… cheated some how.  I mean, it handled everything; the setup of Apache, MySQL, and PHP!  It didn’t leave me anything to do but use them – how quaint!  So, I decided to re-enable these tools in the native environment and live up to my esteemed title of grandeur… Geek! lol! :)

MySQL was up and running in no time, and I also got the latest MySQL Workbench to manage it.  PHP was a snap to setup because I had this configuration before, so I just used the old PHP.ini.  Apache, on the other hand, decided to cause me some grief.  I kept getting this message in my logs…

I remembered that unix files sometimes has problems if the document type/encoding is not setup correctly, and I noticed my file setting in TextWrangler…

Notice the Western (Mac OS Roman) and Classic Mac (CR) settings.  This will NOT work!  At least not for me.  I resolved the issue by changing this file to a unix file like this…

After this change, I restart the Apache Controller with:

… and Apache started right up with no issues.

I hope this helps someone!  Cheers! :)

Written by tonyhunterajh

April 6, 2011 at 4:10 am

Follow

Get every new post delivered to your Inbox.