MAMP
to achieve my goal. With MAMP it’s very easy to run WordPress on Mac within 10 mins
. Install MAMP on Mac.Apache Server
and MySQL
in order to run WordPress locally. Download
MAMP and double click on binary to install
it.MAMP Pro
as a part of install. We are going to use MAMP Free
version.Apache Port to 80
and MySQL Port to 3306
as per below snapshot.Document Root
as per your need. Mainly under /Document
folder.OK
and click on Start Servers
. Provide administratorusername
and password
as we are going to start server on port 80
. You should see both green icons as shown in below diagram.http://localhost/MAMP/
. Keep that page open and move to next step. We will come back again on that page.wordpress.zip,
change name to crunchify
and copy folder under Document Root, i.e. MAMP
http://localhost/MAMP/
again. Click on phpMyAdmin
.crunchify_db
and click on Create
.http://localhost/crunchify
to install WordPress locally. Provide all appropriate information as mentioned below.http://localhost/crunchify
and you should be all set.java -version
java version '1.8.0_66'
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
JAVA_HOME
is an important environment variable, not just for Tomcat, and it’s important to get it right.vi ~/.profile
JAVA_HOME
and CATALINA_HOME
variables:export JAVA_HOME=/Library/Java/Home
/Library
, in order to facilitate the use, rename the folder to 'Tomcat'
sudo chmod 755 /Library/Tomcat/bin/*.sh
sudo sh startup.sh
http://localhost:8080/
, press Enter.http://localhost:8080
. If you wish to make stopping Tomcat 9, use this command:sudo sh /Library/Tomcat/bin/shutdown.sh