Adding SSH2 to MAMP and MAMP PRO on Yosemite the easy way


You will require autoconf.

Install via the above instructions will work. Also, using Homebrew will work.

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

Download the php version that matches the one you will be using with MAMP Pro.

Copy the extracted files to MAMP php folder in /Applications/MAMP/bin/php/php5.5.18/include/php

Do not copy the subfolder created by the extraction, only copy the contents of that folder. You may have to create the ‘include/php/‘ folders as they might not already exist.

Also, do change the PHP version number to match the one you’re using.

./configure --without-iconv

Adding SSH2 extension to your MAMP the sure way

  1. Download libssh2 from source forge, direct link here
  2. Then extract the package, configure, compile and install it.
    user:compile$ tar -xf libssh2-1.2.1.tar
    user:compile$ cd libssh2-1.2.1
    user:libssh2-1.2.1$ ./configure
    user:libssh2-1.2.1$ make
    user:libssh2-1.2.1$ sudo make install
  3. Download SSH2 PECL source code, get the latest stable version.
  4. Then untar and compile it.
    user:compile$ tar -xf ssh2-0.12.0.tar
    user:compile$ cd ssh2-0.12.0
    user:ssh2-0.12.0$ phpize
    If you don’t have have autoconf installed this is where you will get an error. Cannot find autoconf. Otherwise, proceed.
    user:ssh2-0.11.0$ ./configure
    If you get this error

    /Applications/MAMP/bin/php/php5.5.18/include/php/Zend/zend.h:51:11: fatal error: ‘zend_config.h’

          file not found

    This is probably because you did not compile the PHP you downloaded.
    user:ssh2-0.11.0$ make
  5. Look in
    ssh2-0.12.0/modules/ to find
    Copy this file to your MAMP location.
  6. Chmod 755 the location of your file.
  7. Edit templates in MAMP Pro, File->Edit Template->PHP-> Choose the PHP version you have compiled with.
  8. Add the line , in the [extensions] section
  9. Save changes
  10. Restart MAMP Pro
  11. Check phpinfo()
  12. Try it out

2015 03 01 11 47 08 PM 

If you are using Linux, such as Debian, Ubuntu you can install XAMPP for Linux. Compile ssh2 using the same instructions, update the php.ini file the same way. 




Brew FFmpeg Yosemite



brew install ffmpeg –with-fdk-aac –with-ffplay –with-freetype –with-frei0r –with-libass –with-libvo-aacenc –with-libvorbis –with-libvpx –with-opencore-amr –with-openjpeg –with-opus –with-schroedinger –with-speex –with-theora –with-tools –with-faac


brew reinstall ffmpeg –with-fdk-aac –with-ffplay –with-freetype –with-frei0r –with-libass –with-libvo-aacenc –with-libvorbis –with-libvpx –with-opencore-amr –with-openjpeg –with-opus –with-schroedinger –with-speex –with-theora –with-tools –with-faac

ffmpeg version 2.5.4 Copyright (c) 2000-2015 the FFmpeg developers

  built on Feb 27 2015 02:54:53 with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)

  configuration: –prefix=/usr/local/Cellar/ffmpeg/2.5.4 –enable-shared –enable-pthreads –enable-gpl –enable-version3 –enable-hardcoded-tables –enable-avresample –cc=clang –host-cflags= –host-ldflags= –enable-libx264 –enable-libmp3lame –enable-libvo-aacenc –enable-libxvid –enable-libfreetype –enable-libtheora –enable-libvorbis –enable-libvpx –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libfaac –enable-libass –enable-ffplay –enable-libspeex –enable-libschroedinger –enable-libfdk-aac –enable-libopus –enable-frei0r –enable-libopenjpeg –disable-decoder=jpeg2000 –extra-cflags=’-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ‘ –enable-nonfree –enable-vda

  libavutil      54. 15.100 / 54. 15.100

  libavcodec     56. 13.100 / 56. 13.100

  libavformat    56. 15.102 / 56. 15.102

  libavdevice    56.  3.100 / 56.  3.100

  libavfilter     5.  2.103 /  5.  2.103

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc    53.  3.100 / 53.  3.100

Hyper fast Audio and Video encoder

usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…


Use -h to get full help or, even better, run ‘man ffmpeg’


Java 8 with Adobe CS5 and PhpStorm Yosemite

Note: You may not need the JDK but it is a more complete installation as per Oracle’s FAQ.

Avoid Java 6, it’s old and not updated.

Install Java 8 JDK. The latest version Java 8 Update 40.

First install JAVA 8 JDK.


To get PHP Storm working you can use this trick.

Open terminal and run these two commands:

sudo rm /usr/bin/java

sudo ln -s “/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java” /usr/bin/java


To get Adobe CS5 Suite products workings again you can create two empty folders as indicated by

Open terminal and run these two commands:

sudo mkdir -p /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
sudo mkdir -p /System/Library/Java/Support/Deploy.bundle

After running these commands PHP Storm 7, PHPStorm 8, PHPStorm 9 will work and won’t ask to install Apple JRE 6.



For system wide usage JAVA_HOME should be set in your .bash_profile

export JAVA_HOME=”/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home”

You would then add JAVA_HOME to your path like so:







What this does is that it maps your Java 6 folder to point to the Java 8 folder.

This way you do not need to Install Apples Java 6 JRE, and you can have the latest updates delivered via Oracle instead of App Store.


More Information:

Is it safe to install previous or older versions of Java?

Oracle highly discourages users from using older versions of Java. Installing old and supported versions of Java on your system presents a serious security risk. Upgrading to the latest version of Java ensures that Java applications will run with the most up-to-date security and performance improvements on your system. You can confirm that you have the latest version on the verification page. If installing an older version of Java is absolutely required, you must first uninstall the current version. See the instructions on the Mac uninstall Java FAQ.

After I updated to Mac OS X 10.10 (Yosemite), why am I told to install Java after I already installed the latest Java?

After updating to Mac 10.10 and installing the latest Oracle Java version, some users report being prompted to install Java again. This is most commonly because an application is using Java 6 provided by Apple, which also must be updated. For more information, see

When I try to use java from the command line, why doesn’t it work? I have Oracle’s version of the JRE installed.

Installing a JRE from Oracle does not update java -version symlinks or add java to your path. For this functionality, you must install the full JDK. See Mac command line info.