Jonathon Posted April 24, 2014 Share Posted April 24, 2014 I just wanted some opinions for a non mac user, who just has now got an air. I believe PHP and Apache come with the Mac, i just need to turn them on so to speak and download MySQL + PHP MyAdmin I guess. Is that all there is to it, I remember a post by Larry some time ago saying he'd done away with all in one solutions like WAMP. Is that still the case Larry? I'd like to use Nginx as my server, but does it have benefits that far outway Apache in a development scenario? As I'm new to the whole OS X set up, I would like the simplest solution, which won't involve me downloading reams of things and deleting them and having complex configs etc. Thanks Link to comment Share on other sites More sharing options...
HartleySan Posted April 24, 2014 Share Posted April 24, 2014 This of any help? http://jason.pureconcepts.net/2012/10/install-apache-php-mysql-mac-os-x/ Link to comment Share on other sites More sharing options...
Larry Posted April 24, 2014 Share Posted April 24, 2014 I use the installed Apache, and then grab PHP from: - http://php-osx.liip.ch And MySQL from MySQL, of course. Nginx may be faster than Apache, but there's probably less documentation for it and speed on your own computer won't really matter. Pretty quickly, you'll need to get comfortable using the terminal and treating your Mac like the Unix box it is. Link to comment Share on other sites More sharing options...
Jonathon Posted April 24, 2014 Author Share Posted April 24, 2014 Thanks, I will look at this now. When working on two devices what do you feel are the best ways to manage files. I thought about using Dropbox to sync my files, so I could at least move them out of the drop box file and into my PC root. Link to comment Share on other sites More sharing options...
HartleySan Posted April 24, 2014 Share Posted April 24, 2014 This article may prove of use: http://www.makeuseof.com/tag/how-to-easily-share-files-across-mac-windows-computers/ 1 Link to comment Share on other sites More sharing options...
Jonathon Posted April 24, 2014 Author Share Posted April 24, 2014 Thanks Jonathan, For this line on the first link you sent me: Uncomment the following line (remove #): LoadModule php5_module libexec/apache2/libphp5.so is this needed to be done even if you are going to use the link Larry provided to download PHP? Link to comment Share on other sites More sharing options...
HartleySan Posted April 24, 2014 Share Posted April 24, 2014 If the line isn't already uncommented after installing PHP, then yes, you need to uncomment that line to use PHP with your Apache installation. That is the main line in your Apache config file that enables PHP. This might help: http://stackoverflow.com/questions/69768/how-do-you-configure-the-apache-server-which-ships-mac-os-x 1 Link to comment Share on other sites More sharing options...
Larry Posted April 25, 2014 Share Posted April 25, 2014 For sharing files across multiple computers, you ought to just use Git and Github (or an alternative to Github). Easy to do, and using Git is something you ought to learn in time anyway. 1 Link to comment Share on other sites More sharing options...
HartleySan Posted April 25, 2014 Share Posted April 25, 2014 Yes, Git is the default version control system these days, so learning to use it is very beneficial. Link to comment Share on other sites More sharing options...
Jonathon Posted April 25, 2014 Author Share Posted April 25, 2014 I thought about just using dropbox tbh. Doesn't git cost money to use as well? Link to comment Share on other sites More sharing options...
HartleySan Posted April 25, 2014 Share Posted April 25, 2014 Not that I know of, no. Link to comment Share on other sites More sharing options...
Jonathon Posted April 25, 2014 Author Share Posted April 25, 2014 sorry Github, if you want to keep your repositories private. Link to comment Share on other sites More sharing options...
HartleySan Posted April 25, 2014 Share Posted April 25, 2014 Ah, okay. That's very possible, although I don't know because I've never done it. Either way, you shouldn't need GitHub to share files between computers. Git is more than sufficient. Link to comment Share on other sites More sharing options...
Larry Posted April 25, 2014 Share Posted April 25, 2014 Yeah, Github is like $25/year if you want private repositories. I think I have a paid account. There are alternatives to Github, though (can't think of them off the top of my head). The only reason I mentioned Github instead of just Git across computers is that you don't have to worry about networking them when using Github. Not a big deal, but a bit more effort required. Link to comment Share on other sites More sharing options...
Antonio Conte Posted April 26, 2014 Share Posted April 26, 2014 I really recommend you to do some command line training. A Mac is just another Unix box in the end, and you should treat it like one. I would recommend you looking up Homebrew for installing PHP, as it makes it a lot easier to add new extensions to PHP. Link to comment Share on other sites More sharing options...
Jonathon Posted April 27, 2014 Author Share Posted April 27, 2014 Thanks Thomas, You got to me too late I'm afraid, I had seen about homebrew. But there are so any options for software in general that I didn't know which way to go. In the end, I basically, did as I first suggested at the top + Larry's install of PHP. I've had to use the terminal quite a lot in the last couple of days. Seems to be up and running ok so far. I've got PHP + MySQL + Apache + Node. Haven't done anything with them, but they seem to be able to work together. Link to comment Share on other sites More sharing options...
HartleySan Posted April 27, 2014 Share Posted April 27, 2014 Lemme know what you think of Node.js. I've been having quite a bit of fun with that recently. Link to comment Share on other sites More sharing options...
Jonathon Posted April 27, 2014 Author Share Posted April 27, 2014 I will, I imagine you'd really like it . If only I was as proficient with javascript as you are. Link to comment Share on other sites More sharing options...
HartleySan Posted April 27, 2014 Share Posted April 27, 2014 Honestly, I'm not sold on Node.js enough to switch over to it from an Apache/PHP back-end, but it's definitely a lot of fun, and I think it could be a popular choice in the future (I've heard that some major sites out there already use Node.js for their back-end). Link to comment Share on other sites More sharing options...
Jonathon Posted April 27, 2014 Author Share Posted April 27, 2014 I think I said to Larry at some point a couple of years ago, that I thought JavaScript would take over the web. I think it was when I was first reading about Rhino. That might not be true entirely, but I do hear really good things about Node.js in terms of what it can do, how quick it is and that you could share the same code front/back end. Link to comment Share on other sites More sharing options...
Recommended Posts