{"id":2415,"date":"2014-11-17T09:42:23","date_gmt":"2014-11-17T09:42:23","guid":{"rendered":"http:\/\/a.parsons.edu\/~dejongo\/?p=2415"},"modified":"2023-07-29T11:34:15","modified_gmt":"2023-07-29T11:34:15","slug":"11-mamp-wamp","status":"publish","type":"post","link":"https:\/\/b.parsons.edu\/~dejongo\/11-mamp-wamp\/","title":{"rendered":"11 MAMP &#038; WAMP"},"content":{"rendered":"<p>MAMP is for server side technologies on the Mac. WAMP does the same for windows. I only talk about MAMP. If you are using a PC, replace MAMP with WAMP.\n<\/p>\n<p>It is an acronym that stands for either Mac or Windows, Apache, MYSQL and PHP. Apache is the web server, MYSQL is the database and you all know about <a href=\"12-php\/\">PHP<\/a>.\n<\/p>\n<p>MAMP allows you to run PHP and CMS on your computer, rather than relying on a server and internet connections, which can be slow or not functioning at all, as we have witnessed. Once you have a developed a site using MAMP, it is possible to transfer the PHP documents, resources and database information to a server.\n<\/p>\n<p>Linda.com has a <a href=\"https:\/\/www.lynda.com\/WordPress-tutorials\/Installing-Running-WordPress-MAMP-2017\/661815-2.html\">tutorial on how to install MAMP for wordpress<\/a><\/p>\n<h2>Accessing PHP files<\/h2>\n<\/p>\n<p><a href=\"http:\/\/www.mamp.info\/en\/\">Download<\/a> MAMP. Run the MAMP software. The initial settings allows you to access information stored in the <strong>htdocs<\/strong> folder, located inside of the <strong>MAMP<\/strong> folder in your <strong>Applications<\/strong> folder. If you place a <code>hello.php<\/code> file into that folder, you can access it by typing <code>http:\/\/localhost:8887\/hello.php<\/code> in the browser address bar.\n<\/p>\n<p>Text for the \u201chello.php\u201d file:<\/p>\n<pre>\r\n&lt;!DOCTYPE html>\r\n&lt;?php\r\necho \"Hello World!\";\r\n?>\r\n<\/pre>\n<\/p>\n<p>That&#8217;s it! You should see \u201cHello World!\u201d when you open the page. You can develop your  modular final in a local environment with includes such as <a href=\"12-php\/\">PHP navigation<\/a>. This should make the process much more immediate.<\/p>\n<h2>Running WordPress<\/h2>\n<\/p>\n<p><a href=\"https:\/\/wordpress.org\">Download<\/a> WordPress. Install the uncompressed WordPress files into the <strong>htdocs<\/strong> folder. Do not drag the folder itself, just the files inside of the folder.\n<\/p>\n<p>WordPress requires the MYSQL database. MAMP takes care of this, but you need to manage it using Sequel Pro.\n<\/p>\n<p><a href=\"http:\/\/www.sequelpro.com\">Download<\/a> Sequel Pro. For Windows, try <a href=\"http:\/\/www.mysql.com\/products\/workbench\/\">MYSQL Workbench<\/a>. Open Sequel Pro and click on the <strong>Socket<\/strong> tab. The host name will be <code>localhost<\/code>. Default user name is <code>root<\/code> and Password is <code>root<\/code>.\n<\/p>\n<p>This information can be found on the Open WebStart Page of MAMP. Enter name and password and hit the <strong>connect<\/strong> button.\n<\/p>\n<p>Create a new database for WordPress to use by clicking in the menu and elect <code>add Database<\/code>. Make up a simple name.\n<\/p>\n<p>Go to the localhost root folder in the browser: <code>http:\/\/localhost:8888\/<\/code>. This will bring up WordPress\u2019s famous five-minute installation process.\n<\/p>\n<p>WordPress asks you what language you want to proceed in. Select the language and click <strong>continue<\/strong>\n<\/p>\n<p>It tells you what information is required to connect to the database. Click <strong>Let&#8217;s go!<\/strong>\n<\/p>\n<p>Fill in the name you gave the database, the User Name and the Password. Click <strong>Submit<\/strong>.\n<\/p>\n<p>WordPress tells you that everything you have done has worked, and you can run the WordPress install. If not, you did something wrong. Click <strong>Run the install<\/strong>.\n<\/p>\n<p>WordPress requires more information, like the Site Title, Username of the Administrator, Password, remain address. Click <strong>Install WorldPress<\/strong> when you have completed all of the information.\n<\/p>\n<p>You now have your own locally hosted WordPress Site!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MAMP is for server side technologies on the Mac. WAMP does the same for windows. I only talk about MAMP. If you are using a PC, replace MAMP with WAMP. It is an acronym that stands for either Mac or &hellip; <a href=\"https:\/\/b.parsons.edu\/~dejongo\/11-mamp-wamp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/posts\/2415"}],"collection":[{"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/comments?post=2415"}],"version-history":[{"count":10,"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/posts\/2415\/revisions"}],"predecessor-version":[{"id":3982,"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/posts\/2415\/revisions\/3982"}],"wp:attachment":[{"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/media?parent=2415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/categories?post=2415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.parsons.edu\/~dejongo\/wp-json\/wp\/v2\/tags?post=2415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}