Sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock Some programs expect to find the mysql.sock file at /var and it isn't there by default. Mysqladmin -u root password 'ROOT_PASSWORD' You should set a MYSQL root password using your terminal window, where 'ROOT_PASSWORD' is whatever password you want to use for this: MYSQL is set up without a root password by default. You may want to create one at /etc/my.cnf with your preferred configuration settings. Once you have that, just type:Ĭheck where it's located and which version you have: The dead easy way to install MYSQL is with Homebrew. Once it's installed, keep typing brew doctor until all errors are fixed. The easiest way to do the remaining tasks is to install Homebrew. Include /private/etc/apache2/extra/nfįinally, to get clean URLs working find and change the following in nf. private/etc/apache2/extra/nfĮdit nf and remove the '#' in front of the following line so the Virtual hosts get used: If you want to use Virtual hosts, set them up in LoadModule php5_module libexec/apache2/libphp5.so Using Text Wrangler, uncomment the line in that file by removing the '#' in front of it: One is to enable it's handling of PHP by enabling the PHP module. There are a couple final tweaks to Apache. Go to that location to add the Drupal files for your web site. Now you have a quick bookmark to the web root. Then choose Go from the menu at the top, then Favorites and Add to Favorites You'll be dropping our Drupal files in the web root, so add a bookmark to that using Pathfinder. To test this, start Apache and go to in a browser. To start Apache, using the terminal type: You can put a web root in other places, but that makes configuration more complicated, so I've been leaving that alone. You may need to edit it to do things like increase memory. Set up php.ini, if it doesn't already exist, by copying : This is easy, it's already installed! To confirm that type the following to see where it is located:Īnd type the following to see what version is installed: To find that, click on the Launchpad icon in the dock, then choose Others and then Terminal. You need to use the terminal window for many of these steps. Without this tool I would either have to edit it in my terminal window using sudo, or keep changing the permission on the file before I edit and then change it back again afterward. If I say yes, the file is unlocked while I make my changes, then reset to its previous permissions. When I try to edit a protected file using Text Wrangler it asks if I want to unlock the file. The thing I especially like about that is that it makes it easy to edit protected files. The other handy app I depend on is Text Wrangler. Once installed, go to the View option in the menu bar at the top of the page, and check the option to view invisible files. The most important feature is that you can view invisible files with it. Pathfinder is a replacement for Mac's Finder that adds a number of nice improvements. To start with, I install a couple of apps that make all of this much easier to do. I thought I'd share the process I'm using now. Setting up a Mac without MAMP used to be sort of complicated, but it's been getting easier and easier with every version of Mac OS, and it's not that hard any more. That takes up space on my machine and occasionally causes trouble when some operation uses the wrong version of PHP because of confusion about which installation should take precedence. MAMP is easy to install, but it creates a duplicate version of PHP and a duplicate version of Apache. I used to use MAMP for this, but lately have been using the built-in functionality that comes on a Mac instead. I need a drink.īrowsers: Safari 9.0.2 and Firefox 40.0.I recently got a new Mac and needed to configure it as a local web server for the many Drupal sites I work on. Way too frustrating and way too much time wasted. At the moment I'm just going to give up and maybe try at some stage in the future. Perhaps this isn't MAMPS fault, I don't know. It currently auto fills it with '%', if I try and delete the %, it highlights with a red border.Ģ/ Again when on Add User I get a "A fatal JavaScript error has occurred." Each time I get the same two issues.ġ/ Create a new local database - When entering log-in info phpMyAdmin won't allow me to leave the Host” field empty. The issue I suspect is phpMyAdmin within MAMP. I've been battling with MAMP for three days now trying to download my existing Wordpress self hosted site following various online tutorials and absolutely none have worked.Įach time I have started from scratch including deleting MAMP and re-installing it, trying two different browsers and each time I get the ‘error establishing a database connection’ message.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |