{"id":43750,"date":"2018-02-19T10:21:33","date_gmt":"2018-02-19T16:21:33","guid":{"rendered":"https:\/\/eshop.macsales.com\/blog\/?p=43750"},"modified":"2019-06-19T15:00:39","modified_gmt":"2019-06-19T20:00:39","slug":"setting-up-a-mac-web-server-with-apache-and-mamp","status":"publish","type":"post","link":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/","title":{"rendered":"Setting Up a Mac Web Server with Apache and MAMP"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-43765 size-full\" src=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Apache-Web-Server-Raspberry-Pi.jpg\" alt=\"Apache Feather Logo\" width=\"380\" height=\"99\" srcset=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Apache-Web-Server-Raspberry-Pi-190x50@2x.jpg 380w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Apache-Web-Server-Raspberry-Pi-284x74.jpg 284w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Apache-Web-Server-Raspberry-Pi-190x50.jpg 190w\" sizes=\"auto, (max-width: 380px) 100vw, 380px\" \/>A few weeks ago, The Rocket Yard ran an article detailing&nbsp;<a href=\"https:\/\/eshop.macsales.com\/blog\/43626-macos-server-will-lose-many-services-this-spring-here-are-alternatives\">the many services that will be removed from macOS Server<\/a> in the near future. Today, I&#8217;ll discuss how to bring back one of those services &#8212; web hosting &#8212; using both the Apache web server that is built into macOS and the full MAMP suite.<\/p>\n<p><strong>Apache Web Server<\/strong><br \/>\nMost Mac users don&#8217;t realize it, but macOS comes with its own built-in web server. <a href=\"http:\/\/apache.org\">Apache<\/a> is an open-source web server that has been available since 1995, and&nbsp;as of 2016, it was the engine behind 46% of all websites and 43% of the top million websites in terms of traffic.<\/p>\n<p>Having a web server built into macOS is perfect for those who want to share information in a small workgroup&nbsp;or set up and test sites on a development web server before deploying them to an internet server. These instructions show you how to set up Apache server in macOS High Sierra. You&#8217;ll need to have some knowledge of the <a href=\"https:\/\/eshop.macsales.com\/blog\/?s=Terminal\">Terminal app<\/a> and how to run command line programs, an understanding of web servers, and a familiarity with the vi editor.<\/p>\n<p>To begin, we&nbsp;edit the Apache configuration file as root:<\/p>\n<p><code><strong>sudo vi \/etc\/apache2\/httpd.conf<\/strong><\/code><\/p>\n<p>A web server is relatively useless without a server-side scripting language&nbsp;with which to handle interactions; the most popular languages are <a href=\"http:\/\/php.net\">PHP<\/a>, <a href=\"https:\/\/www.perl.org\">Perl<\/a>, and Python. In this example, we&#8217;ll enable PHP and Perl. To do so, you&#8217;ll need to uncomment line 176 of the configuration file. In the vi editor, you can do this easily by typing <strong>176G<\/strong> to go directly to line 176. Next, type an <strong>x<\/strong> over the # at the beginning of the following line to delete the # comment marker:<\/p>\n<p><strong>#LoadModule php7_module libexec\/apache2\/libphp7.so<\/strong><\/p>\n<p>We want to do the same to be able to run Perl scripts, which is in line 177 of the configuration file. Use your arrow key to go down to the beginning of the next line, then type the <strong>x<\/strong> over the # to delete the comment marker. The configuration file should then looks something like this around line 176 (see screenshot below):<\/p>\n<figure id=\"attachment_43753\" aria-describedby=\"caption-attachment-43753\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-43753 size-full\" src=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424.png\" alt=\"Editing the Apache configuration file in the vi editor\" width=\"480\" height=\"308\" srcset=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424.png 480w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424-187x120.png 187w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424-284x182.png 284w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424-190x122.png 190w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424-100x65.png 100w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424-187x120@2x.png 374w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0424-190x122@2x.png 380w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><figcaption id=\"caption-attachment-43753\" class=\"wp-caption-text\">Editing the Apache configuration file in the vi editor<\/figcaption><\/figure>\n<p>To save your changes in the editor, type <strong>:w!&nbsp;<\/strong><\/p>\n<p>We still need to enable personal websites by uncommenting line 173, so type <strong>173G<\/strong> and press return, then type an <strong>x&nbsp;<\/strong>over the # to delete it. The same must be done with line 513 of the file &#8212; type <strong>513G<\/strong> and press return, then type an <strong>x<\/strong> over the # to delete it. Now we&#8217;ll save these two final changes and quit the editor by typing <strong>ZZ.<\/strong><\/p>\n<p>The last command just enabled a file named http-userdir.conf, and we now need to edit it: In Terminal, enter:<\/p>\n<p><strong>sudo vi \/etc\/apache2\/extra\/httpd-userdir.conf<\/strong><\/p>\n<p>In this configuration file, we need to uncomment line 16. Type <strong>16G<\/strong> and press return, then type an x over the # to delete it. Save and exit by typing <strong>16G<\/strong>.<\/p>\n<p>Up until Mac OS X Lion, it was possible to share websites with a local workgroup and create personal websites with a click; to publish web pages, you simply put your html files into a Sites folder. Now we have to do a lot more work. Let&#8217;s manually create a Sites folder in Terminal and make a small test file so we know our web server is working.<\/p>\n<p>Enter the following commands:<\/p>\n<p><strong>mkdir ~\/Sites<\/strong><\/p>\n<p><strong>echo &#8220;&lt;html&gt;&lt;body&gt;&lt;h1&gt;Welcome to my site&lt;\/h1&gt;&lt;\/body&gt;&lt;\/html&gt;&#8221; &gt; ~\/Sites\/index.html.en<\/strong><\/p>\n<p>Next, we need to make sure that we have a user configuration file. To create one, type in<\/p>\n<p><strong>sudo vi \/etc\/apache2\/users\/&lt;your short user name&gt;.conf<\/strong><\/p>\n<p>Where &lt;your short user name&gt; is your Unix short user name. Don&#8217;t know what that name is? Look at the top of the Terminal&nbsp;window and you&#8217;ll see a name listed &#8212; that&#8217;s the short user name. In my case, it&#8217;s stevensande, so I&#8217;d enter<\/p>\n<p><strong>sudo vi\/etc\/apache2\/users\/stevensande.conf&nbsp;<\/strong> &nbsp; &nbsp;(don&#8217;t use this for YOUR configuration file!)<\/p>\n<p>In that configuration file we want to enter the following (cutting and pasting into vi works):<\/p>\n<p><strong>&lt;Directory &#8220;\/Users\/&lt;your short user name&gt;\/Sites\/&#8221;&gt;<\/strong><br \/>\n<strong>&nbsp;&nbsp;&nbsp; AddLanguage en .en<\/strong><br \/>\n<strong>&nbsp;&nbsp;&nbsp; AddHandler perl-script .pl<\/strong><br \/>\n<strong>&nbsp;&nbsp;&nbsp; PerlHandler ModPerl::Registry<\/strong><br \/>\n<strong>&nbsp;&nbsp;&nbsp; Options Indexes MultiViews FollowSymLinks ExecCGI<\/strong><br \/>\n<strong>&nbsp;&nbsp;&nbsp; AllowOverride None<\/strong><br \/>\n<strong>&nbsp;&nbsp;&nbsp; Require host localhost<\/strong><br \/>\n<strong>&lt;\/Directory&gt;<\/strong><\/p>\n<p>Once again, remember to replace &lt;your short user name&gt; with <em>your<\/em>&nbsp;short user name. Type <strong>ZZ<\/strong> to save the new configuration file and quit the editor.<\/p>\n<p>If you&#8217;ve made it this far&#8230; congratulations! Now let&#8217;s check our configuration of Apache by running the following command in Terminal:<\/p>\n<p><strong>apachectl configtest<\/strong><\/p>\n<p>You&#8217;ll probably get a warning message that says &#8220;http: Could not reliably determine the server&#8217;s full qualified domain name&#8221; along with how to resolve that issue; since this is just for a local web server, ignore that warning &#8212; what you do want to see is the last line: Syntax OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-43755 size-full\" src=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0425a.png\" alt=\"Bash Shell\" width=\"480\" height=\"115\" srcset=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0425a.png 480w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0425a-284x68.png 284w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0425a-190x46.png 190w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0425a-190x46@2x.png 380w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>If everything is fine up to this point, you&#8217;re ready to start up Apache. If any of the configuration file syntax is incorrect, you&#8217;ll receive warnings on what needs to be fixed.<\/p>\n<p>At long last, we&#8217;re ready to launch the Apache httpd service:<\/p>\n<p><strong>sudo launchctl load -w \/System\/Library\/LaunchDaemons\/org.apache.httpd.plist<\/strong><\/p>\n<p>To see our one line web page, launch Safari or your favorite browser and&nbsp;enter&nbsp;<strong>http:\/\/localhost\/&nbsp;<\/strong><\/p>\n<p>You should see:<\/p>\n<p><strong>It works!<\/strong><br \/>\nTo see your user home directory, enter http:\/\/localhost\/~&lt;your short user name&gt;, once again replacing &lt;your short user name&gt; with your Unix short user name. It should say:<\/p>\n<p><strong>Welcome to my site<\/strong><br \/>\nShould you decide to shut down the Apache service, there&#8217;s a simple one-line Terminal command to do so:<\/p>\n<p><strong>sudo \/usr\/sbin\/apachectl stop<\/strong><\/p>\n<hr \/>\n<p><strong>Making life easier with MAMP<\/strong><br \/>\nThat was a lot of work to get things up and running, wasn&#8217;t it? There&#8217;s a much easier way to set up a local test server! For quite a while, developers have realized that packaging Apache, MySQL (a database server), and PHP\/Python\/Perl was the best way to get a very powerful web server. Add &#8220;Mac&#8221; to the beginning of this, and you have MAMP &#8212; Mac, Apache, MySQL, and PHP\/Python\/Perl. The &#8220;AMP&#8221; distributions (LAMP for Linux, WAMP for Windows, MAMP for Mac) are the backbone of the wildly popular WordPress platform, so if you want a very complete WordPress development environment on your Mac, you&#8217;ve come to the right place.<\/p>\n<p><a href=\"http:\/\/mamp.info\">MAMP<\/a>&nbsp;comes in two varieties; the free MAMP solution for a personal web server and MAMP Pro ($59), which adds additional services like email, dynamic DNS, and more. For this post, we&#8217;ll install and configure the free MAMP.<\/p>\n<p><strong>1)<\/strong>&nbsp;<a href=\"https:\/\/www.mamp.info\/en\/downloads\/\">Download MAMP from the MAMP website<\/a><\/p>\n<p><strong>2)<\/strong> Open the .pkg file and follow the installation instructions to install MAMP to your Mac<\/p>\n<p><strong>3)<\/strong> Once the installation is complete, you&#8217;ll find two folders in your Applications folder &#8212; one for MAMP, and another that is a 14-day free trial for MAMP Pro. Open the folder named MAMP and launch the MAMP app. You&#8217;ll see something that looks like this screenshot:<\/p>\n<figure id=\"attachment_43756\" aria-describedby=\"caption-attachment-43756\" style=\"width: 480px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-43756 size-full\" src=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0426.png\" alt=\"The MAMP startup interface\" width=\"480\" height=\"393\" srcset=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0426.png 480w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0426-147x120.png 147w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0426-284x233.png 284w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0426-190x156.png 190w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0426-147x120@2x.png 294w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0426-190x156@2x.png 380w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><figcaption id=\"caption-attachment-43756\" class=\"wp-caption-text\"><strong>The MAMP startup interface<\/strong><\/figcaption><\/figure>\n<p><strong>4)<\/strong> Click the &#8220;Start Servers&#8221; button.<\/p>\n<p>MAMP will start both the Apache and MySQL servers,&nbsp;then launches a webpage that confirms that your MAMP installation is complete (see screenshot below):<\/p>\n<figure id=\"attachment_43757\" aria-describedby=\"caption-attachment-43757\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-43757\" src=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0427.jpg\" alt=\"The MAMP welcome page, indicating that all services are running\" width=\"640\" height=\"229\" srcset=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0427.jpg 640w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0427-284x102.png 284w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0427-190x68.png 190w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0427-284x102@2x.png 568w, https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Screenshot-0427-190x68@2x.png 380w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-43757\" class=\"wp-caption-text\"><strong>(The MAMP welcome page, indicating that all services are running.)<\/strong><\/figcaption><\/figure>\n<p>The &#8220;My Website&#8221; link shows an empty page, but you can change that by placing an index.html file into the htdocs folder found in the MAMP folder. It&#8217;s easy to change the&nbsp;Document Root directory by going to MAMP &gt; Preferences &gt; Web Server.<\/p>\n<p>Note that MAMP Pro also brings &#8220;Extras&#8221; to the table; these are packages designed by the MAMP team to install quickly and bring added functionality. Remember my comments about WordPress? There is not only a MAMP Extra for WordPress, but for Joomla, Drupal and other content management systems as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few weeks ago, The Rocket Yard ran an article detailing&nbsp;the many services that will be removed from macOS Server in the near future. Today, I&#8217;ll discuss how to bring back one of those services &#8212; web hosting &#8212; using both the Apache web server that is built into macOS and the full MAMP suite. [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":43765,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":"","footnotes":""},"categories":[4],"class_list":["post-43750","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.2 (Yoast SEO v20.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set up a Mac Web Server with Apache and MAMP<\/title>\n<meta name=\"description\" content=\"How to set up and use the open-source Apache web server that is built into macOS and how to download and install the full MAMP suite.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting Up a Mac Web Server with Apache and MAMP\" \/>\n<meta property=\"og:description\" content=\"How to set up and use the open-source Apache web server that is built into macOS and how to download and install the full MAMP suite.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/\" \/>\n<meta property=\"og:site_name\" content=\"Rocket Yard\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/stevensande\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-19T16:21:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-19T20:00:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Apache-Web-Server-Raspberry-Pi.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"380\" \/>\n\t<meta property=\"og:image:height\" content=\"99\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Steve Sande\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Steve Sande\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/\"},\"author\":{\"name\":\"Steve Sande\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#\/schema\/person\/1152721d0acb70692858d0f3fcb12e7a\"},\"headline\":\"Setting Up a Mac Web Server with Apache and MAMP\",\"datePublished\":\"2018-02-19T16:21:33+00:00\",\"dateModified\":\"2019-06-19T20:00:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/\"},\"wordCount\":1419,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#organization\"},\"keywords\":[\"Apache\",\"How To\",\"macOS Server\",\"MAMP\",\"Tech Tips\"],\"articleSection\":[\"Tech Tips\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/\",\"url\":\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/\",\"name\":\"How to Set up a Mac Web Server with Apache and MAMP\",\"isPartOf\":{\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#website\"},\"datePublished\":\"2018-02-19T16:21:33+00:00\",\"dateModified\":\"2019-06-19T20:00:39+00:00\",\"description\":\"How to set up and use the open-source Apache web server that is built into macOS and how to download and install the full MAMP suite.\",\"breadcrumb\":{\"@id\":\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eshop.macsales.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting Up a Mac Web Server with Apache and MAMP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#website\",\"url\":\"https:\/\/eshop.macsales.com\/blog\/\",\"name\":\"Rocket Yard\",\"description\":\"Your source for expert tips, special deals, commentary, reviews, and the latest tech news.\",\"publisher\":{\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eshop.macsales.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#organization\",\"name\":\"OWC\",\"url\":\"https:\/\/eshop.macsales.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2020\/06\/rocket-yard-logo-round.png\",\"contentUrl\":\"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2020\/06\/rocket-yard-logo-round.png\",\"width\":1024,\"height\":1024,\"caption\":\"OWC\"},\"image\":{\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#\/schema\/person\/1152721d0acb70692858d0f3fcb12e7a\",\"name\":\"Steve Sande\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eshop.macsales.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1ad8e267ec82e12963d9cfe717c9b8e108e1edbb728f5d91fe50c6e7ecd14b15?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1ad8e267ec82e12963d9cfe717c9b8e108e1edbb728f5d91fe50c6e7ecd14b15?s=96&d=mm&r=g\",\"caption\":\"Steve Sande\"},\"description\":\"Steve has been writing about Apple products since 1986, starting on a bulletin board system, creating the first of his many Apple-related websites in 1994, joining the staff of The Unofficial Apple Weblog in 2008, and founding Apple World Today in 2015. He\u2019s semi-retired, loves to camp and take photos, and is an FAA-licensed drone pilot.\",\"sameAs\":[\"https:\/\/appleworld.today\",\"https:\/\/facebook.com\/stevensande\",\"https:\/\/www.linkedin.com\/in\/stevensande\/\",\"https:\/\/www.youtube.com\/channel\/UCUnDTuaRnXncKQXfQYVNIJA\/\"],\"url\":\"https:\/\/eshop.macsales.com\/blog\/author\/steve-sande\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Set up a Mac Web Server with Apache and MAMP","description":"How to set up and use the open-source Apache web server that is built into macOS and how to download and install the full MAMP suite.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/","og_locale":"en_US","og_type":"article","og_title":"Setting Up a Mac Web Server with Apache and MAMP","og_description":"How to set up and use the open-source Apache web server that is built into macOS and how to download and install the full MAMP suite.","og_url":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/","og_site_name":"Rocket Yard","article_author":"https:\/\/facebook.com\/stevensande","article_published_time":"2018-02-19T16:21:33+00:00","article_modified_time":"2019-06-19T20:00:39+00:00","og_image":[{"width":380,"height":99,"url":"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Apache-Web-Server-Raspberry-Pi.jpg","type":"image\/jpeg"}],"author":"Steve Sande","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Steve Sande","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#article","isPartOf":{"@id":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/"},"author":{"name":"Steve Sande","@id":"https:\/\/eshop.macsales.com\/blog\/#\/schema\/person\/1152721d0acb70692858d0f3fcb12e7a"},"headline":"Setting Up a Mac Web Server with Apache and MAMP","datePublished":"2018-02-19T16:21:33+00:00","dateModified":"2019-06-19T20:00:39+00:00","mainEntityOfPage":{"@id":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/"},"wordCount":1419,"commentCount":7,"publisher":{"@id":"https:\/\/eshop.macsales.com\/blog\/#organization"},"keywords":["Apache","How To","macOS Server","MAMP","Tech Tips"],"articleSection":["Tech Tips"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/","url":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/","name":"How to Set up a Mac Web Server with Apache and MAMP","isPartOf":{"@id":"https:\/\/eshop.macsales.com\/blog\/#website"},"datePublished":"2018-02-19T16:21:33+00:00","dateModified":"2019-06-19T20:00:39+00:00","description":"How to set up and use the open-source Apache web server that is built into macOS and how to download and install the full MAMP suite.","breadcrumb":{"@id":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/eshop.macsales.com\/blog\/43750-setting-up-a-mac-web-server-with-apache-and-mamp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eshop.macsales.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Setting Up a Mac Web Server with Apache and MAMP"}]},{"@type":"WebSite","@id":"https:\/\/eshop.macsales.com\/blog\/#website","url":"https:\/\/eshop.macsales.com\/blog\/","name":"Rocket Yard","description":"Your source for expert tips, special deals, commentary, reviews, and the latest tech news.","publisher":{"@id":"https:\/\/eshop.macsales.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eshop.macsales.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eshop.macsales.com\/blog\/#organization","name":"OWC","url":"https:\/\/eshop.macsales.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eshop.macsales.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2020\/06\/rocket-yard-logo-round.png","contentUrl":"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2020\/06\/rocket-yard-logo-round.png","width":1024,"height":1024,"caption":"OWC"},"image":{"@id":"https:\/\/eshop.macsales.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/eshop.macsales.com\/blog\/#\/schema\/person\/1152721d0acb70692858d0f3fcb12e7a","name":"Steve Sande","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eshop.macsales.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1ad8e267ec82e12963d9cfe717c9b8e108e1edbb728f5d91fe50c6e7ecd14b15?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ad8e267ec82e12963d9cfe717c9b8e108e1edbb728f5d91fe50c6e7ecd14b15?s=96&d=mm&r=g","caption":"Steve Sande"},"description":"Steve has been writing about Apple products since 1986, starting on a bulletin board system, creating the first of his many Apple-related websites in 1994, joining the staff of The Unofficial Apple Weblog in 2008, and founding Apple World Today in 2015. He\u2019s semi-retired, loves to camp and take photos, and is an FAA-licensed drone pilot.","sameAs":["https:\/\/appleworld.today","https:\/\/facebook.com\/stevensande","https:\/\/www.linkedin.com\/in\/stevensande\/","https:\/\/www.youtube.com\/channel\/UCUnDTuaRnXncKQXfQYVNIJA\/"],"url":"https:\/\/eshop.macsales.com\/blog\/author\/steve-sande\/"}]}},"jetpack_featured_media_url":"https:\/\/eshop.macsales.com\/blog\/wp-content\/uploads\/2018\/02\/Apache-Web-Server-Raspberry-Pi.jpg","jetpack_shortlink":"https:\/\/wp.me\/pmPaT-bnE","_links":{"self":[{"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/posts\/43750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/comments?post=43750"}],"version-history":[{"count":11,"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/posts\/43750\/revisions"}],"predecessor-version":[{"id":49778,"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/posts\/43750\/revisions\/49778"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/media\/43765"}],"wp:attachment":[{"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/media?parent=43750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eshop.macsales.com\/blog\/wp-json\/wp\/v2\/categories?post=43750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}