![]() ![]() This will open the hosts file in the Nano Text Editor inside of Terminal. Open Terminal Utility and enter the command:Įnter your admin password at prompt. This is an "invisible file" and will require using Terminal. In my instance I created a clean Drupal 7 Install inside of MAMP's htdocs and named the directory "D7." In MAMP preferences select Apache tab and set your document root to be your primary Drupal Instalation mentioned above.Then change the Apache port to port "80." Again, this step is optional. Launch MAMP and open MAMP Preferences from the MAMP Control Panel. ![]() There may be reasons not to do this If that's the case you can skip this step and the next step. This will disable your "Sites" folder as a Web server and will allow MAMP's Apache to become your localhost server. In Mac System Prefs turn off Web Sharing. We want MAMP's Apache to use port 80 so that we will not have to append port numbers to our local URLS when browsing.At this time you might change the name of your Drupal 7 Folder. If you have not done so yet, Download the most recent release of Drupal and extract it in the htdocs folder.But "out of the box" this is the folder that MAMP expects you will serve your Web pages from. By default MAMP uses it's own "htdocs" directory as the root level of it's Web Server.Download and Install MAMP in your Applications Directory.Replace these names with your own site names where appropriate. I will name these sites "v, v, v" as examples. Were going to make MAMP become the default Web Server for localhost and also define localhost as "dev." We will set up 3 client sites running from one local Drupal Installation. This assumes you have Administrator access to your system. This is the procedure for running local Drupal 7 Multi-site on MAMP 1.9.x for OS X 10.5.x and up. I suggest reading the comments of this file at the appropriate step. Drupal 7 makes this process a bit easier to do with the "sites.php" file. It takes up less space and helps keep things tidy. Developing all of my sites from one installation makes it much easier to manage Core and module upgrades. Running local versions of these sites can be messy if they are all running discrete instances of Drupal. I have several client sites that I develop for. Specifically you need to edit your hosts file and your sites.php file.įor the benefit of others I will start at the beginning and carefully go through all of the steps that I took to run a Drupal Multi-Site local install with MAMP. But you are missing several important steps. Will just double clicking that index.php file kick everything off? Is there any thing else I need to do before I open the index file inside the main folder that has all the Drupal files (which is named "websites" ) to start the application. ![]() Now, all I need to do is create 3 databases somehow with the exact same names as my 3 site's folders.Īnd I create the 3 databases by opening the start page in the MAMP application and going to the PHP Admin application there to create the3 databases. Once I also used a Libraries folder to hold CKeditor, do I still need to do that with Drupal 7? In the ALL folder there is already a themes and modules folder. I don't know if I only need one settings file or 3. (or was I supposed to put a copy of the settings.php inside each of my 3 site's folders. In Default folder I duplicated the file and named it settings.php, so both those files are in the same folder. In the "sites" folder (drupal files), I put 3 folders, each with the name of the 3 sites I want to build. With the MAMP application, I reset apache to look at this "websites" folder instead of the htdocs folder inside of the MAMP application folder. Moving them out of the downloaded Drupal folder into my "websites" folder (including 2 invisible files) I created a folder to hold Drupal, and put the Drupal files in there. I'm putting together a multi-site MAMP installation of Drupal 7. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |