Uncategorized

Mamp mac os x yosemite

It took forever to find these instructions.

Reader Interactions

This guide was truly amazing! I have created a script that lets you select the version of php you would like to run and creates a sym-link to that version. You can find it here and I have a blog about how to put it to use which you can find here if anyone is interested. Appreciate you posting this very very much.

I love you!

macos how to - MySQL with MAMP does not work with OSX Yosemite - CODE Q&A Solved

Thanks very much! Great stuff!! Thanks a lot man.

Tutoriel MacOs : Installer Apache, PHP, MySQL sur Yosemite

Replace php56 with whatever version you want to switch to. No need to worry about the OS-installed version. Thanks, zhiachong This works for me. Using oh-my-zsh by any chance? I follow the procedure and the change of path is ok. I tried restarting terminal and even mac but it is still the same path.

I have followed every steps.


  • validating steam files 100 stuck mac.
  • impression jaquette cd pour mac;
  • The Solution;
  • Post navigation;
  • re hide hidden files on mac.

Now you can fire the command to install the composer globally So you can access it from anywhere: The command to install the composer globally doesn't work with me. The Composer is downloaded and installed, but the above command does not work.

Publisher's Description

I get an error message:. Composer version 1. So, does the composer being in multiple locations mean that it is global, or do I still need to specify and why am I still getting two versions of PHP displaying? It might not be as obvious, but the export has to be of the bin folder, be carefull not to do This will not throw any errors when loading the bash profile, but it will not load the PHP binaries as needed. Hi there all. Perhaps it's really just my own stupidity, but I searched the web now for a day, tried dozens of options but I am still stuck. I use mac OSX I created.

Command not found. That is weird. Do I need to move. What should be in a normal case the path to. Opens up the file nicely in my text editor and showing the path to php: Thanks a lot Narayanareddy96 , your solution work fine here. But not a problem as I already installed the composer just before fixing my PHP version. Just like to know what's the error of the command.

Narayanareddy96 your solution was the only one that worked. Thanks man. That was the right and a very simple solution. Thank your very much Narayanareddy96 , Worked for me , when to did follwing those steps.

Why Not Just Use MAMP?

Skip to content. Sign up for a GitHub account Sign in. Instantly share code, notes, and snippets.

Fix MAMP Apache MySQL Server Not Starting On Mac OS X Yosemite

Embed What would you like to do? Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. Code Revisions 6 Stars Forks To do that, Within the terminal, Fire this command: Follow these simple steps: Install Composer Package Management Now you can fire the command to install the composer globally So you can access it from anywhere: This comment has been minimized.

Sign in to view. Copy link Quote reply. Thanks a lot, 2 hours of pain solved! It worked!! Regardless, you can use PHP 5. Try the following Many thanks - very helpful. After following the steps which, vim command not working. Please help me to solve this. You have to close then re-open the terminal to see the effect.

Tank you!! I guessed that it was because of Xcode 5 - and hey, lucky guess! So if you have that error drop into terminal and use this command:. Then run the install command again. When the build is done you can move your Xcode apps back to their original names. If all goes well you should end up with some terminal output like this:. Now that's pretty amazing to me, and where homebrew is really worth its salt. All of those dependencies managed, auto downloaded, configured, and installed: There's no way I could have done that in 7. That will load MySQL.

Now we'll test it and make some configuration changes. In shell we will connect to the mysql server:. Notice that we have version 5. It's not only good practice, it's required by some software. Obviously in a production server you would worry about security- but for a dev server using root is A-OK in my book. To set the root password enter this command:. No, that didn't really change the root password. That simply disconnected from the MySQL server and dropped us back into our standard shell.

You see, there's a simple command called mysqladmin that's been installed for us as well which makes it much easier to change the password. Now we will use this command:. Please substitute "newpwd" for the password you want to use for the root account. I use "root" no quotes. Again- it's a dev. If you run into log in issues later it might be because of special characters. Now, let's try to connect to mysql again as above and you should get an error:. If you want to connect via terminal in the future you will have to use the -p flag like so:.

For now that's the basic configuration of MySQL, we'll cover creating databases later when we go into Moodle setup. PHP is one of the most popular dynamic languages out there. It's robust, it's solid, and it's what Moodle uses. So let's install it. My shipped version is 5. The latest stable version is 5. Now, before we install PHP we need to remember that Moodle requires and recommends a lot of submodules:. First we're going to need to tap two new repositories 'versions' and 'homebrew-php':.

Next you'll need to decide which version of PHP you want. I'm going to use PHP 5. If nobody tests release versions of software then how will the bugs be found? Let's take a look at what options are available to us by running this command:. Even though it's probably not required for php56 I'm going to use the --with-phpdbg flag just to be safe.

In addition I'm going to use a few other options for homebrew versions of software. Curl is another one of those tools that's slightly outdated and we may as well use the latest stable version. The version on my system is 7. Finally, notice that we're not using the --with-intl flag, that's because currently intl is broken and we'll have to install a separate package after PHP builds.

Here's my full install command copy and paste:. Then you will need to edit the formula to set the path of your bzip2 binary manually. First, find where your bzip2 binary is located with the following command:. Another common error that seems to be occuring, and has been reported here is a compilation error while building phar.

The basic error is:. I found this to be an error of trying to use Homebrew's OpenSSL, either by setting it as the default on the system or using the --with-homebrew-ssl flag. So for now my build is using the system version of OpenSSL.


  • Downloads (older versions) - MAMP & MAMP PRO;
  • Coolest Guides On The Planet;
  • formatting a hard drive to ntfs on mac.
  • braggadocio font free download mac?

If the build goes correctly then your total output should look something like this:. As you can see looking at the caveats there are still a few steps we need to do. First we will fix the PEAR permissions, this might not be necessary, but it won't hurt anything so go ahead and copy and paste these commands into the terminal:. Then we'll check our command line version. First, exit or Quit Terminal and reopen it, then run this command in terminal:.

If it lists 5. The following commands should add it for you:. Finally you need to add the php handlers to the httpd. Now we having functioning PHP on our server, but remember we need to install intl separately, so go back to terminal and run the following command:. And there we have it! That will give us every required Moodle php extension, except for opcache, which at the time of this writing is not compatible with PHP 5.

When it does become available you can simply run brew install phpopcache and you're done. That's the end of the first part of this extensive walk through of setting up a Moodle development server. Macintosh OS X We need to do a bit of configuring of our Mac before we dive into setting up services. Get git Moodle development is managed using git.

Open up terminal and enter the following command: Choose an option in the dialog to download the command line developer tools. Open up terminal and copy and paste this single command: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information. To proceed, enter your password, or type Ctrl-C to abort. Counting objects: Compressing objects: Total delta , reused delta Receiving objects: Resolving deltas: From https: To see your specific version run git --version in terminal: Github Github is where all the cool kids are storing their code these days.

I suggest you check out: Anyways… If you do not already have an account at github you will need to go sign up. Type the following command: If terminal gives you this return: No such file or directory then we need to create the directory with another command just copy and paste: Run the command: Enter passphrase empty for no passphrase: Enter same passphrase again: It will look something like this: The key fingerprint is: Activating Your Key Now that you have created your key you need to tell the operating system to use it.

Identity added: Back in terminal you have one more command to run, simply copy and paste unless you renamed your key: Your page should look something like this: Just copy and paste this command into terminal: Server version: Jun 28 Go to terminal and type this command: Total delta 0 , reused 0 delta 0 Receiving objects: Checking connectivity Tapped 9 formulae The new repository gives us two versions of Apache: No available formula for apr dependency of httpd24 Searching taps Homebrew doesn't know what compiler versions ship with your version of Xcode 6.

Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add to your build variables: Go back to terminal and enter the following command: Enter this line: Save the file and run the build again: So it's not necessary now, because we just loaded it, but for the future you can use: MySQL, uhh.. So let's head back to the Homebrew app in terminal and get started: If you happen to be on an as-of-yet-unreleased OS and have both Xcode 5 and Xcode 6 beta installed on your system you will need to use Xcode 6 to install MySQL otherwise this will happen: Qt5 Cmake Files Incorrect https: Does not install FindGLM.

So if you have that error drop into terminal and use this command: If all goes well you should end up with some terminal output like this: To add additional certificates, place. To connect: In shell we will connect to the mysql server: Welcome to the MySQL monitor. All rights reserved. Other names may be trademarks of their respective owners.

To set the root password enter this command: Now we will use this command: Now, let's try to connect to mysql again as above and you should get an error: Access denied for user 'root' 'localhost' using password: NO If you want to connect via terminal in the future you will have to use the -p flag like so: First we're going to need to tap two new repositories 'versions' and 'homebrew-php': Total delta 18 , reused 4 delta 2 Receiving objects: Total delta 0 , reused 1 delta 0 Receiving objects: Tapped formulae Next you'll need to decide which version of PHP you want. Let's take a look at what options are available to us by running this command: Here's my full install command copy and paste: First, find where your bzip2 binary is located with the following command: The basic error is: Class is not a module TypeError I found this to be an error of trying to use Homebrew's OpenSSL, either by setting it as the default on the system or using the --with-homebrew-ssl flag.

If the build goes correctly then your total output should look something like this: OS X provides the BSD gettext library and some software gets confused if both are in the library path. Backing up all known pear.