HP Fatal error:call to undefined function openssl_pkey_get_public ():
A lot of similar problems have been encountered during the recent learning of PHP
Actually, the solution is simple.
Locate the php.ini file in the PHP directory
Ctrl+f look for Extension=php_openssl.dll to remove the ";" number in front of it.
In addition to this function, there may be other functions, but the solution is the same
Find the location of the file, whichever you need to remove the semicolon before you can
; Extension=php_bz2.dll
; Extension=php_curl.dll
; Extension=php_fileinfo.dll
Extension=php_gd2.dll
; Extension=php_gettext.dll
; Extension=php_gmp.dll
; Extension=php_intl.dll
; extension=php_imap.dll
; Extension=php_interbase.dll
; Extension=php_ldap.dll
Extension=php_mbstring.dll
; extension=php_ Exif.dll ; Must is after mbstring as it depends on it
Extension=php_mysql.dll
Extension=php_mysqli.dll
; extension=php_oc I8_12c.dll ; Use with Oracle Database 12c Instant Client
Extension=php_openssl.dll
; Extension=php_pdo_firebird.dll
; Extension=php_pdo_mysql.dll
; extension=php_pdo_oci.dll
; Extension=php_pdo_odbc.dll
; extension=php_pdo _pgsql.dll
; extension=php_pdo_sqlite.dll
; Extension=php_pgsql.dll
; Extension=php_shmop.dll