Even though I have the latest PHP version:
---------------------$ php -v PHP 5.6.10 (cli) (built: Jun 18 2015 07:19:18) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies with Suhosin v0.9.38, Copyright (c) 2007-2015, by SektionEins GmbH ---------------------
I have problem running the gpm:
---------------------```
$bin/gpm selfupgrade
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /CENSORED/htdocs/bin/gpm on line 13
---------------------```
I have tried adding the following to .htaccess but this did not fix anything:
---------------------AddType x-mapp-php6 .php AddHandler x-mapp-php6 .php ---------------------
This is my httpd.conf part in relation to PHP:
---------------------<IfModule fastcgi_module> AddHandler php5-fcgi .php Action php5-fcgi /fcgi-bin/php5.external Alias /fcgi-bin/php5.external /php5.external FastCgiExternalServer /php5.external -socket /CENSORED/sockets/php5-fpm.socket -appConnTimeout 30 -idle-timeout 60 <Location /fcgi-bin/php5.external> Order Deny,Allow Deny from All Allow from env=REDIRECT_STATUS </Location> </IfModule> ---------------------
My .bash_profile:
---------------------export PHP_PATH="/LATEST-PHP/bin/php" export PATH alias php="/LATEST-PHP/bin/php" ---------------------
phpinfo() does confirm that openssl is enabled:
--------OpenSSL support enabled OpenSSL Library Version OpenSSL 1.0.2c 12 Jun 2015 OpenSSL Header Version OpenSSL 1.0.2c 12 Jun 2015 --------
its very strange… your Curl version is good, and the PHP version is good. What about if you run a phpinfo();, what is the output from the Curl section?
phpinfo() reports the following:
-----------cURL support enabled cURL Information 7.43.0 Age 3 Features AsynchDNS No CharConv No Debug No GSS-Negotiate No IDN Yes IPv6 Yes krb4 No Largefile Yes libz Yes NTLM Yes NTLMWB Yes SPNEGO No SSL Yes SSPI No TLS-SRP No Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp Host x86_64-unknown-linux-gnu SSL Version OpenSSL/1.0.2c ZLib Version 1.2.3 libSSH Version libssh2/1.4.2 -----------
curl -V reports “OpenSSL/1.0.1e” and it’s the shared version on the server, I suppose, but my local version is “OpenSSL/1.0.2c”. Might this be an issue?
Grav version is 0.9.28.
Sections from phpinfo():
----------```
mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation disabled
libmbfl version 1.3.2
----------```
----------```
gd
GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XBM Support enabled
----------```
----------```
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.2c 12 Jun 2015
OpenSSL Header Version OpenSSL 1.0.2c 12 Jun 2015
----------```
As you can see the $uri varibale is based on $args[0]. Your error indicates this is an array, when it should be the string url of the github repo. Can you var_dump($uri) in that Response.php file and see what it displays?
I have added added the quick fix line to the Response.php so that it looks:
---------} curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); ---------
But there was no change. The same error still appeared.
I have added var_dump to the Response.php so that it looks:
------private static function getCurl() { $args = func_get_args(); $uri = $args[0]; var_dump($uri); ------
iainsgillis, I have tried running as you have suggested but the error did not go away. I am on WebFaction hosting, running latest PHP, Apache, cURL, OpenSSL built from source. Though all ssl transactions are being handled by the front-end nginx, which has a slightly older OpenSSL.