I want to install Craft in home directory in mac. I don't like to use MAMP as local server.
Is to possible to install without using MAMP? I use gulp and webpack in home directory.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.Sign up to join this community
It depends what you are most comfortable with. PHP and Apache are shipped with macOS by standard but you'd still need to install and configure MySQL (or MariaDB etc), along with manual virtual host configuration.
MAMP makes it much easier but sandboxing it all in one easy to install package with a GUI so if you're not comfortable with the command line and the manual configuration then it's a good option.
If you are a little comfortable with the command line and want a minimalist setup then Laravel Valet could be worth a try. It is a wrapper which orchestrates installing the required components via Homebrew which enables you to just create a new folder in your web root folder with a
.dev extension and then be able to view it in the browser. This can be a nice in between.
For more of an isolation you can opt for virtual machines and Vagrant images for example which run a virtual OS with all pre-requisites installed. It can be a little resource hungry however. Alternatively there is docker which provides a containerised environment (much the same but without the full OS layer).
It really goes down to what you're more comfortable with but any of the above will get you up and running with Craft.
Out of the box, macOS comes with tools to run a website locally. But depending on your needs, you may find it limiting or daunting to get started.
You can Google pretty good guides for how to run a website locally with macOS. But they differ depending on your OS version. Here's a guide to setting up on macOS Sierra: Get Apache, MySQL, PHP and phpMyAdmin working on macOS Sierra.
VirtualHostX 7 is a relatively simple alternative to MAMP for running multiple local websites. It's not free, but it wraps up Vagrant, VirtualBox, Apache server, PHP and I think MySQL in one package. It's separate from the macOS built-in Apache server so your setup won't change with future macOS updates and potentially break how your local website runs.
I believe VirtualHostX 7 creates one Vagrant box to host all of your websites. I don't think it's possible to use multiple versions of PHP tho like MAMP Pro allows you to do. This can be helpful if you're working on Site A with PHP 7, but Site B is still running on an older web server with PHP 5.6 so you'll want to match your local environment to that for testing.
Another alternative is Vagrant. If you go the route of creating individual Vagrant boxes for each website, the advantage is that you can create a virtual machine that exactly replicates the conditions of your remote web server. That can help eliminate the troubleshooting you might have to do when deploying code to a server environment that doesn't exactly match yours (like "why isn't imagemagick working?"). But like Ian said, it's resource intensive so you'll likely be constantly booting up and shutting down different Vagrant boxes that are using a bunch of your CPU and RAM.
The same software maker as VirtualHostX makes a Vagrant box manager also called Hobo.
If you would prefer Docker, Craftman is a project to automate the setup Craft installs in Docker containers. But unless you have a good reason to use Docker, like you want to use it in production, I might stay away from it. It adds another layer of complexity.