SPECIAL OFFER: Only $59 for access to everything in OSTraining for 1 year! You save $85!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Win 7 Drush install openssl extension missing

3 years 3 months ago #126107 by SamStamport
I am following the instructions in your video ( www.ostraining.com/class/drush/drush-windows/ ) to install Drush.

Please see attached image of the message I'm getting while installing Composer on my Win 7 machine. I'm running php 7 with MAMP.

I found php.net/manual/en/openssl.installation.php that seems to sort of relate to it, but reading that web page makes no sense to me. Please help me understand what to do.

This message has an attachment image.
Please log in or register to see it.

Please Log in to join the conversation.

3 years 3 months ago #126108 by Nick
Hi Sam,

Drush's current documentation states that "Drush on Windows is not recommended, since Drush's test suite is not running there". As a result, we no longer don't recommend it for Windows either. We'll have to update that video.

As to the image, go to the php.ini file specified in the image, and open it for editing. Look for:
extension=php_openssl.dll

Is there a semi-colon before it? If so, remove it. Then save the file.

Finally, restart MAMP. Then you should be able to get past that step.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

3 years 3 months ago #126109 by SamStamport
Replied by SamStamport on topic Win 7 Drush install openssl extension missing
There was no semi-colon before extension=php_openssl.dll in php.ini.

I guess this means that the only way I can migrate from dev on Win 7 to prod on bluehost is the old-fashioned way with Filezilla & phpMyAdmin since the migrate functionality won't work with Acquia Dev Desktop and I can't get it to work with MAMP.

What's the deal with Drush's test suite not running on Windows? What is test suite anyway?

Please Log in to join the conversation.

3 years 3 months ago - 3 years 3 months ago #126112 by Nick
Strange. To double check, what was the location of the PHP file you were editing? I wonder if might need to move it to a different system folder.

Yes, the old-fashioned way is usually a very safe, standard choice.

I guess that most of the people that use Drush, especially the developer of Drush, use a Mac and some use a Linux machine, but few people use Windows for development. Supporting two different operating systems can be a lot of work, so it often falls by the way-side if there isn't enough people using a certain system.

A test suite is code that automates testing production code to make sure that per-determined functionality still works with new code additions. Basically, it's a way to double check your code and make sure nothing broke.

Hope this helps! Let us know if you have any questions and we'll be glad to answer.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: SamStamport

Please Log in to join the conversation.

3 years 3 months ago #126146 by SamStamport
Replied by SamStamport on topic Win 7 Drush install openssl extension missing
I posted a question here github.com/composer/composer/issues/5225#issuecomment-212539481 and got help installing Composer. I got Composer installed, finally. and Drush.

I'm curious about all those other extension lines in php.ini that are commented. Should I remove the comments from them and add the path?

Please Log in to join the conversation.

3 years 3 months ago #126148 by Nick
Nice work, Sam!

No, it's not necessary to uncomment those. MAMP comes configured with a standard php.ini file that works for most situations. You only need to enable settings if and when you need them.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!