AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Mamp wordpress already existing site12/27/2023 ![]() MAMP is a terrific Mac PHP development tool. As you can see, you just need to edit two files and you should be in business. I hope this MAMP setup tutorial has been helpful. You can change that as desired, but it works for me.) MAMP setup tutorial: Summary (The 8888 port shown is the default MAMP port. If you already have your PHP files in your DocumentRoot directory everything should work fine: Copy the your wordpress zip (for example:wordpress-5.9.1-enCA.zip ) file to the MAMP htdocs folder path (C:\MAMP\htdocs\), and unzip your zip file aslo need to rename it for your website name. Once you have this entry in your MAMP Apache configuration file, just restart MAMP, and hit the following URL from your browser. Here's what the DocumentRoot entry looks like for my drupal7 project:ĭocumentRoot /Applications/MAMP/htdocs/drupal7 Applications/MAMP/conf/apache/nfĪt the bottom of the file you just need to add some lines to tell Apache about this website. The only other thing you have to do is add an Apache name based virtual host configuration entry into your MAMP Apache conf file, nf, which is located here: MAMP Setup, Step 2: Apache name based virtual host (NameVirtualHost) setup ![]() Since I have my Mac firewall set up I just get a "request timeout" message, but that's good enough for me, I know it's trying to ping my Mac. As you can see from the example above, when you're developing multiple MAMP websites on one Mac like this, you just put all the entries on one line.Īfter putting that entry in your hosts file, you can ping the new hostname like this: Then insert the name you want to call your website project on the /etc/hosts line that has the 127.0.0.1 entry. To edit the /etc/hosts file on a Mac OS X system you just edit that file like this: On that line I just added the entry for "drupal7", and the other entries on that line (codeme, devdaily, alaska) are other MAMP websites I'm developing on my Mac. The first thing I do is edit my /etc/hosts file to add an entry with the name drupal7, like this: Let's assume you want to create a new web project named "drupal7", so you can access it in your browser with this URL: MAMP setup, Step 1: Adding host names to /etc/hosts You can choose between the default version of PHP 7.4.21 or any version from 5.4.45 to 8.08. Right click on it, then click set PHP version to. ![]() Next, select the host you want to change. To switch the version of PHP installed on your host, first navigate to the hosts section. You just have to configure your /etc/hosts file and your MAMP Apache configuration file. This will come in handy when it is time to update PHP for a WordPress site. I've gotten to the point where I can do it in about two minutes. MAMP website setup FAQ: How do I configure MAMP and my Mac so I can develop a new PHP website? (Or, Can you share a Mac MAMP setup tutorial?)Īssuming you already have MAMP installed, creating a new MAMP website is pretty easy.
0 Comments
Read More
Leave a Reply. |