Valet-plus: Issues installing valet 2.0 on new catalina machine due to openssl erros pecl

Created on 22 Nov 2019  ยท  6Comments  ยท  Source: weprovide/valet-plus

Installing went smooth untill i needed to install the pecl modules.
in short the error is:

Connection to ssl://pecl.php.net:443 failed:

I tried reinstalling openssl

brew reinstall openssl

There are also some obscure options to download .pem files and installing them in the used directory. But that also did not work. I currently have eveything like it should be but not able to pass anything pecl related. not listing, not search and certanly not installing.

โฏ pecl update-channels
Updating channel "doc.php.net"
Update of Channel "doc.php.net" succeeded
Updating channel "pear.php.net"
Channel "pear.php.net" is not responding over http://, failed with message: Connection to `ssl://pear.php.net:443' failed:
Trying channel "pear.php.net" over https:// instead
Cannot retrieve channel.xml for channel "pear.php.net" (Connection to `ssl://pear.php.net:443' failed: )
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date

Anybody any other ideas.

2.x Bug

Most helpful comment

I solved the problem. You must edit the last line of PECL.
Add -n attribute
File
/usr/local/Cellar/[email protected]/7.1.33_2/bin/pecl

OLD: $PHP -C -q
exec $PHP -C -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"

NEW: $PHP -C -n -q
exec $PHP -C -n -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"

All 6 comments

I can update that its related to the valet-php version.
Currently . installed [email protected], 7.2 and such directly via brew and no issues with pecl. but that's an issue with valet of course.

I can confirm that it doesn't work also on catalina.

I solved the problem. You must edit the last line of PECL.
Add -n attribute
File
/usr/local/Cellar/[email protected]/7.1.33_2/bin/pecl

OLD: $PHP -C -q
exec $PHP -C -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"

NEW: $PHP -C -n -q
exec $PHP -C -n -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"

We're currently not able to reliably support Catalina because we don't have images for it yet on Azure DevOps.

Do you guys think this can be solved in our brew tap?

So I've determined the actual cause here being the new LibreSSL installation on MacOS catalina.

This installation has no cacert configured thus failing SSL connections. Applying the -n option as mentioned in this thread will cause the PHP binary to NOT use the php.ini. Thus circumventing the issue. But I would recommend to just configure your cacert.pem file.

Closing since it's a duplicate of https://github.com/weprovide/valet-plus/issues/457.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

glennjacobs picture glennjacobs  ยท  22Comments

wowcut picture wowcut  ยท  15Comments

jahvi picture jahvi  ยท  24Comments

capitaladot picture capitaladot  ยท  24Comments

luukschakenraad picture luukschakenraad  ยท  18Comments