![]() MAMP works in versions macOS 10.12 and later (including macOS 11 “Big Sur”). If you decide to go the MAMP route instead of a virtual machine running LAMP – here’s how to install, setup and use MAMP on your Mac. You may want to review the documentation for Bitnami and the documentation for MAMP to decide which one best suits your specific needs. Depending on exactly what you want to do with AMP there may even be a specific Bitnami stack already completely configured – for example, WordPress. ![]() You can run LAMP (Linux, Apache, MySQL and PHP) in as a virtual machine via a Bitnami stack for VirtualBox (or VMware Player) and accomplish almost the exact same thing. Have fun working with Laravel.This guide will show you how to quickly and easily install MAMP, so you can use Apache (and Nginx), PHP and MySQL on your Mac.Īlthough this guide was initially published in 2008, it has been updated to be current in 2021.īefore you go any farther, there is an alternative to installing MAMP that may accomplish the same thing (local access to AMP) but with more features. You should see the Laravel home page.įantastic Job Done ! You have now installed Laravel with Mamp on Mac OSX. Then it will show you the url where project is running something like, Go to the browser and hit this url. Navigate to the project you just created. Once the Laravel installation is finished, Now it’s time to run the Laravel web application. This will start downloading the Laravel software and other required dependencies. Navigate to Applications/MAMP/htdocs folder in terminal & run the following command composer create -project laravel /laravel myProject "5.5.*" In case it doesn’t output the correct path, try closing the terminal window (exit fully) and open again, it should apply the changes (Restart in short).Īlright, we are now all setup to install Laravel with MAMP.If everything was successful, It should output the new path to MAMP PHP install In Terminal, type in which php again and look for the updated string.In Terminal, run source ~/.bash_profile.(You can check the latest PHP version available in your MAMP directory (/Applications/MAMP/bin/php) Type i and then paste the following at the top of the file:Įxport PATH=/Applications/MAMP/bin/php/php7.2.8/bin:$PATH.Within the Terminal, run vim ~/.bash_profile.But if not then you either have to upgrade your php version on local mac, Or we can switch local PHP to use our MAMP php version which is greater than 7.1.3 If the version returned by this command is >=7.1.3, then you are good to go. 5.7 requires PHP >=7.1.3, Although the latest MAMP will have the latest PHP, it might be the case that the PHP installed local to your MAC machine is old.Ĭheck by running the following command on terminal. Test it out by command composer -v on terminal. That’s it, you now have composer on your MAC. Move the composer to /usr/local/bin/composer mv composer.phar /usr/local/bin/composer If not follow below steps.ĭownload composer installer by this command in terminal curl -sS | php Open your terminal and type out command composer -v, If this gives your the composer version that means you have composer already installed on your machine. ![]() ![]() Laravel makes use of composer for dependency management, So we need to make sure we have that installed in our system. If the MAMP is installed correctly and the server started without any errors, you should see the following page on accessing localhost in your browser. You should see a MAMP directory created with following contents.Ĭlick on MAMP to start the MAMP Control Panel (Which looks like below image)Ĭlick on Start Servers to Start the MAMP Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |