Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 23, 2012, 10:24 AM   #1
jbsmithmac
macrumors regular
 
Join Date: Sep 2011
Web Development Environment

I dabble in web development - nothing to serious (I've got a couple sites). That said I like to mess around on my localhost before going live.

I only need apache, php, mysql, and phpadmin. That said I know OS X has apache already, and the others can be installed/configured.

My question is however, since I only dabble - I'm thinking it would be best for me to use something like MAMP or XAMPP for the ease of it as it relates to configuration, etc.

Does anyone have any thoughts? I am only serving the website(s) locally on my machine, not even to the rest of the computers in my home.

My machine is a mid-2009 MBP running 10.8


Thanks!
jbsmithmac is offline   0 Reply With Quote
Old Dec 23, 2012, 10:39 AM   #2
MisterKeeks
macrumors 68000
 
MisterKeeks's Avatar
 
Join Date: Nov 2012
I do about the same amount of web development as you, and I use XAMPP. It is simple and includes everything you need. It will allow you to serve pages to other computers, but you don't need that. I use it on an Early-2011 Quad i7 MBP- it's overkill, but it'll last for quite some time.
MisterKeeks is offline   0 Reply With Quote
Old Dec 23, 2012, 10:52 AM   #3
jbsmithmac
Thread Starter
macrumors regular
 
Join Date: Sep 2011
Thanks...I might be leaning toward MAMP because it seems that it is updated regularly as compared to XAMPP which doesn't look like its been updated in over 2 years.
jbsmithmac is offline   0 Reply With Quote
Old Dec 23, 2012, 07:44 PM   #4
robvas
macrumors 68000
 
Join Date: Mar 2009
Location: USA
A popular way to do this is make a 512MB RAM virtual machine in VirtualBox and install a server version of Linux.
robvas is offline   0 Reply With Quote
Old Dec 23, 2012, 07:57 PM   #5
m00min
macrumors 6502
 
Join Date: Jul 2012
I use the pre-installed Apache and PHP, you would need to download the mySQL binary. Personally I prefer running this setup directly but if you're just wanting an easy setup go with MAMP, you won't be at the mercy of Apple breaking something in an OS update.
__________________
Obligatory dick waving: 2012 i7/8GB/256SSD MBA; 2010 i7/8GB/256SSD MBP; 2006 Mac Mini; iPhone 4S; iPad 3
m00min is offline   0 Reply With Quote
Old Dec 24, 2012, 05:43 AM   #6
firedept
macrumors Demi-God
 
firedept's Avatar
 
Join Date: Jul 2011
Location: Somewhere!
Quote:
Originally Posted by jbsmithmac View Post
Thanks...I might be leaning toward MAMP because it seems that it is updated regularly as compared to XAMPP which doesn't look like its been updated in over 2 years.
I have been using MAMP Pro for a few years and it works well. MAMP is the free version and will serve your needs. Includes everything and setup is easy. I started with MAMP and moved to the Pro version as I required some of the additional services it gave.
firedept is online now   0 Reply With Quote
Old Jan 3, 2013, 04:25 AM   #7
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by robvas View Post
A popular way to do this is make a 512MB RAM virtual machine in VirtualBox and install a server version of Linux.
This is definitely the best way to go. Since you won't be running Mac OS X on the server hosting your website you'll need to get used to using Linux anyway. You may as well get used to it in an environment that is completely safe if you screw things up.

Personally I'd recommend Ubuntu Server 12.04 LTS as it is probably the easiest server distribution to get started with. Debian is also good but the packages in it are pretty old now.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Jan 3, 2013, 10:53 AM   #8
Jamesbot
macrumors member
 
Join Date: Jun 2009
Quote:
Originally Posted by Cromulent View Post
This is definitely the best way to go. Since you won't be running Mac OS X on the server hosting your website you'll need to get used to using Linux anyway. You may as well get used to it in an environment that is completely safe if you screw things up.

Personally I'd recommend Ubuntu Server 12.04 LTS as it is probably the easiest server distribution to get started with. Debian is also good but the packages in it are pretty old now.
If you choose to go this route, I'd also recommend using vagrant to run your vm. It's a ruby gem that allows you to do things like run a VM without the VirtualBox GUI, easily set up shared directories ( if you dont want to have to keep pushing code out to your Development environment ), among other things.

It's also super easy to download prebuild VMs ( vagrantboxes ) with the stack you want preinstalled.
Jamesbot is offline   0 Reply With Quote
Old Jan 4, 2013, 12:23 PM   #9
Zyriab
macrumors newbie
 
Join Date: Jan 2013
I use LAMP running on a cheap-as-chips Raspberry Pi, keeps all the server daemons off my day-to-day MBP and works in a more authentic way (for what it's worth!) as an external web-server.
Zyriab is offline   1 Reply With Quote
Old Jan 4, 2013, 02:15 PM   #10
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
Quote:
Originally Posted by Zyriab View Post
I use LAMP running on a cheap-as-chips Raspberry Pi...
And a Raspberry Pi actually cost less than the Parallels or VMWare VMs and require less electricity than a night light.

I'm still looking for a hosting facility to which I can send a pre-configured Pi (or BeagleBone or PogoPlug, etc.) and that costs less per month than upgrading my home broadband to business class (with server connection TOS guarantees).
firewood is offline   0 Reply With Quote
Old Jan 5, 2013, 02:40 PM   #11
alembic
macrumors member
 
Join Date: Oct 2005
I'll try Vagrant!

For those that run a development environment in a VM, how do you approach source control?

For example, do I install Subversion server on the guest OS and therefore maintain the entire development environment in the VM? or do I commit my changes to an external repository, say, on the host OS, or accessible by the host OS through a share?
alembic is offline   0 Reply With Quote
Old Jan 5, 2013, 03:06 PM   #12
alembic
macrumors member
 
Join Date: Oct 2005
@Zyriab, so you have the entire LAMP stack on the Raspberry Pi? What distro are you using? Thx.
alembic is offline   0 Reply With Quote
Old Jan 5, 2013, 11:18 PM   #13
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by alembic View Post
For example, do I install Subversion server on the guest OS and therefore maintain the entire development environment in the VM? or do I commit my changes to an external repository, say, on the host OS, or accessible by the host OS through a share?
Put everything in the guest OS and sync your code to somewhere like Github or Bitbucket.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Apr 20, 2013, 08:22 PM   #14
alembic
macrumors member
 
Join Date: Oct 2005
Vagrant Boxes

I'm finally about to start looking at Vagrant. But I'm a .NET developer so as a Linux noobie some things still don't click for me.

Do I basically determine the environment offered by my hosting service and then configure vagrant to provision that exactly? What if the stock Vagrant boxes don't match what the hosting service provides? Do I grab the one that's closest to what I need and then tweak the vagrant configuration? Do Vagrant boxes include a description of the components so I can start with the most appropriate one? Thx.
alembic is offline   0 Reply With Quote
Old Apr 27, 2013, 01:38 PM   #15
alembic
macrumors member
 
Join Date: Oct 2005
Also, after I have the VM configured, do I then edit my source files through a share so I can use something like TextMate on my MacBook Pro? or do I stay in the VM and use vi, etc? Hopefully not the latter.
alembic is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
new laptop needed for web development/game design/app development olup Web Design and Development 6 Oct 2, 2013 04:09 PM

Forum Jump

All times are GMT -5. The time now is 12:16 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC