Czy chcesz zainstalować WordPressa lokalnie na Macu?
Instalacja WordPressa na twoim komputerze daje ci możliwość wypróbowania WordPressa przed uruchomieniem twojego bloga lub witryny internetowej. Jest to również świetny sposób na eksperymentowanie z motywami i wtyczkami przed opublikowaniem twojej witryny online.
W tym artykule pokażemy dwa sposoby na łatwą instalację WordPressa lokalnie na Macu.
Wskazówka: Nie używasz komputera Mac? Mamy również poradnik, jak zainstalować WordPressa lokalnie w systemie Windows.
Dlaczego warto zainstalować WordPressa lokalnie na Macu?
Zazwyczaj do stworzenia witryny internetowej WordPress potrzebne jest konto hostingowe i nazwa domeny.
Jednak rdzeń oprogramowania WordPress można pobrać bezpłatnie i uruchomić lokalnie na twoim komputerze.
Ta lokalna witryna WordPress nie jest ogólnie dostępna w Internecie i można ją zobaczyć tylko na twoim komputerze.
Zaletą tego podejścia jest to, że można prywatnie ćwiczyć korzystanie z WordPressa, wypróbować go i zobaczyć, jakiego rodzaju witryny internetowe można tworzyć.
Możesz także użyć tej lokalnej instalacji do przetestowania różnych motywów WordPress i wtyczek przed zainstalowaniem ich na twojej witrynie internetowej.
Czego potrzebujesz, aby zainstalować WordPress lokalnie na Macu?
WordPress jest napisany głównie w PHP, który jest językiem programowania po stronie serwera. Do uruchomienia PHP potrzebne jest oprogramowanie serwera WWW. Będziesz także potrzebował systemu zarządzania bazą danych MySQL zainstalowanego dla twojego oprogramowania serwera WWW.
Teraz, instalowanie wszystkich tych programów niezależnie i sprawienie, by ze sobą współpracowały, brzmi jak zniechęcające zadanie.
Na szczęście istnieją darmowe narzędzia programistyczne, które sprawiają, że bardzo łatwo jest je zainstalować jako jeden pakiet, nawet dla nietechnicznych użytkowników. W tym artykule pokażemy dwa z nich.
Biorąc to pod uwagę, przyjrzyjmy się, jak łatwo zainstalować WordPressa lokalnie na Macu bez specjalnych umiejętności administrowania serwerem.
1. Zainstaluj WordPress lokalnie na Macu za pomocą Local WP (zalecane)
Local WP to narzędzie programistyczne WordPress, które pozwala łatwo skonfigurować lokalny serwer na twoim komputerze Mac. Możesz również użyć Local na Windows i Linux do skonfigurowania WordPress.
Najpierw należy przejść na witrynę internetową Local i kliknąć przycisk „Pobierz” w prawym górnym rogu ekranu.
Spowoduje to wyświetlenie wyskakującego okienka, w którym należy wybrać Mac jako twoją platformę.
Lokalny poprosi Cię teraz o wypełnienie krótkiego formularza.
Po wpisaniu twojego imienia i nazwiska, adresu e-mail i numeru telefonu, możesz kliknąć przycisk „Pobierz teraz”.
Spowoduje to pobranie pliku instalacyjnego ustawień regionalnych na twój komputer. Po zakończeniu pobierania możesz kliknąć dwukrotnie, aby otworzyć pobrany plik.
Spowoduje to uruchomienie kreatora konfiguracji, który poprowadzi cię przez proces instalacji aplikacji Local na twoim komputerze.
Użytkownicy komputerów Mac muszą po prostu przeciągnąć aplikację Local do katalogu Aplikacje.
Po zakończeniu instalacji będzie można uruchomić aplikację Regionalne z katalogu Aplikacje.
Przy pierwszym uruchomieniu możesz zostać poproszony o udzielenie odpowiedzi na kilka pytań i utworzenie bezpłatnego konta lokalnego. Kroki te są opcjonalne i możesz je pominąć, jeśli chcesz.
Tworzenie witryny internetowej WordPress w ustawieniach regionalnych
Local bardzo ułatwia szybkie utworzenie lokalnej witryny internetowej i zainstalowanie WordPressa.
Wystarczy kliknąć przycisk „Utwórz nową witrynę”, aby kontynuować.
Na następnym ekranie wpisz nazwę twojej witryny i kliknij przycisk „Kontynuuj”.
Następnie zostaniesz poproszony o wybranie twojej platformy. Ustawienia regionalne pozwalają wybrać wersję PHP, Apache i MySQL, której chcesz użyć.
Jeśli nie masz pewności, wybierz ustawienia „Preferowane” i kliknij przycisk „Kontynuuj”.
Na koniec należy wpisz nazwę użytkownika WordPress i hasło, a następnie kliknij przycisk „Dodaj witrynę”.
Aplikacja Local pobierze i zainstaluje WordPress, aby utworzyć twoją witrynę internetową. Możesz zostać poproszony o wpisz swojej nazwy użytkownika Mac i hasła, aby wprowadzić zmiany.
Po zakończeniu zobaczysz informacje o Twojej nowo utworzonej witrynie internetowej wraz z przyciskami umożliwiającymi przejście na obszar administracyjny WordPress lub zobaczenie Twojej witryny regionalnej.
Możesz teraz przejść na swoją witrynę internetową lub zalogować się do obszaru administracyjnego WordPress.
Następnie możesz korzystać z twojej witryny WordPress tak, jak zarządzałbyś witryną internetową na żywo. Możesz instalować wtyczki i motywy oraz projektować swoją witrynę internetową według własnego uznania.
2. Instalacja WordPressa lokalnie na Macu przy użyciu MAMP
MAMP to popularny program, który umożliwia uruchomienie WordPressa na twoim komputerze Mac.
Najpierw należy przejść na witrynę internetową MAMP. Tutaj powinieneś zobaczyć najnowszą wersję MAMP i MAMP Pro.
MAMP ma oddzielne pliki do pobrania dla różnych wersji systemu operacyjnego macOS.
Nie masz pewności, która wersja systemu macOS jest zainstalowana na twoim komputerze? Aby się tego dowiedzieć, wystarczy kliknąć ikonkę Apple na pasku narzędzi twojego komputera.
Następnie możesz kliknąć opcję „About This Mac”.
Spowoduje to otwarcie wyskakującego okienka z wieloma informacjami o twoim komputerze. Obejmuje to twoją wersję systemu macOS.
Możesz teraz pobrać odpowiednią wersję MAMP dla twojego systemu operacyjnego.
Po zakończeniu twojego pobierania, kliknij dwukrotnie na plik MAMP .pkg. Spowoduje to uruchomienie instalatora MAMP.
Teraz wystarczy postępować zgodnie z instrukcjami wyświetlanymi na ekranie, aby zainstalować MAMP.
Po zainstalowaniu tego programu możesz uruchomić MAMP, otwierając katalog Aplikacje na twoim komputerze.
Tutaj znajdziesz dwie wersje MAMP. MAMP Pro jest wersją płatną, więc upewnij się, że wybrałeś wersję darmową.
Wewnątrz tego katalogu MAMP znajdują się różne pliki oraz aplikacja MAMP.
Kliknij dwukrotnie, aby uruchomić aplikację MAMP.
Zanim zaczniesz, zalecamy skonfigurowanie kilku ustawień, aby poprawić twoje wrażenia z korzystania z MAMP.
Aby wprowadzić te zmiany, wystarczy kliknąć „MAMP” na twoim pasku narzędzi. Następnie możesz wybrać „Preferencje…”.
W wyskakującym okienku wybierz kartę Porty.
Możesz teraz sprawdzić, którego portu Apache używa MAMP. Zalecamy przełączenie na port Apache 8888, jeśli MAMP jeszcze go nie używa.
Następnym krokiem jest ustawienie twojego katalogu głównego dokumentów. Jest to katalog, w którym będziesz tworzyć i przechowywać wszystkie swoje regionalne witryny internetowe WordPress.
Domyślnie MAMP używa katalogu /Applications/MAMP/htdocs/, ale można to zmienić na dowolną inną lokalizację.
W oknie dialogowym „Preferencje…” kliknij kartę Serwer. Powinieneś teraz zobaczyć twój główny dokument.
Aby przechowywać twoje witryny w dowolnym innym katalogu, kliknij przycisk „Wybierz…”.
Spowoduje to otwarcie wyskakującego okienka, w którym można wybrać nową lokalizację. Możesz również utworzyć nowy katalog, w którym będziesz przechowywać wszystkie twoje witryny internetowe WordPress.
Możesz nadać temu katalogowi dowolną nazwę.
Na potrzeby tego artykułu będziemy przechowywać nasze witryny internetowe w katalogu o nazwie „allwebsites”.
Instalacja WordPressa na MAMP
Teraz, gdy już skonfigurowałeś MAMP, przejdźmy do instalacji WordPressa na twoim komputerze Mac.
Najpierw należy przejść na witrynę internetową WordPress. org i pobrać najnowszą wersję rdzenia WordPress.
UWAGA: Istnieją dwie wersje WordPressa. Aby uzyskać więcej informacji, zobacz nasze porównanie WordPress.com vs WordPress.org.
Po pobraniu pliku ze strony WordPress.org wystarczy go rozpakować. Spowoduje to utworzenie rozpakowanego katalogu „wordpress”.
Teraz po prostu skopiuj ten katalog do twojego katalogu głównego dokumentów MAMP.
Ponieważ zmieniliśmy katalog główny dokumentów, musimy skopiować „wordpress” do applications/MAMP/htdocs/allwebsites.
WordPress potrzebuje bazy danych do przechowywania wszystkich swoich treści i danych. Musisz utworzyć tę bazę danych przed utworzeniem regionalnej witryny internetowej.
Nie martw się, to nie jest takie trudne, jak się wydaje!
W oknie MAMP „Preferencje…” wystarczy kliknąć przycisk OK. Powinno to uruchomić aplikację MAMP w nowej karcie przeglądarki.
Naszym kolejnym zadaniem jest uruchomienie phpMyAdmin. Jest to aplikacja internetowa, za pomocą której możesz zarządzać bazą danych MySQL twojej witryny.
Na pasku narzędzi kliknij Narzędzia ” phpMyAdmin.
Spowoduje to otwarcie phpMyAdmin w nowej karcie. W kokpicie phpMyAdmin kliknij kartę Bazy danych.
Możesz teraz wpisać nazwę twojej bazy danych w polu „Nazwa bazy danych”. Możesz nadać swojej bazie danych dowolną nazwę. Pamiętaj tylko, aby zanotować nazwę, ponieważ będziemy jej używać w następnym kroku.
Na potrzeby tego poradnika nazwiemy naszą bazę danych test_db.
Po wpisaniu nazwy twojej bazy danych, kliknij przycisk „Utwórz”.
PhpMyAdmin utworzy teraz twoją bazę danych.
Teraz nadszedł czas na zainstalowanie WordPressa.
W nowej karcie przeglądarki wystarczy przejść na stronę http://localhost:8888/
. Jeśli korzystasz z innego portu niż 8888, nie zapomnij zmienić adresu URL, aby wspomnieć o twoim porcie.
Powinieneś teraz zobaczyć odnośnik do katalogu „wordpress”, który skopiowałeś do głównego katalogu dokumentów.
Możesz teraz przejść dalej i kliknąć ten odnośnik. Spowoduje to otwarcie kreatora instalacji WordPress.
Kreator instalacji WordPress rozpoczyna się od prośby o wybranie języka. Dokonaj swojego wyboru, a następnie kliknij przycisk „Kontynuuj”.
Na następnym ekranie WordPress wyświetli listę wszystkich informacji potrzebnych do ukończenia instalacji.
Po zapoznaniu się z tym ekranem kliknij przycisk „Przejdźmy dalej”, aby przejść dalej.
Kreator konfiguracji poprosi teraz o podanie informacji o twojej bazie danych WordPress. W przypadku nazwy bazy danych wystarczy wpisać nazwę utworzoną w poprzednim kroku.
Jako nazwę użytkownika i hasło wpisz „root”. Następnie możesz wpisać „localhost” w polu „Host bazy danych”.
Localhost oznacza po prostu, że baza danych i witryna internetowa są hostowane na tym samym serwerze. W tym przypadku serwerem jest twój komputer Mac.
Po wpisaniu wszystkich tych rodzajów informacji wystarczy kliknąć przycisk „Prześlij”.
WordPress połączy się teraz z twoją bazą danych i utworzy dla ciebie plik konfiguracyjny. Po zakończeniu zobaczysz komunikat o powodzeniu.
Aby przejść do następnego kroku, kliknij przycisk „Uruchom instalację”.
Na następnym ekranie WordPress poprosi o dodanie tytułu witryny. Większość motywów WordPress wyświetla ten tytuł na samej górze twojej witryny internetowej. Na przykład, możesz użyć nazwy Twojej firmy.
Możesz również zmienić tytuł w twoim kokpicie WordPress w dowolnym momencie.
Konieczne będzie również utworzenie nazwy użytkownika i hasła. Są to dane logowania, których będziesz używać, aby uzyskać dostęp do twojego kokpitu WordPress.
Możesz również wpisać twój adres e-mail w polu Your Email. Jest to adres, na który WordPress będzie wysyłał wszystkie e-maile administratorów.
Po wypełnieniu formularza kliknij przycisk „Zainstaluj WordPress”.
WordPress uruchomi teraz instalację.
Po kilku chwilach powinieneś zobaczyć komunikat „Sukces!”.
Aby przejść bezpośrednio do twojego ekranu logowania WordPress, kliknij przycisk „Zaloguj się”.
Możesz również logować się do swojej regionalnej witryny internetowej WordPress, korzystając z następującego adresu URL: http://localhost:8888/wordpress/wp-login.php.
UWAGA: Jeśli używasz innego portu Apache, musisz zmienić część „8888” tego adresu URL.
Możesz teraz zalogować się do swojej witryny WordPress, wpisz nazwę użytkownika i hasło utworzone w poprzednim kroku.
Spowoduje to przejście do kokpitu WordPress.
Wypróbowanie WordPressa lokalnie na Macu
Instalacja lokalna jest idealna do testowania WordPressa lub tworzenia witryn internetowych na twoim komputerze. Teraz, gdy masz już WordPressa uruchomionego lokalnie na twoim Macu, oto kilka rzeczy, które możesz chcieć wypróbować.
- Eksperymentuj z najlepszymi motywami WordPress.
- Spróbuj znaleźć swój idealny motyw WordPress.
- Przetestuj niezbędne wtyczki WordPress lokalnie.
- Naucz się programowania WordPress, tworząc własne wtyczki i dostosowane motywy.
Przeniesienie twojej regionalnej instalacji WordPress do witryny internetowej na żywo
Gdy już pobawisz się WordPressem lokalnie, możesz chcieć przenieść twoją instalację WordPressa do witryny internetowej na żywo. Tylko w ten sposób inni będą mogli zobaczyć twoją witrynę internetową.
Aby to zrobić, musisz kupić nazwę domeny i hosting. Nazwa domeny to adres Twojej witryny internetowej w Internecie, a hosting to miejsce przechowywania plików witryny. Możesz myśleć o hostingu internetowym jako o domu Twojej witryny internetowej w Internecie.
W przypadku hostingu internetowego zalecamy korzystanie z Bluehost. Jest to jedna z największych firm hostingowych na świecie. Są one również oficjalnie rekomendowane przez WordPress.org.
Na szczęście Bluehost oferuje użytkownikom WPBeginner zniżkę na hosting, darmowy certyfikat SSL i darmową nazwę domeny. Zasadniczo możesz przekształcić swoją lokalną instalację WordPress w witrynę internetową za 2,75 USD miesięcznie.
Po zakupie hostingu zapoznaj się z naszym artykułem na temat tworzenia witryny internetowej za pomocą WordPressa.
Zbudowałeś już kompletną witrynę internetową na swoim komputerze lokalnym? W takim razie warto zapoznać się z przewodnikiem na temat przenoszenia WordPressa z serwera lokalnego na witrynę internetową na żywo.
Mamy nadzieję, że ten artykuł pomógł ci dowiedzieć się, jak zainstalować WordPressa lokalnie na Macu. Możesz również zapoznać się z naszym przewodnikiem na temat tego, jak dostosować własny nagłówek WordPress lub zobaczyć nasze porównanie najlepiej zarządzanych firm hostingowych WordPress.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Jiří Vaněk says
Is it possible to change PHP versions in MAMP or modify the PHP.ini so that it is already optimized for the server from the first launch, to which the website will eventually be moved?
WPBeginner Support says
MAMP does have options in its settings to change your PHP version if you wanted a different version
Administrator
Jiří Vaněk says
This sounds great, because sometimes one needs to test a website on different versions of PHP to find out the best behavior for a certain version. Great and thanks for the advice.
Denis Gradel says
Thanks a lot! Localwp is much much easier than MAMP, I’ve tried both.
WPBeginner Support says
Glad you found our recommendation helpful!
Administrator
Kate says
I get to
„WordPress needs a database to store all of its content and data. You’ll need to create this database before you can create a local website.
Don’t worry, it’s not as hard as it sounds!
In the MAMP ‘Preferences…’ window, simply click on the OK button. This should launch the MAMP application in a new browser tab.”
Then I don’t have an OK button and I can’t launch MAMP!
WPBeginner Support says
You would want to ensure you have the latest version of MAMP installed and you have not disabled the Webstart page in the preferences section of MAMP for the most common reasons.
Administrator
Mari says
Hi there,
First, thank you for creating this guide, it was quite helpful. In fact, Ive been using my local site since march. But a few days ago when I went to log in to work on it I received this message on blank white screen,
„There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.”
Im not quite sure what this means or where to actually go to rectify the error. Any instruction or an arrow on which way to turn would be humbly accepted. Thank you.
WPBeginner Support says
For troubleshooting errors in general you would want to take a look at our guide below:
https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/
Administrator
RG says
I’ve tried to install the wp locally.
But I’m stuck when I have to go to localhost/mywebsite
When I type this in the browser, I get an empty white page and when I click on the MAMP webstart / my website I get 'forbidden you don’t have permission to access this ressource…
WPBeginner Support says
You would want to ensure you are an admin on your mac and for the mywebsite URL you would want to ensure that is the name of the folder your WordPress site is installed in.
Administrator
Robin says
Hello,
I tried to follow this tutorial but got stuck when I had to go to the localhost
I changed to root in MAMP… my browser returns an empty white page
I don’t understand what the localhost stands for (is it the root on my MacBook or is it the root that I set during the setup of MAMP ?
WPBeginner Support says
It is the URL that MAMP sets up to go to the folder on your site and properly load your site. If you changed the address for MAMP then you would need to go to that updated address.
Administrator
Henry Barnett says
I pop the URL Desktop/Wp_docs/vh_website into a new browser tab and 'This site can’t be reached’. Can you please help?
WPBeginner Support says
You would want to try reaching it using http://localhost
Administrator
Sop says
Thank you for this tutorial! I have successfully installed MAMP and have WordPress running locally. I’ve played around with it but would like to delete it now because I won’t be using WordPress anymore. What is the best way to do this?
WPBeginner Support says
You could uninstall MAMP and delete the folder with your site information.
Administrator
Lola says
If localhost/mysite didnt work for you, check that you MAMP is running then click Webstart > My Webiste > Language and so on.
Thank you for the post,
WPBeginner Support says
Thank you for sharing what helped you ensure the site was active
Administrator
Russell says
Having set up on my desktop (thank you so much!) and begun to build, I was trying to transfer everything to my laptop by copying the MAMP folder and the Mysite folder with all the WordPress files to the exact same places as my desktop. But I am unable to get it to work after a good few hours trying to figure a way through.
WPBeginner Support says
For transferring your local installation, you would want to follow the steps in our guide below for properly transferring your content:
https://www.wpbeginner.com/wp-tutorials/how-to-move-live-wordpress-site-to-local-server/
Administrator
Simon Miles says
Nope, doesn’t work if you don’t understand computer science. This bit here – Go to localhost/mysite in a new browser tab. If you re-named the wordpress folder to something else, then use that name here – requires more explanation. I have no idea what to type in the browser.
WPBeginner Support says
If you did not name the folder where you placed the WordPress files 'mysite’ then you would replace the mysite in the URL with the name of the folder you decided to use.
Administrator
kpatterson says
I am running into an issue with the WordPress Installation Wizard on my browser, nothing is loading its just a blank screen, there are no errors displayed. Any advice?
WPBeginner Support says
You would want to ensure MAMP is running and if it is to then use the debug option from our article below:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-wordpress-white-screen-of-death/
Administrator
jeania says
I am having the same problem, how do you make sure that MAMP is running?
WPBeginner Support says
You would open the MAMP program and if it gives the option to turn off your server then MAMP is running.
Administrator
Geoff says
wow, after 3 days messing around with other instructions I followed these and bingo I have wordpress running on de mac. Thank you.
WPBeginner Support says
Glad our guide was helpful
Administrator
Jennifer says
Success! Thank you for these instructions. It took a little trial and error a few times, but I ultimately figured it out. One thing that tripped me up for a while was that apparently I needed to click on „start servers” in MAMP before the „Open web start page” would allow me to click on it. I didn’t see that anywhere in the instructions, so maybe that will help someone else. Thanks again! Onward with playing around with WordPress
WPBeginner Support says
Thanks for sharing what helped you
Administrator
nandhini says
Thanks it helped me
Imran says
The wordpress page was not opening on my Mac… then i changed localhost port setting back to 8888… and then it worked
WPBeginner Support says
Glad you were able to find a solution that worked for you
Administrator
Mel says
Thank you for the very helpful article! Other articles were not up to date and the links to other articles at the end are useful
WPBeginner Support says
Glad our article was helpful
Administrator
sumeet says
can we monetize the wordpress blog if we are hosting through MAMP
?
WPBeginner Support says
Normally no as MAMP is for creating a local installation
Administrator
Wendy says
I managed to install wordpress finally and logged in, but once everything is closed and I want to get back to my local wordpress site, how do I access it? I feel like a total ditz right now…lol
WPBeginner Support says
You would visit the localhost address you visited before and ensure MAMP is running before you try to visit the address
Administrator
Elliott says
How do you fix this issue? I see this when trying to access wordpress admin area
This page isn’t workinglocalhost is currently unable to handle this request.
HTTP ERROR 500
WPBeginner Support says
There are a few different reasons, you may want to start with following our guide below:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/
Administrator
jane says
i got half way then when it said to type in http localhost/mywebsite it didnt work
WPBeginner Support says
You would want to ensure MAMP is running for the most common reason for that issue.
Administrator
John says
Thanks for the tutorial. Just one thing I’d like to mention… changing the default location of htdocs to one in my documents folder meant MAMP didn’t work. Changed it back to applications > MAMP > htdocs and it worked.
WPBeginner Support says
Thanks for sharing this in case others ran into this issue or this is a change to MAMP since the last update of this article
Administrator
Marianne says
Thanks for sharing. I had the same problem.
Jen Harrigan says
Thanks for the help, you are a lifesaver!
WPBeginner Support says
You’re welcome, glad our guide could be helpful
Administrator
Willy says
When I put localhost/mysite in browser, I changed the folder´s name to wordpress_beginner so I put
localhost/wordpress_beginner in browser, but get error can´t find it??
WPBeginner Support says
You may want to start by trying localhost and if that is not displaying correctly then you would want to ensure MAMP is running and does not have any errors.
Administrator
Anjana says
I copy the worpress folder to mamp folder and rename that folder with mysites name. When I try to run localhost:8888/mysites it gives
The requested URL /mysites/index.php was not found on this server.
Please help me
WPBeginner Support says
Just in case, you would want to ensure MAMP is running when you try to visit the local installation
Administrator
A says
I get to the point of „Simply click on the Open Web Start Page button in MAMP application window”, but this option is greyed out and unclickable.. any thoughts on why this might be?
WPBeginner Support says
One of the services may not be running correctly, in the tip right of the MAMP window there should be icons for each service with a green dot, if one of those isn’t green then that service could be the root of the issue.
Administrator
Joanna Ma says
I followed all the steps up until the installment, but I can’t open my http:localhost page, it just says error or unable to open on my screen. I’m not sure where I’m going wrong here, please let me know what else I should try!
WPBeginner Support says
If you’ve come back after restarting your computer you would want to ensure MAMP is running so the local install can be found
Administrator
Eva Giddings says
Hey there, I have downloaded WordPress and created a database, but when I type localhost/mysite into the address bar it gives me a 404 not found error.
I just kept /Applications/MAMP/htdocs/ as my root folder, and I renamed the wordpress file to mysite. right now the wordpress folder is in htdocs, is that where it’s supposed to be?
WPBeginner Support says
That all looks correct, are you certain MAMP is running before you tried to visit that address?
Administrator
Dan says
How do I restart WP on my mac to continue working on my site, I can’t find any info on how to do that.
Thanks,
Dan
WPBeginner Support says
You would need to run MAMP again for the site to be findable at the address if that is what you mean.
Administrator
Andrew says
Wow. SUPER COOL and kind of you to take the time to post. This website is fantastic. THANK THANK THANK YOU!
WPBeginner Support says
Thank you, glad you like our guide
Administrator
Rick Karlson says
I got to the point where you instructed to copy the WordPress to the MAMP Document root folder, AND you gave not a clue as to just where that might be found on my mac mini.
I dug through the MAMP files and folders (post install) and can find nothing like you reference. My opinion is your instructions are, without this small piece of info, useless.
WPBeginner Support says
Some users may have changed where it is installed but normally you should see your MAMP folder in your Applications folder.
Administrator
Joan Houston says
So the „MAMP Document root folder” refers to the MAMP folder that got installed in the Applications folder? I, too, am confused by this.
WPBeginner Support says
Correct
Peter Fritz Walter says
Thanks for this comprehensive tutorial, it was very useful to me.
Peter
WPBeginner Support says
Glad our guide could be helpful
Administrator
Carrie says
Oops! Looks like MAMP isn’t free anymore. I get as far as „Open WebStart Page” only to be directed to the website to purchase.
WPBeginner Support says
From taking a look, they bundled the pro and free versions together. You should still be able to run MAMP for free
Administrator
Tabish Hyyat says
Hey! Kindly update the article….can’t work out which thing is which……
anurag says
thanks , it is really helpful
Oleg says
Thanks! Worked well.
Andrea says
Hi, thanks for the great post! I have MAMP installed since a WordPress training I took suggested it. Does having MAMP serve as a localhost for testing my site serve the same purpose as using a subdomain as a staging site? I’ve read your articles on the latter, and am trying to understand. I guess one difference would be that if I used the MAMP method, I would always have to use my Mac; if I used a subdomain and just made it private, I could test from any computer. Am I thinking of this correctly? Basically, I am a beginner planning to start a blog, and want to make sure I have a testing environment. Thanks!
WPBeginner Support says
Hi Andrea,
Yes, using MAMP you can create websites on localhost. These websites will only be accessible only on your computer. A staging website is on a live server that can be accessed using any computer.
Administrator
Stan says
Be aware that with MAMP 4.1.1 and PHP 7.1.1, you will see phpMyAdmin grayed out. The solution is to go into MAMP click the PHP tab and change PHP to 7.0.15. Presto !
By default MAMP shows only two versions of PHP , so if you don’t see 7.0.15 on list then rename folders with PHP versions you don’t want to use in the Applications/MAMP/bin/php folder.
Tara says
I have changed the database charset in creating database tables, now I can not view my wepage or even in wp-admin. How do you find the database names from MAMP on a mac to change the database name back? Thanks
Fannie says
When I’m in „phpMyAdmin”, I don’t see the tab „databases”, neither all the other options in the menu. I just see a table (grey and purple)… Someone know what I did wrong ?
Laura says
Is there a newer version of this tutorial to go along with the current version of MAMP? The screenshots here are very different. Also, the instructions to create the document root aren’t very clear – first you advise putting it in a new folder in the Documents folder (which I did), but then you make it seem like it’s supposed to be in the MAMP folder in the Applications folder! I can’t get my localhost page to come up… This is my folder tree thingy…
Macintosh HD\Applications\MAMP\htdocs\WEBSITES\name\wordpress
What should my localhost address be?
I’ve also tried putting the WordPress folder here…
Macintosh HD\users\me\documents\WEBSITES\name\wordpress
I’m very confused.
BP says
From the MAMP webpage click „my website”, 2nd from the left on the menu.
That will take you to the localhost site.
lisa says
were you able to find a new tutorial?
Apoorv says
This is so helpful..!! Worked like a Charm.
Charles Bewlay says
I installed everything – brilliant – and was working on installing a template from template vendor. It asked to select a Cherryframework zip file. I did and then everything went blank. I’ve not been able to see anything since. I realised I had selected the wrong Cherryframework file – not the one in the template folder but one from outside that I had downloaded earlier and just had in my „new website’ folder.
I don’t really want to have to start from scratch. when I look at all my previous history I just get blank white pages.
Help!
Charles Bewlay says
Many thanks guys, couldn’t have gone anywhere without you
Ed says
I’m developing WordPress sites locally and then move it to a live server when i’m done. But when i start new projects locally I don’t really know how to handle the old files from previous work and databases?? Shall I just delete database, files and everything and start again??
Michael says
Okay, so I setup my wordpress page using MAMP on my mac a few weeks ago and it was working and I was able to use edit the content. But going back to it now, I can’t seem to edit, just view my page. I start MAMP, go to the 'WebStart Page’, click 'My Website’ from the menu bar and choose my page. It loads, but I don’t see how I get to the WordPress editor??
Please help…
WPBeginner Support says
We hope you have tried accessing your website’s admin area by visiting the URL:
http://localhost/wp-admin
This URL may differ depending on how you installed WordPress. Let’s suppose you installed it in a folder mysite, then your login URL would be.
http://localhost/mysite/wp-admin
Also check our guide on how to find your WordPress login URL.
Administrator
Carolyn says
It is unclear where to create the file below. I did not see this in MAMP or in the new window. If you are going to take people step by step in doing something, you need to be CLEAR!
Open a new browser window and type http://localhost/mysite. If you re-named the wordpress folder to something else, then use that name here. WordPress will notify you that it was unable to find wp-config.php file.
Click on Create a Configuration File button.
Create a Configuration file for WordPress in MAMP on Mac
M L Williams says
I have everything installed and working, only I followed other instructions and didn’t use port 80. Plus I ended up using the default site htdocs inside Applications.
Is there a way I can have a do over, and reinstall everything the way you say to. I cannot may my site multisite, which was the whole reason I went down this rabbit hole.
Thanks so much for the article. It is well written and very helpful, just what I was looking for. Just wish I had found it first.
WPBeginner Support says
Yes you can uninstall MAMP by simply visiting the Applications in Finder and then deleting MAMP.
Administrator
Dee says
Just wondering – what is the whole point of installing this on a MAC if we can work through the WordPress website? I’m trying to understand if I should bother downloading this onto my MAC or if it’s ok to just work through the regular website. Thanks.
Elisabeth Howlett says
Very Helpful Article, from grateful person thinking that I would NOT be able to pull off MAMP then WordPress install. I actually did it!!!