I have been using MAMP to test things locally, was wondering if there is anything else out there for Mac thats lightweight and good.
Also, if you're crazy, you can set up a local nginx installation relatively easy on a mac (and even DNSmasq it so you can point it to yourawesomename.dev or something). That way you can just point to static files (much like Anvil but without Pow running in the background)
+1 #teamhammer n #teamanvil haha
We made Cactus to make building websites easier. It has a built in web server: http://cactusformac.com
Mixture is worth a look: http://mixture.io
"sudo apachectl start" & install mysql. Tutorial to get up and running here.
I don't care for phpMyAdmin though, so I forgo it and just use Sequel Pro.
This is my same setup. Apache is installed by default in osx so I use it. The MySQL preference pane is easy enough to install and turn on. I also use sequel pro for managing my db. I've been similarly frustrated with MAMP Pro
I always use: php -S localhost:8888
Super quick server in any folder.
If you're working with WordPress, I highly recommend Local by Flywheel! It's free and works for Mac and Windows.
I use Vagrant now. Brilliant option, fast and really easy to use.
You're using M ac A pache M ySql & P hp right? Those are the basic tools a mac comes with in terms of local server configuration. I can't think of anything more lightweight that that.
Or are you saying that you're using the MAMP tool?
If you are using the tool I'd suggest going with an actual MAMP stack on your machine setup manually. It's very easy to get going. Here's a quick tutorial.
I used MAMP since the very humble beginnings of development. I switched from MAMP to using an upgraded version of apache, mysql and php 5.5 using homebrew. Try this following link to upgrade to 5.5 Josegonzalez Homebrew PHP 5.5 - After about a year of doing it that way I finally discovered Vagrant.
Works amazing and provides a super maintainable and quick workflow for getting a local dev environment to mimic your staging and production environments. It is a
littlework to get setup the way you want for the specific environments you want it to build out, but saves many problems down the line and makes it worth it in the end. It also works amazing for teams, since there is no configuration you need to do on your computer except download VirtualBox (free) and Vagrant (free). This helps and makes sure everyone is on the exact same environment developing with the exact same configuration, so no more problems having someone say they can't get it to work lol.
The only reason I say Vagrant is a little step ahead of the other solutions is because you can run anything through it since it's just a virtual machine sitting on top of your OS. Node, PHP, Rails, Static Sites, Vagrant could care less.... just tell it how to configure when you Vagrant Up and you're good to go.
I've been using Hammer for Mac + Anvil for a few months daily and I find it very nice so far.
Installing it all manually works great, bit of messing about to get it setup, but worth it in the end.
Since Python comes installed on OSX…
python -m SimpleHttpServerin terminal (from within your site folder) to quickly spin up a web server at http://localhost:8000.
Check out more on SimpleHttpServer
It’s not for every use case, but it’s simple and works out of the box. I still use Apache for virtual hosts and things, but the above one-liner gets the job done most times.
I've switched to AMPPS (http://www.ampps.com/) recently. I gave up with MAMP. Their support is very horrible. I thought buying a so called PRO version will help me to get a support response from them, but I was wrong.
AMMPS UI isn't great as MAMP but it works.
It does have all MAMP pro functions (for free), its auto-installer app stack is great for you who work with multi development environments, easier to use, its directory structure is more like real live server directory, it's easier to maintain open source installation such as wpordpress,joomla etc, and one important thing, when you ask for a support in their forum discussion, you will get an answer from their developer.
If you don't need MySQL and just want a local server for static sites, i've been using (and loving) http-server as a super lightweight environment — https://github.com/nodeapps/http-server
If you only want to serve static sites you don't need to download anything. Just open the terminal, go to your site's directory and type:
python -m SimpleHTTPServer 1234
Now just go to http://localhost:1234 in your browser.
Alex — I've found SimpleHTTPServer to be really slow, it was how I found http-server.
Oh, didn't know. (y)
If you're interested in a tool that makes Docker easy and is lightweight and flexible, check out DDEV. My colleague wrote a comparison here: https://www.drud.com/ddev-local/ddev-an-alternative-to-mamp-for-a-php-dev-environment/
Containerized solutions compare well against MAMP when you're looking at planning, configuration, testing, and especially sharing your work. Lots of the best features are in the paid-for MAMP Pro, but it might makes sense for you to try an open source alternative.
DDEV works with any PHP application. You can see how to install it for mac OS here: https://www.drud.com/ddev-local/ddev-local-scratch-macos/
I hope that helps!
Disclaimer: I work for DDEV, but love sharing info about it! :)
If you don't need a database or anything crazy you could try using Grunt **. It's great cause you can run a local server, use typekit for webfonts, and also incorporate SASS. I've been using it lately for quick prototyping and small sites.
Chris Coyier did a nice little walkthrough
I spun up a quick repo https://github.com/savagecorp/grunt_baseplate that I've been using lately that integrates Cardinal for a basic reset, includes SCSS setup, and an image optimizer.
** If you do need a database I believe you can use Yeoman & Bower along side Grunt in a Node framework.
Whilst this is being discussed, how many of these could be used to install WordPress locally?
Solutions like MAMP, XAMPP, and installing locally using the built-in Apache (using such packages like this to install PHP extensions and install MySQL to run something like Wordpress natively) still require you to build a directory to drop WordPress in and setup.
If you have ruby installed...
cd into the directory and run this
ruby -run -e httpd . -p 9090
You can also use an
aliasin your .bash_profile
alias serve="ruby -run -e httpd . -p 9090"
If the sites are static, use Anvil - www.anvilformac.com
MAMP + VirtualHost X is pretty solid
MAMP + VirtualHostX = AMPPS Just try it ;)
I mainly do Rails & Node these days so don't want to dirty up my Mac with MAMP - Vagrant works great for the occasional bit of PHP.
VirtualHostX is a good option for managing local sites.