![]() ![]() I was FUBAR, a chicken with no head as I had expectations that did not simply exsist. NOTE: When I did this it was all trial and error and of course I have edited this document to provide a logical sequences of steps to help you get going this in no way reflects what actually happened to me or the order of which I have delivered it to you. Here we will focus on getting PHPStorm, MAMP, PEAR, APACHE, PHP, PHPUnit, and XDebug Playing nicely. We will not be too redundent here as I expect most readers to at minimum already know the basics of running MAMP, GIT and simple things like that. Ok So here we will be setting up a complete PHP development environment on Mac OS X Snow Leapord. But anyway it sounds appealing don't you think? :D Now I haven't tried this but I would imagine that since all of these stacks are cross platform including PHPStorm you could easily copy your IDE profiles and clone VCS repos onto other stacks that live on USB sticks and have a goto Dev environment that is portable across all OS's. By default ALL mac apps are portable, just load them up on a USB stick and your Dev environment will work on any MAC that meets the requirments of the applications on the stick. BOTTOMLINE is that PHPStorm will use the default installation of PHP as installed by apple no matter what interpreter you tell it to use (it's all about paths and environmental variables folks and you can verify this by opening a command line from inside the IDE and running which php), this will lead to all kinds of funny stuff happening when using a prebuilt stack like MAMP so, what if you are one of those Dev's who just want to install MAMP, XAMPP or AMPP? Yeah sure we could install MySQL and all the other bells directly to the default OS but some of us want to have a portable dev environment and using a pre built stack gives you this. This first point goes back to my little speech above. So on to the challange and quick but otherwise dirty solution to set my MacBook Pro up as a Dev workstation. ![]() Are you listening M$ get with the program and apple, get with the repo program. Well, not everything as the GUI shell is still Mac or Windows or KDE or whatever and in order to get an app on their you have to code for that environment but underneath all that is an open world where tons of software applications already exsist and can coexsist with much fanfare. I PREDICT: ]:) That one day all OS vendors will come to the realization as apple did, that you can have a proprietary OS that sit's nicely on a posix compliant core that will close the gaps between systems and make everything play nicely. Oh, I found out the hard way that if you tamper with anything and need to revert back you cannot just pop in the OSX disc and repair Oh No you must reinstall the entire OS. You would think that since the guys and gals over at macports did all the work that apple would give them a bone and make it the official repo so things get installed gracefully where intended providing an upgrade path while in between major OSX releases. This is where they don't play nice, even with macports and fink as non offical repos you still will end up with multiple installations of certain applications. But what if you want PHP 5.4 or the newest Apache install. Bottomline is these are pretty much no touch installations, no upgrade, no nothing. X-( That's right and here is why, as it stands OSX ships with Apache, PHP, Java and Python installed and you would be hell bent on even tampering with those installations because you don't have inside knowledge as to what dependencies OSX is applying to these default installs nor if apple dev's altered the core for their own purposes. LEAVE THE INSTALLATION OF SERVER PROFILES TO THE USERS. Now if we could get M$ to do the same with windows and get them to understand one thing. Yeah, Yeah I know it's a Mac but still, my thought pattern has always been that Linux and Unix based OS's have a lot to offer and everysince OS X made it's intel debut running ontop of a posix compliant core well let's just say I felt somebody somewhere was using their brain. Ok, So first thing we need to understand is that the dev's over at apple are not playing nice for having a posix compliant OS. Sure there are some plugins for sublime that make it a little less painful but not painless enough. Don't get me wrong, I love sublimetext but I got work to do and running several programs is not working for me. ![]() ![]() This means switching back and forth between several different programs to accomplish what PHPStorm can do out the box. Ok, so my normal editor of choice has been SubLimeText 2, Oh how I love this editor but it can be a real pain to get complete debugging, unittesting and code coverage using Sublimetext without the use of external tools. OMG, :^O this has been a challanging thing to accomplish but I figured it out and to help others who may experiance similar issues I will make this painless for you. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |