Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL extension for PHP #66

Open
marcosgdf opened this issue May 15, 2013 · 3 comments
Open

OpenSSL extension for PHP #66

marcosgdf opened this issue May 15, 2013 · 3 comments

Comments

@marcosgdf
Copy link

Hi there,

I know this may not be a bug but... How do I install openssl extension required by PHP to reach SSL urls with Phar.

I tried brew install openssl but that doesn't fix anything... How am I supposed to install openssl to use it with MNPP's PHP executable?

You say openssl is included with the stack but I can't find it anywhere... Also phpinfo tells me that I have to install OpenSSL extension...

Thanks.

@ghost
Copy link

ghost commented Dec 22, 2013

my phpinfo() tells this :
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 0.9.8y 5 Feb 2013
OpenSSL Header Version OpenSSL 0.9.8y 5 Feb 2013

i still have the issue in composer, but i'm wondering how phpinfo tells you must install openssl extension.
note : i brew php5.5 also.

@fahdi104
Copy link

Hi,

any work around to fix this?

thanks

@maderlock
Copy link

The issue here seems to be that php is compiled with a completely incorrect path for ssl. It may be possible to symlink in the correct files.

In the end, I recompiled php54 with similar settings to those used initially by MNPP, but just compiling in openssl directly:

  1. Download latest version of php 5.4
  2. Configure:
    ./configure --prefix=/Applications/MNPP/Library/php54 --exec-prefix=/Applications/MNPP/Library/php54 --enable-cli --enable-gd-jis-conv --enable-gd-native-ttf --enable-mbstring --with-bz2 --with-curl --with-gd --with-gettext=shared,/Applications/MNPP/Library/gettext --with-freetype-dir=/Applications/MNPP/Library/freetype --with-jpeg-dir=/Applications/MNPP/Library/jpeg --with-libxml-dir=/Applications/MNPP/Library/xml --with-xsl=/Applications/MNPP/Library/xslt --with-mcrypt=shared,/Applications/MNPP/Library/mcrypt --with-mhash=/Applications/MNPP/Library/mhash --with-mysql=/Applications/MNPP/Library/mysql --enable-sockets --with-mysqli=/Applications/MNPP/Library/mysql/bin/mysql_config --with-openssl --with-zlib-dir=/Applications/MNPP/Library/zlib --with-png-dir=/Applications/MNPP/Library/png --with-readline --with-zlib --with-config-file-path=/Applications/MNPP/conf/php54 --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-libedit --enable-libxml --enable-dom --enable-simplexml --with-iconv=/Applications/MNPP/Library/iconv --with-pdo-mysql=/Applications/MNPP/Library/mysql/bin/mysql_config --enable-soap
  3. make
  4. make install

This worked for me. I can still use MNPP to take this process up and down, and fpm works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants