composer create-project flarum/flarum . --stability=beta
I try to run this command, but it gave me this error.
[RuntimeException]
The openssl extension is required for SSL/TLS protection but is not availab
le. If you can not enable the openssl extension, you can disable this error
, at your own risk, by setting the 'disable-tls' option to true.
I tried to add “extension=php_openssl.dll” to “php.ini”, but it still got this error
marlo
6,7384 gold badges26 silver badges33 bronze badges
asked Feb 7, 2016 at 4:09
4
The same error occurred to me. I fixed it by turning off TLS for Composer, it’s not safe but I assumed the risk on my develop machine.
try this:
composer config -g -- disable-tls true
and re-run your Composer. It works to me!
But it’s unsecure and not recommended for your Server. The official website says:
If set to true all HTTPS URLs will be tried with HTTP instead and no network-level encryption is performed. Enabling this is a security risk and is NOT recommended. The better way is to enable the php_openssl extension in php.ini.
If you don’t want to enable unsecure layer in your machine/server, then setup your php to enable openssl and it also works. Make sure the PHP Openssl extension has been installed and enable it on php.ini file.
To enable OpenSSL, add or find and uncomment this line on your php.ini file:
Linux/OSx:
extension=php_openssl.so
Windows:
extension=php_openssl.dll
And reload your php-fpm / web-server if needed!
UPDATE:
As of PHP 7.4 the extension is named extension=openssl
(known for Windows).
answered Feb 17, 2016 at 19:32
9
This issue occurs due to openssl and extension directory so uncomment below extensions in php.ini
file
extension=php_openssl.dll
extension_dir = "ext"
Its works on my machine.
answered Mar 16, 2017 at 9:58
Vrushal RautVrushal Raut
1,0102 gold badges15 silver badges20 bronze badges
2
I had the exact same problem and couldn’t find a solution, so after thinking and looking for a while I figured that my PHP.INI apparently didn’t look in the correct directory for my PHP Extensions, so I went under:
“Directory in which the loadable extensions (modules) reside.”
And found the following:
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
;extension_dir = "ext"
And simply removed the ; infront of “extension_dir = “ext”, note this is only for Windows, remove the semicolon in front of the first extension_dir if you are running a different operating system.
I have no idea why mine wasn’t already unmarked, but it’s just something to look for if you are having problems.
answered Feb 16, 2017 at 22:32
2
According to the composer reference there are two relevant options: disable-tls
and secure-http
, which one can use. Just edit the configuration with: nano ~/.composer/config.json
:
{
"config": {
"disable-tls": true,
"secure-http": false
}
}
Then it will complain about:
You are running Composer with SSL/TLS protection disabled.
Warning: Accessing getcomposer.org over http which is an insecure protocol.
But it performs the composer selfupdate
(or whatever command).
One cannot simply “enable SSL in the php.ini” on Linux; PHP needs to be compiled with openSSL configured as shared
library – in order to be able to access it from the PHP CLI SAPI.
answered Nov 19, 2016 at 7:52
1
To enable openssl go into php.ini and enable this line:
extension=php_openssl.dll
if you don’t want enable openssl you can set to composer not use openssl with this command:
composer config -g -- disable-tls true
however, this is a security problem.
answered Mar 8, 2017 at 19:53
Clairton LuzClairton Luz
2,06819 silver badges15 bronze badges
2
After trying everything, I finally managed to get this sorted. None of the above suggested solutions worked for me. My system is A PC Windows 10. In order to get this sorted I had to change the config.json
file located here C:Users[Your User]AppDataRoamingComposer
. In there, you will find:
{
"config": {
"disable-tls": true},
"repositories": {
"packagist": {
"type": "composer",
"url": "http://repo.packagist.org" // this needs to change to 'https'
}
}
}
where you need to update the packagist repo url to point to the ‘https’ url version.
I am aware that the above selected solution will work for 95% of the cases, but as I said, that did not work for me. Hope this helps someone.
Happy coding!
answered Aug 24, 2020 at 7:35
I had the same problem. I tried everything listed on this page. When I re-installed Composer it worked like before. I had a PHP version mismatch that was corrected with a new install establishing the dependencies with the PHP path installed in my system environment variables.
I DO NOT RECOMMEND the composer config -g -- disable-tls true
approach.
By the way the way to reverse this is composer config -g -- disable-tls false
.
answered Oct 22, 2019 at 19:59
2
I just add this because it worked for me, i install composer with the developer option activate (just check the box in the installer)
https://getcomposer.org/Composer-Setup.exe
I think this problem may occurs when you add a new version of php to your wamp server.
If you do this, you have to check if the extension_dir variable is configure to “env”.
Then check if the php_openssl.dll exist in your phpx.x/ext folder. If there is not php_openssl.dll, you have to download it here :
http://www.telecharger-dll.fr/dll-php_openssl.dll.html
If it still not working, check if your apache server use the good php.ini file by running the following cmd command :
php --ini
Configuration File (php.ini) Path: C:Windows
Loaded Configuration File: C:wamp64binphpphp7.4.7x64php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
If the loaded configuration file return (none), you have to check your appache/apache2.4.41/conf/httpd.conf file is configure with the proper phpIniDir and the correct module.
It must be something like this :
PHPIniDir "${APACHE_DIR}/bin"
LoadModule php7_module "${INSTALL_DIR}/bin/php/php7.4.7x64/php7apache2_4.dll"
Then restart apache and check the “apache/apache2.4.41/bin/php.ini” (wich is the one configure above by PHPIniDir) it must me like
answered Jun 20, 2020 at 14:58
You are running Composer with SSL/TLS protection disabled.
composer config --global disable-tls true
composer config --global disable-tls false
answered Dec 2, 2020 at 2:06
For me on Windows 10 none of those worked … I had changed my local server from WAMP to Laragon and had to add the new path to the php.ini in the Environment Variables under:
Control Panel –> Advanced System Settings –> Environment Variables –> Path (double click) –> Browse… then navigate to the php.ini and click ok.
After that a reboot was needed and now composer works like a charm!
answered Mar 11, 2020 at 2:16
I had this issue on IIS on my new home server when attempting to install Magento. To fix it i added the above: extension=php_openssl.dll in my php.ini and then restarted my IIS server on Windows 10 Pro.
answered Apr 28, 2021 at 22:52
SebastianSebastian
3822 silver badges12 bronze badges
I was just having this issue, but these solutions weren’t working since I installed PHP and Apache independently without Xampp or Wamp.
The problem for me turned out to be that I was trying to run composer from Git for Windows instead of cmd or PowerShell—where it turned out to be working fine.
My solution was to add a symlink from my /c/php/php.ini
(C:phpphp.ini
) to my /bin/
directory (C:Program FilesGitbin
).
answered Aug 29, 2022 at 4:53
1
lot of answers already, but this is what worked for me (in case someone still needs it)
Just upgraded from php 7.3.x to 7.4.33 in Windows 10, and this error occurred to me, so Just went back to the composer.exe installer, re-run the installation process once again pointing to the new php 7.4. folder, and it worked.
answered Dec 6, 2022 at 13:45
Solution 1
The same error occurred to me. I fixed it by turning off TLS for Composer, it’s not safe but I assumed the risk on my develop machine.
try this:
composer config -g -- disable-tls true
and re-run your Composer. It works to me!
But it’s unsecure and not recommended for your Server. The official website says:
If set to true all HTTPS URLs will be tried with HTTP instead and no network-level encryption is performed. Enabling this is a security risk and is NOT recommended. The better way is to enable the php_openssl extension in php.ini.
If you don’t want to enable unsecure layer in your machine/server, then setup your php to enable openssl and it also works. Make sure the PHP Openssl extension has been installed and enable it on php.ini file.
To enable OpenSSL, add or find and uncomment this line on your php.ini file:
Linux/OSx:
extension=php_openssl.so
Windows:
extension=php_openssl.dll
And reload your php-fpm / web-server if needed!
UPDATE:
As of PHP 7.4 the extension is named extension=openssl
(known for Windows).
Solution 2
According to the composer reference there are two relevant options: disable-tls
and secure-http
, which one can use. Just edit the configuration with: nano ~/.composer/config.json
:
{
"config": {
"disable-tls": true,
"secure-http": false
}
}
Then it will complain about:
You are running Composer with SSL/TLS protection disabled.
Warning: Accessing getcomposer.org over http which is an insecure protocol.
But it performs the composer selfupdate
(or whatever command).
One cannot simply “enable SSL in the php.ini” on Linux; PHP needs to be compiled with openSSL configured as shared
library – in order to be able to access it from the PHP CLI SAPI.
Solution 3
I had the exact same problem and couldn’t find a solution, so after thinking and looking for a while I figured that my PHP.INI apparently didn’t look in the correct directory for my PHP Extensions, so I went under:
“Directory in which the loadable extensions (modules) reside.”
And found the following:
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
;extension_dir = "ext"
And simply removed the ; infront of “extension_dir = “ext”, note this is only for Windows, remove the semicolon in front of the first extension_dir if you are running a different operating system.
I have no idea why mine wasn’t already unmarked, but it’s just something to look for if you are having problems.
Solution 4
This issue occurs due to openssl and extension directory so uncomment below extensions in php.ini
file
extension=php_openssl.dll
extension_dir = "ext"
Its works on my machine.
Solution 5
To enable openssl go into php.ini and enable this line:
extension=php_openssl.dll
if you don’t want enable openssl you can set to composer not use openssl with this command:
composer config -g -- disable-tls true
however, this is a security problem.
Comments
-
composer create-project flarum/flarum . --stability=beta
I try to run this command, but it gave me this error.
[RuntimeException] The openssl extension is required for SSL/TLS protection but is not availab le. If you can not enable the openssl extension, you can disable this error , at your own risk, by setting the 'disable-tls' option to true.
I tried to add “extension=php_openssl.dll” to “php.ini”, but it still got this error
Recents
При попытке запустить эту команду, выходит эта ошибка
$ php composer.phar update You are running Composer with SSL/TLS protection disabled. Loading composer repositories with package information [ComposerDownloaderTransportException] curl error 35 while downloading https://repo.packagist.org/packages.json: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-scripts] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...
Версия php
$ php -v PHP 5.4.45 (cli) (built: Sep 2 2015 23:48:30) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
Вывод команды
php -i
$ php -i phpinfo() PHP Version => 5.4.45 System => Windows NT PC7816 6.2 build 9200 (Windows 8 Business Edition) i586 Build Date => Sep 2 2015 23:45:53 Compiler => MSVC9 (Visual C++ 2008) Architecture => x86 Configure Command => cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:php-sdkoracleinstantclient10sdk,shared" "--with-oci8=C:php-sdkoracleinstantclient10sdk,shared" "--with-oci8-11g=C:php-sdkoracleinstantclient11sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo" Server API => Command Line Interface Virtual Directory Support => enabled Configuration File (php.ini) Path => C:windows Loaded Configuration File => D:openservermodulesphpPHP_5.4php.ini Scan this dir for additional .ini files => (none) Additional .ini files parsed => (none) PHP API => 20100412 PHP Extension => 20100525 Zend Extension => 220100525 Zend Extension Build => API220100525,TS,VC9 PHP Extension Build => API20100525,TS,VC9 Debug Build => no Thread Safety => enabled Zend Signal Handling => disabled Zend Memory Manager => enabled Zend Multibyte Support => provided by mbstring IPv6 Support => enabled DTrace Support => disabled Registered PHP Streams => php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar Registered Stream Socket Transports => tcp, udp, ssl, sslv3, sslv2, tls Registered Stream Filters => convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.* This program makes use of the Zend Scripting Language Engine: Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies _______________________________________________________________________ Configuration bcmath BCMath support => enabled Directive => Local Value => Master Value bcmath.scale => 0 => 0 bz2 BZip2 Support => Enabled Stream Wrapper support => compress.bzip2:// Stream Filter support => bzip2.decompress, bzip2.compress BZip2 Version => 1.0.6, 6-Sept-2010 calendar Calendar support => enabled Core PHP Version => 5.4.45 Directive => Local Value => Master Value allow_url_fopen => On => On allow_url_include => Off => Off always_populate_raw_post_data => Off => Off arg_separator.input => & => & arg_separator.output => & => & asp_tags => Off => Off auto_append_file => no value => no value auto_globals_jit => On => On auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html disable_classes => no value => no value disable_functions => no value => no value display_errors => STDOUT => STDOUT display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => Off => Off enable_post_data_reading => On => On error_append_string => no value => no value error_log => d:/openserver/userdata/logs/PHP_5.4_error.log => d:/openserver/userdata/logs/PHP_5.4_error.log error_prepend_string => no value => no value error_reporting => 22527 => 22527 exit_on_timeout => Off => Off expose_php => Off => Off extension_dir => d:/openserver/modules/php/PHP_5.4/ext => d:/openserver/modules/php/PHP_5.4/ext file_uploads => On => On highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font> highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font> highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font> highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font> highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font> html_errors => Off => Off ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => On include_path => .;d:/openserver/modules/php/PHP_5.4;d:/openserver/modules/php/PHP_5.4/pear/pear;d:/openserver/modules/php/PHP_5.4/MDB2;d:/openserver/modules/php/PHP_5.4/smarty/libs;d:/openserver/modules/php/PHP_5.4/smarty/libs/plugins => .;d:/openserver/modules/php/PHP_5.4;d:/openserver/modules/php/PHP_5.4/pear/pear;d:/openserver/modules/php/PHP_5.4/MDB2;d:/openserver/modules/php/PHP_5.4/smarty/libs;d:/openserver/modules/php/PHP_5.4/smarty/libs/plugins log_errors => On => On log_errors_max_len => 1024 => 1024 mail.add_x_header => On => On mail.force_extra_parameters => no value => no value mail.log => no value => no value max_execution_time => 0 => 0 max_file_uploads => 20 => 20 max_input_nesting_level => 64 => 64 max_input_time => -1 => -1 max_input_vars => 1000 => 1000 memory_limit => 1536M => 1536M open_basedir => no value => no value output_buffering => 0 => 0 output_handler => no value => no value post_max_size => 50M => 50M precision => 14 => 14 realpath_cache_size => 4M => 4M realpath_cache_ttl => 120 => 120 register_argc_argv => On => On report_memleaks => Off => Off report_zend_debug => Off => Off request_order => GP => GP sendmail_from => no value => no value sendmail_path => d:openservermodulessendmailsendmail.exe -local => d:openservermodulessendmailsendmail.exe -local serialize_precision => 17 => 17 short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_mode => Off => Off track_errors => Off => Off unserialize_callback_func => no value => no value upload_max_filesize => 50M => 50M upload_tmp_dir => d:/openserver/userdata/temp/upload => d:/openserver/userdata/temp/upload user_dir => no value => no value user_ini.cache_ttl => 300 => 300 user_ini.filename => .user.ini => .user.ini variables_order => GPCS => GPCS windows.show_crt_warning => Off => Off xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off zend.detect_unicode => On => On zend.enable_gc => On => On zend.multibyte => Off => Off zend.script_encoding => no value => no value ctype ctype functions => enabled curl cURL support => enabled cURL Information => 7.42.1 Age => 3 Features AsynchDNS => Yes Debug => No GSS-Negotiate => No IDN => No IPv6 => Yes Largefile => Yes NTLM => Yes SPNEGO => Yes SSL => Yes SSPI => Yes krb4 => No libz => Yes CharConv => No Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp Host => i386-pc-win32 SSL Version => OpenSSL/0.9.8zf ZLib Version => 1.2.7 libSSH Version => libssh2/1.5.0 date date/time support => enabled "Olson" Timezone Database Version => 2016.9 Timezone Database => external Default timezone => Europe/Moscow Directive => Local Value => Master Value date.default_latitude => 31.7667 => 31.7667 date.default_longitude => 35.2333 => 35.2333 date.sunrise_zenith => 90.583333 => 90.583333 date.sunset_zenith => 90.583333 => 90.583333 date.timezone => Europe/Moscow => Europe/Moscow dom DOM/XML => enabled DOM/XML API Version => 20031129 libxml Version => 2.7.8 HTML Support => enabled XPath Support => enabled XPointer Support => enabled Schema Support => enabled RelaxNG Support => enabled enchant enchant support => enabled Version => 1.1.0 Libenchant Version => 1.5.0 or later Revision => $Id: 0eb8144f76f6744a423c3c05eb51932caa4ca17e $ ereg Regex Library => Bundled library enabled exif EXIF Support => enabled EXIF Version => 1.4 $Id: 05041c5f0094cb46d9b516bd624d593b90cc38f9 $ Supported EXIF Version => 0220 Supported filetypes => JPEG,TIFF Directive => Local Value => Master Value exif.decode_jis_intel => JIS => JIS exif.decode_jis_motorola => JIS => JIS exif.decode_unicode_intel => UCS-2LE => UCS-2LE exif.decode_unicode_motorola => UCS-2BE => UCS-2BE exif.encode_jis => no value => no value exif.encode_unicode => ISO-8859-15 => ISO-8859-15 fileinfo fileinfo support => enabled version => 1.0.5 filter Input Validation and Filtering => enabled Revision => $Id: ad78b4a085153b8c7f4d6db5dc69df40e969c343 $ Directive => Local Value => Master Value filter.default => unsafe_raw => unsafe_raw filter.default_flags => no value => no value ftp FTP support => enabled gd GD Support => enabled GD Version => bundled (2.1.0 compatible) FreeType Support => enabled FreeType Linkage => with freetype FreeType Version => 2.4.10 GIF Read Support => enabled GIF Create Support => enabled JPEG Support => enabled libJPEG Version => 8 PNG Support => enabled libPNG Version => 1.2.50 WBMP Support => enabled XPM Support => enabled libXpm Version => 30411 XBM Support => enabled Directive => Local Value => Master Value gd.jpeg_ignore_warning => 1 => 1 gettext GetText Support => enabled hash hash support => enabled Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 iconv iconv support => enabled iconv implementation => "libiconv" iconv library version => 1.14 Directive => Local Value => Master Value iconv.input_encoding => ISO-8859-1 => ISO-8859-1 iconv.internal_encoding => ISO-8859-1 => ISO-8859-1 iconv.output_encoding => ISO-8859-1 => ISO-8859-1 imagick imagick module => enabled imagick module version => 3.4.1 imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel Imagick compiled with ImageMagick version => ImageMagick 6.8.9-1 Q16 x86 2014-05-08 http://www.imagemagick.org Imagick using ImageMagick library version => ImageMagick 6.8.9-1 Q16 x86 2014-05-08 http://www.imagemagick.org ImageMagick copyright => Copyright (C) 1999-2014 ImageMagick Studio LLC ImageMagick release date => 2014-05-08 ImageMagick number of supported formats: => 229 ImageMagick supported formats => 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPS, DPX, DXT1, DXT5, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FPX, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPEG, JPG, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, Y, YCbCr, YCbCrA, YUV Directive => Local Value => Master Value imagick.locale_fix => 0 => 0 imagick.progress_monitor => 0 => 0 imagick.skip_version_check => 0 => 0 json json support => enabled json version => 1.2.1 libxml libXML support => active libXML Compiled Version => 2.7.8 libXML Loaded Version => 20708 libXML streams => enabled mbstring Multibyte Support => enabled Multibyte string engine => libmbfl HTTP input encoding translation => disabled libmbfl version => 1.3.2 mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Multibyte (japanese) regex support => enabled Multibyte regex (oniguruma) version => 4.7.1 Directive => Local Value => Master Value mbstring.detect_order => no value => no value mbstring.encoding_translation => Off => Off mbstring.func_overload => 0 => 0 mbstring.http_input => pass => pass mbstring.http_output => pass => pass mbstring.http_output_conv_mimetypes => ^(text/|application/xhtml+xml) => ^(text/|application/xhtml+xml) mbstring.internal_encoding => no value => no value mbstring.language => neutral => neutral mbstring.strict_detection => Off => Off mbstring.substitute_character => no value => no value mcrypt mcrypt support => enabled mcrypt_filter support => enabled Version => 2.5.8 Api No => 20021217 Supported ciphers => cast-128 gost rijndael-128 twofish cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes arcfour Supported modes => cbc cfb ctr ecb ncfb nofb ofb stream Directive => Local Value => Master Value mcrypt.algorithms_dir => no value => no value mcrypt.modes_dir => no value => no value mhash MHASH support => Enabled MHASH API Version => Emulated Support mysql MySQL Support => enabled Active Persistent Links => 0 Active Links => 0 Client API version => mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $ Directive => Local Value => Master Value mysql.allow_local_infile => Off => Off mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => 3306 => 3306 mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off mysqli MysqlI Support => enabled Client API library version => mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $ Active Persistent Links => 0 Inactive Persistent Links => 0 Active Links => 0 Directive => Local Value => Master Value mysqli.allow_local_infile => Off => Off mysqli.allow_persistent => On => On mysqli.default_host => no value => no value mysqli.default_port => 3306 => 3306 mysqli.default_pw => no value => no value mysqli.default_socket => no value => no value mysqli.default_user => no value => no value mysqli.max_links => Unlimited => Unlimited mysqli.max_persistent => Unlimited => Unlimited mysqli.reconnect => Off => Off mysqlnd mysqlnd => enabled Version => mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $ Compression => supported SSL => supported Command buffer size => 4096 Read buffer size => 32768 Read timeout => 86400 Collecting statistics => Yes Collecting memory statistics => No Tracing => n/a Loaded plugins => mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password API Extensions => mysql,mysqli,pdo_mysql mysqlnd statistics => bytes_sent => 0 bytes_received => 0 packets_sent => 0 packets_received => 0 protocol_overhead_in => 0 protocol_overhead_out => 0 bytes_received_ok_packet => 0 bytes_received_eof_packet => 0 bytes_received_rset_header_packet => 0 bytes_received_rset_field_meta_packet => 0 bytes_received_rset_row_packet => 0 bytes_received_prepare_response_packet => 0 bytes_received_change_user_packet => 0 packets_sent_command => 0 packets_received_ok => 0 packets_received_eof => 0 packets_received_rset_header => 0 packets_received_rset_field_meta => 0 packets_received_rset_row => 0 packets_received_prepare_response => 0 packets_received_change_user => 0 result_set_queries => 0 non_result_set_queries => 0 no_index_used => 0 bad_index_used => 0 slow_queries => 0 buffered_sets => 0 unbuffered_sets => 0 ps_buffered_sets => 0 ps_unbuffered_sets => 0 flushed_normal_sets => 0 flushed_ps_sets => 0 ps_prepared_never_executed => 0 ps_prepared_once_executed => 0 rows_fetched_from_server_normal => 0 rows_fetched_from_server_ps => 0 rows_buffered_from_client_normal => 0 rows_buffered_from_client_ps => 0 rows_fetched_from_client_normal_buffered => 0 rows_fetched_from_client_normal_unbuffered => 0 rows_fetched_from_client_ps_buffered => 0 rows_fetched_from_client_ps_unbuffered => 0 rows_fetched_from_client_ps_cursor => 0 rows_affected_normal => 0 rows_affected_ps => 0 rows_skipped_normal => 0 rows_skipped_ps => 0 copy_on_write_saved => 0 copy_on_write_performed => 0 command_buffer_too_small => 0 connect_success => 0 connect_failure => 0 connection_reused => 0 reconnect => 0 pconnect_success => 0 active_connections => 0 active_persistent_connections => 0 explicit_close => 0 implicit_close => 0 disconnect_close => 0 in_middle_of_command_close => 0 explicit_free_result => 0 implicit_free_result => 0 explicit_stmt_close => 0 implicit_stmt_close => 0 mem_emalloc_count => 0 mem_emalloc_amount => 0 mem_ecalloc_count => 0 mem_ecalloc_amount => 0 mem_erealloc_count => 0 mem_erealloc_amount => 0 mem_efree_count => 0 mem_efree_amount => 0 mem_malloc_count => 0 mem_malloc_amount => 0 mem_calloc_count => 0 mem_calloc_amount => 0 mem_realloc_count => 0 mem_realloc_amount => 0 mem_free_count => 0 mem_free_amount => 0 mem_estrndup_count => 0 mem_strndup_count => 0 mem_estndup_count => 0 mem_strdup_count => 0 proto_text_fetched_null => 0 proto_text_fetched_bit => 0 proto_text_fetched_tinyint => 0 proto_text_fetched_short => 0 proto_text_fetched_int24 => 0 proto_text_fetched_int => 0 proto_text_fetched_bigint => 0 proto_text_fetched_decimal => 0 proto_text_fetched_float => 0 proto_text_fetched_double => 0 proto_text_fetched_date => 0 proto_text_fetched_year => 0 proto_text_fetched_time => 0 proto_text_fetched_datetime => 0 proto_text_fetched_timestamp => 0 proto_text_fetched_string => 0 proto_text_fetched_blob => 0 proto_text_fetched_enum => 0 proto_text_fetched_set => 0 proto_text_fetched_geometry => 0 proto_text_fetched_other => 0 proto_binary_fetched_null => 0 proto_binary_fetched_bit => 0 proto_binary_fetched_tinyint => 0 proto_binary_fetched_short => 0 proto_binary_fetched_int24 => 0 proto_binary_fetched_int => 0 proto_binary_fetched_bigint => 0 proto_binary_fetched_decimal => 0 proto_binary_fetched_float => 0 proto_binary_fetched_double => 0 proto_binary_fetched_date => 0 proto_binary_fetched_year => 0 proto_binary_fetched_time => 0 proto_binary_fetched_datetime => 0 proto_binary_fetched_timestamp => 0 proto_binary_fetched_string => 0 proto_binary_fetched_blob => 0 proto_binary_fetched_enum => 0 proto_binary_fetched_set => 0 proto_binary_fetched_geometry => 0 proto_binary_fetched_other => 0 init_command_executed_count => 0 init_command_failed_count => 0 com_quit => 0 com_init_db => 0 com_query => 0 com_field_list => 0 com_create_db => 0 com_drop_db => 0 com_refresh => 0 com_shutdown => 0 com_statistics => 0 com_process_info => 0 com_connect => 0 com_process_kill => 0 com_debug => 0 com_ping => 0 com_time => 0 com_delayed_insert => 0 com_change_user => 0 com_binlog_dump => 0 com_table_dump => 0 com_connect_out => 0 com_register_slave => 0 com_stmt_prepare => 0 com_stmt_execute => 0 com_stmt_send_long_data => 0 com_stmt_close => 0 com_stmt_reset => 0 com_stmt_set_option => 0 com_stmt_fetch => 0 com_deamon => 0 bytes_received_real_data_normal => 0 bytes_received_real_data_ps => 0 example statistics => stat1 => 0 stat2 => 0 odbc ODBC Support => enabled Active Persistent Links => 0 Active Links => 0 ODBC library => Win32 Directive => Local Value => Master Value odbc.allow_persistent => On => On odbc.check_persistent => On => On odbc.default_cursortype => Static cursor => Static cursor odbc.default_db => no value => no value odbc.default_pw => no value => no value odbc.default_user => no value => no value odbc.defaultbinmode => return as is => return as is odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes odbc.max_links => Unlimited => Unlimited odbc.max_persistent => Unlimited => Unlimited openssl OpenSSL support => enabled OpenSSL Library Version => OpenSSL 0.9.8zf 19 Mar 2015 OpenSSL Header Version => OpenSSL 0.9.8zf 19 Mar 2015 pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 8.37 2015-04-28 Directive => Local Value => Master Value pcre.backtrack_limit => 1000000 => 1000000 pcre.recursion_limit => 100000 => 100000 PDO PDO support => enabled PDO drivers => mysql, pgsql, sqlite pdo_mysql PDO Driver for MySQL => enabled Client API version => mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $ pdo_pgsql PDO Driver for PostgreSQL => enabled PostgreSQL(libpq) Version => 8.3.3 Module version => 1.0.2 Revision => $Id: 8e4cc97fb53f418d98b489c3e9d722e48446e676 $ pdo_sqlite PDO Driver for SQLite 3.x => enabled SQLite Library => 3.8.10.2 Phar Phar: PHP Archive support => enabled Phar EXT version => 2.0.1 Phar API version => 1.1.1 SVN revision => $Id: ba734629367f9671b25202408d13914fa63d8396 $ Phar-based phar archives => enabled Tar-based phar archives => enabled ZIP-based phar archives => enabled gzip compression => enabled bzip2 compression => enabled OpenSSL support => enabled Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. Directive => Local Value => Master Value phar.cache_list => no value => no value phar.readonly => On => On phar.require_hash => On => On Reflection Reflection => enabled Version => $Id: f6367cdb4e3f392af4a6d441a6641de87c2e50c4 $ session Session Support => enabled Registered save handlers => files user Registered serializer handlers => php php_binary wddx Directive => Local Value => Master Value session.auto_start => Off => Off session.cache_expire => 180 => 180 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_httponly => Off => Off session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => Off => Off session.entropy_file => no value => no value session.entropy_length => 0 => 0 session.gc_divisor => 1000 => 1000 session.gc_maxlifetime => 3600 => 3600 session.gc_probability => 1 => 1 session.hash_bits_per_character => 5 => 5 session.hash_function => 0 => 0 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => d:/openserver/userdata/temp => d:/openserver/userdata/temp session.serialize_handler => php => php session.upload_progress.cleanup => On => On session.upload_progress.enabled => On => On session.upload_progress.freq => 1% => 1% session.upload_progress.min_freq => 1 => 1 session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS session.upload_progress.prefix => upload_progress_ => upload_progress_ session.use_cookies => On => On session.use_only_cookies => On => On session.use_trans_sid => 0 => 0 SimpleXML Simplexml support => enabled Revision => $Id: 16070fc92ad6f69cebb2d52ad3f02794f833ce39 $ Schema support => enabled soap Soap Client => enabled Soap Server => enabled Directive => Local Value => Master Value soap.wsdl_cache => 1 => 1 soap.wsdl_cache_dir => d:/openserver/userdata/temp => d:/openserver/userdata/temp soap.wsdl_cache_enabled => 1 => 1 soap.wsdl_cache_limit => 5 => 5 soap.wsdl_cache_ttl => 86400 => 86400 sockets Sockets Support => enabled SPL SPL support => enabled Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException sqlite3 SQLite3 support => enabled SQLite3 module version => 0.7 SQLite Library => 3.8.10.2 Directive => Local Value => Master Value sqlite3.extension_dir => no value => no value standard Dynamic Library Support => enabled Path to sendmail => d:openservermodulessendmailsendmail.exe -local Directive => Local Value => Master Value assert.active => 1 => 1 assert.bail => 0 => 0 assert.callback => no value => no value assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 auto_detect_line_endings => 0 => 0 default_socket_timeout => 60 => 60 from => no value => no value url_rewriter.tags => a=href,area=href,frame=src,form=,fieldset= => a=href,area=href,frame=src,form=,fieldset= user_agent => no value => no value timezonedb Alternative Timezone Database => enabled Timezone Database Version => 2016.9 tokenizer Tokenizer Support => enabled wddx WDDX Support => enabled WDDX Session Serializer => enabled xml XML Support => active XML Namespace Support => active libxml2 Version => 2.7.8 xmlreader XMLReader => enabled xmlrpc core library version => xmlrpc-epi v. 0.51 php extension version => 0.51 author => Dan Libby homepage => http://xmlrpc-epi.sourceforge.net open sourced by => Epinions.com xmlwriter XMLWriter => enabled xsl XSL => enabled libxslt Version => 1.1.27 libxslt compiled against libxml Version => 2.7.8 EXSLT => enabled libexslt Version => 0.8.16 zip Zip => enabled Extension Version => $Id: 6c872ebfb022206b0cc2a183c7a388c7b6ad8685 $ Zip version => 1.11.0 Libzip version => 0.10.1 zlib ZLib Support => enabled Stream Wrapper => compress.zlib:// Stream Filter => zlib.inflate, zlib.deflate Compiled Version => 1.2.7 Linked Version => 1.2.7 Directive => Local Value => Master Value zlib.output_compression => Off => Off zlib.output_compression_level => -1 => -1 zlib.output_handler => no value => no value Additional Modules Module Name Environment Variable => Value ALLUSERSPROFILE => C:ProgramData ANSICON => 239x32766 (239x56) ANSICON_DEF => 7 APPDATA => C:Usersramazanov.aAppDataRoaming CG_BOOST_ROOT => C:Program Files (x86)EmbarcaderoRAD Studio7.0includeboost_1_39 CommonProgramFiles => C:Program Files (x86)Common Files CommonProgramFiles(x86) => C:Program Files (x86)Common Files CommonProgramW6432 => C:Program FilesCommon Files COMPUTERNAME => PC7816 ComSpec => C:windowssystem32cmd.exe ConEmuANSI => ON ConEmuAnsiLog => ConEmuArgs => /Single ConEmuArgs2 => ConEmuBackHWND => 0x002407C2 ConEmuBaseDir => D:openservermodulesconemuConEmu ConEmuBaseDirShort => D:OpenServermodulesconemuConEmu ConEmuBuild => 210422 ConEmuCfgDir => D:openservermodulesconemu ConEmuConfig => ConEmuDir => D:openservermodulesconemu ConEmuDrawHWND => 0x00310378 ConEmuDrive => D: ConEmuHooks => Enabled ConEmuHWND => 0x004E043A ConEmuPalette => <ConEmu> ConEmuPID => 10624 ConEmuServerPID => 4404 ConEmuTask => {Shells::cmd} ConEmuWorkDir => d:openserver ConEmuWorkDrive => d: DataGrip => C:Program FilesJetBrainsDataGrip 2021.1.1bin; DriverData => C:WindowsSystem32DriversDriverData HOME => d:openserver HOMEDRIVE => d: HOMEPATH => openserver LOCALAPPDATA => C:Usersramazanov.aAppDataLocal LOGONSERVER => \DC1 NUMBER_OF_PROCESSORS => 4 OneDrive => C:Usersramazanov.aOneDrive OneDriveConsumer => C:Usersramazanov.aOneDrive OPENSSL_CONF => d:openservermoduleshttpApache_2.2-PHP_5.2-5.4+Nginx_1.21confopenssl.cnf OS => Windows_NT Path => D:openservermodulesconemuConEmuScripts;D:openservermodulesconemu;D:openservermodulesconemuConEmu;d:openservermodulesphpPHP_5.4ext;d:openservermodulesphpPHP_5.4pear;d:openservermodulesphpPHP_5.4pearbin;d:openservermodulesphpPHP_5.4;d:openservermoduleswgetbin;d:openservermoduleshttpApache_2.2-PHP_5.2-5.4+Nginx_1.21bin;d:openservermoduleshttpApache_2.2-PHP_5.2-5.4+Nginx_1.21;C:windowssystem32;C:windows;C:windowssystem32Wbem;C:windowsSysWOW64 PATHEXT => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PHPBIN => d:openservermodulesphpPHP_5.4php.exe PHPDIR => d:openservermodulesphpPHP_5.4 PHPRC => d:openservermodulesphpPHP_5.4 PhpStorm => C:Program FilesJetBrainsPhpStorm 2021.1.2bin; PHP_BIN => d:openservermodulesphpPHP_5.4php.exe PHP_BINARY => d:openservermodulesphpPHP_5.4php.exe PHP_BINDIR => d:openservermodulesphpPHP_5.4 PHP_DIR => d:openservermodulesphpPHP_5.4 PHP_INI => d:openservermodulesphpPHP_5.4php.ini PHP_PEAR_BIN_DIR => d:openservermodulesphpPHP_5.4PEAR PHP_PEAR_DATA_DIR => d:openservermodulesphpPHP_5.4PEARdata PHP_PEAR_DOC_DIR => d:openservermodulesphpPHP_5.4PEARdocs PHP_PEAR_INSTALL_DIR => d:openservermodulesphpPHP_5.4PEARpear PHP_PEAR_PHP_BIN => d:openservermodulesphpPHP_5.4php.exe PHP_PEAR_SYSCONF_DIR => d:openservermodulesphpPHP_5.4PEAR PHP_PEAR_TEST_DIR => d:openservermodulesphpPHP_5.4PEARtests PROCESSOR_ARCHITECTURE => x86 PROCESSOR_ARCHITEW6432 => AMD64 PROCESSOR_IDENTIFIER => AMD64 Family 21 Model 48 Stepping 1, AuthenticAMD PROCESSOR_LEVEL => 21 PROCESSOR_REVISION => 3001 ProgramData => C:ProgramData ProgramFiles => C:Program Files (x86) ProgramFiles(x86) => C:Program Files (x86) ProgramW6432 => C:Program Files PROMPT => $E[m$E[32m$E]9;8;"USERNAME"$E@$E]9;8;"COMPUTERNAME"$E$S$E[92m$P$E[90m$_$E[90m$$$E[m$S$E]9;12$E PSModulePath => C:Program FilesWindowsPowerShellModules;C:windowssystem32WindowsPowerShellv1.0Modules PUBLIC => C:UsersPublic SESSIONNAME => Console SystemDrive => C: SystemRoot => C:windows TEMP => d:openserveruserdatatemp TMP => d:openserveruserdatatemp USERDNSDOMAIN => PSU.LOCAL USERDOMAIN => PSU USERDOMAIN_ROAMINGPROFILE => PSU USERNAME => ramazanov.a USERPROFILE => C:Usersramazanov.a windir => C:windows __COMPAT_LAYER => DetectorsAppHealth DetectorsWin8 PHP Variables Variable => Value _SERVER["ALLUSERSPROFILE"] => C:ProgramData _SERVER["ANSICON"] => 239x32766 (239x56) _SERVER["ANSICON_DEF"] => 7 _SERVER["APPDATA"] => C:Usersramazanov.aAppDataRoaming _SERVER["CG_BOOST_ROOT"] => C:Program Files (x86)EmbarcaderoRAD Studio7.0includeboost_1_39 _SERVER["CommonProgramFiles"] => C:Program Files (x86)Common Files _SERVER["CommonProgramFiles(x86)"] => C:Program Files (x86)Common Files _SERVER["CommonProgramW6432"] => C:Program FilesCommon Files _SERVER["COMPUTERNAME"] => PC7816 _SERVER["ComSpec"] => C:windowssystem32cmd.exe _SERVER["ConEmuANSI"] => ON _SERVER["ConEmuAnsiLog"] => _SERVER["ConEmuArgs"] => /Single _SERVER["ConEmuArgs2"] => _SERVER["ConEmuBackHWND"] => 0x002407C2 _SERVER["ConEmuBaseDir"] => D:openservermodulesconemuConEmu _SERVER["ConEmuBaseDirShort"] => D:OpenServermodulesconemuConEmu _SERVER["ConEmuBuild"] => 210422 _SERVER["ConEmuCfgDir"] => D:openservermodulesconemu _SERVER["ConEmuConfig"] => _SERVER["ConEmuDir"] => D:openservermodulesconemu _SERVER["ConEmuDrawHWND"] => 0x00310378 _SERVER["ConEmuDrive"] => D: _SERVER["ConEmuHooks"] => Enabled _SERVER["ConEmuHWND"] => 0x004E043A _SERVER["ConEmuPalette"] => <ConEmu> _SERVER["ConEmuPID"] => 10624 _SERVER["ConEmuServerPID"] => 4404 _SERVER["ConEmuTask"] => {Shells::cmd} _SERVER["ConEmuWorkDir"] => d:openserver _SERVER["ConEmuWorkDrive"] => d: _SERVER["DataGrip"] => C:Program FilesJetBrainsDataGrip 2021.1.1bin; _SERVER["DriverData"] => C:WindowsSystem32DriversDriverData _SERVER["HOME"] => d:openserver _SERVER["HOMEDRIVE"] => d: _SERVER["HOMEPATH"] => openserver _SERVER["LOCALAPPDATA"] => C:Usersramazanov.aAppDataLocal _SERVER["LOGONSERVER"] => \DC1 _SERVER["NUMBER_OF_PROCESSORS"] => 4 _SERVER["OneDrive"] => C:Usersramazanov.aOneDrive _SERVER["OneDriveConsumer"] => C:Usersramazanov.aOneDrive _SERVER["OPENSSL_CONF"] => d:openservermoduleshttpApache_2.2-PHP_5.2-5.4+Nginx_1.21confopenssl.cnf _SERVER["OS"] => Windows_NT _SERVER["Path"] => D:openservermodulesconemuConEmuScripts;D:openservermodulesconemu;D:openservermodulesconemuConEmu;d:openservermodulesphpPHP_5.4ext;d:openservermodulesphpPHP_5.4pear;d:openservermodulesphpPHP_5.4pearbin;d:openservermodulesphpPHP_5.4;d:openservermoduleswgetbin;d:openservermoduleshttpApache_2.2-PHP_5.2-5.4+Nginx_1.21bin;d:openservermoduleshttpApache_2.2-PHP_5.2-5.4+Nginx_1.21;C:windowssystem32;C:windows;C:windowssystem32Wbem;C:windowsSysWOW64 _SERVER["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC _SERVER["PHPBIN"] => d:openservermodulesphpPHP_5.4php.exe _SERVER["PHPDIR"] => d:openservermodulesphpPHP_5.4 _SERVER["PHPRC"] => d:openservermodulesphpPHP_5.4 _SERVER["PhpStorm"] => C:Program FilesJetBrainsPhpStorm 2021.1.2bin; _SERVER["PHP_BIN"] => d:openservermodulesphpPHP_5.4php.exe _SERVER["PHP_BINARY"] => d:openservermodulesphpPHP_5.4php.exe _SERVER["PHP_BINDIR"] => d:openservermodulesphpPHP_5.4 _SERVER["PHP_DIR"] => d:openservermodulesphpPHP_5.4 _SERVER["PHP_INI"] => d:openservermodulesphpPHP_5.4php.ini _SERVER["PHP_PEAR_BIN_DIR"] => d:openservermodulesphpPHP_5.4PEAR _SERVER["PHP_PEAR_DATA_DIR"] => d:openservermodulesphpPHP_5.4PEARdata _SERVER["PHP_PEAR_DOC_DIR"] => d:openservermodulesphpPHP_5.4PEARdocs _SERVER["PHP_PEAR_INSTALL_DIR"] => d:openservermodulesphpPHP_5.4PEARpear _SERVER["PHP_PEAR_PHP_BIN"] => d:openservermodulesphpPHP_5.4php.exe _SERVER["PHP_PEAR_SYSCONF_DIR"] => d:openservermodulesphpPHP_5.4PEAR _SERVER["PHP_PEAR_TEST_DIR"] => d:openservermodulesphpPHP_5.4PEARtests _SERVER["PROCESSOR_ARCHITECTURE"] => x86 _SERVER["PROCESSOR_ARCHITEW6432"] => AMD64 _SERVER["PROCESSOR_IDENTIFIER"] => AMD64 Family 21 Model 48 Stepping 1, AuthenticAMD _SERVER["PROCESSOR_LEVEL"] => 21 _SERVER["PROCESSOR_REVISION"] => 3001 _SERVER["ProgramData"] => C:ProgramData _SERVER["ProgramFiles"] => C:Program Files (x86) _SERVER["ProgramFiles(x86)"] => C:Program Files (x86) _SERVER["ProgramW6432"] => C:Program Files _SERVER["PROMPT"] => $E[m$E[32m$E]9;8;"USERNAME"$E@$E]9;8;"COMPUTERNAME"$E$S$E[92m$P$E[90m$_$E[90m$$$E[m$S$E]9;12$E _SERVER["PSModulePath"] => C:Program FilesWindowsPowerShellModules;C:windowssystem32WindowsPowerShellv1.0Modules _SERVER["PUBLIC"] => C:UsersPublic _SERVER["SESSIONNAME"] => Console _SERVER["SystemDrive"] => C: _SERVER["SystemRoot"] => C:windows _SERVER["TEMP"] => d:openserveruserdatatemp _SERVER["TMP"] => d:openserveruserdatatemp _SERVER["USERDNSDOMAIN"] => PSU.LOCAL _SERVER["USERDOMAIN"] => PSU _SERVER["USERDOMAIN_ROAMINGPROFILE"] => PSU _SERVER["USERNAME"] => ramazanov.a _SERVER["USERPROFILE"] => C:Usersramazanov.a _SERVER["windir"] => C:windows _SERVER["__COMPAT_LAYER"] => DetectorsAppHealth DetectorsWin8 _SERVER["PHP_SELF"] => _SERVER["SCRIPT_NAME"] => _SERVER["SCRIPT_FILENAME"] => _SERVER["PATH_TRANSLATED"] => _SERVER["DOCUMENT_ROOT"] => _SERVER["REQUEST_TIME_FLOAT"] => 1628154020.3291 _SERVER["REQUEST_TIME"] => 1628154020 _SERVER["argv"] => Array ( ) _SERVER["argc"] => 0 PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
Обновил файл cacert.php с официального сайта.
Вставлял вместо файла
D:OpenServeruserdataconfigcacert.pem
Я же правильно заменил?
Не знаю что делать бьюсь уже пол дня. Подскажите как добиться того6 чтобы composer работал.
Problem :
I am trying to install Composer but I am getting the following error:
“Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again:
The OpenSSL extension is missing, which means that secure HTTPS transfers are impossible. If possible you should enable it or recompile php with –with-openssl”
I have also gone into my php.ini-production and uncommented the following code: “extension=php_openssl.dll”
But still, it is not working for me, Am I missing something?
Solution :
I had also faced the same issue in the past, please follow the below approach to resolve your issue:
I doubt the “php.ini-production” is the dummy configuration file suitable for live environments. I will suggest you do a php -i at the console and also try to find the ‘php.ini’ path, to understand where it is expecting the ini file to be kept. It may be the case that normally it is expecting “php.ini”, and it may not actually exist. If that is the case then, copy the php.ini-development (or equivalent) to the location required.
This is very near the top of actually a very long output, so you may find it redirecting it to a file helpful (php -i > C:phpinfo.txt).
Another Solution :
I conceived “php.ini-production” is a dummy configuration file suitable for live environments. Do a php -i at the console and trace the ‘php.ini’ path, to view where it is expecting the ini file to be kept. This is generally expecting “php.ini”, and may not really exist – in case it does not, copy php.ini-development (or same) to the location requisite.
This is near the top of (a very long) output, hence you may trace redirecting it to a file useful
php -i > C:phpinfo.txt).
You will further require to uncomment the extension dir. For example, trace this line in your php.ini file:
;extension_dir = “ext”
Remove the semi-colon in front and save the file. I am certain this will perform.
Remember to open your php.ini Administrator mode
After altering anything in php.ini you have to restart your server, ensure that you did so first of all.
in WAMPserver edit this files:
D:wampbinphpphp5.3.10php.ini
or
D:wampbinphpphp5.4.12php.ini (based on version)
Do not employ the php.ini in the WAMP server menu. It will not perform. Go to the origin of your wamp and as defined above with D as root.
Create a php.ini (for example from php.ini-production), open it in an editor as admin (!), remove the commenting semicolon; in front of extension=php_openssl.dll, set the extension_dir accurately, and save the file. After that, it must be performed. However once again: open and edit the php.ini as admin.
In case you are employing MAMP on Windows, you require to alter the extension for php.ini-development to php.ini . After that, paste this line ;extension_dir = “ext” into the php.ini file, prior to the first extension appearing and uncommenting this other line ;extension=php_openssl.dll removing the prefixed semicolon. Remember to restart apache
A similar error happened to me. I solved it by turning off TLS for Composer, it’s not safe however I considered the risk on my development machine.
Attempt this:
composer config -g — disable-tls true
and re-run your Composer. It performs to me.
However, it’s not secure and not recommended for your Server. The official website says:
In the case set to true, all HTTPS URLs will be attempted with HTTP instead and no network-level encryption is worked. Enabling this is a security risk and is NOT recommended. The better method is to enable the php_openssl extension in php.ini.
In case you don’t want to enable unsecure layer in your machine/server, so setup your php to enable OpenSSL and it also performed. Ensure that the PHP Openssl extension has been installed and enable it on php.ini file.
To enable OpenSSL, add or trace and uncomment this line on your php.ini file:
Linux/OSx:
extension=php_openssl.so
Windows:
extension=php_openssl.dll
And reload your php-fpm / web-server in case reqired
For the composer reference, there are two relevant options: disable-tls and secure-http.
nano ~/.composer/config.json …
{
“config”: {
“disable-tls”: true,
“secure-http”: false
}
}
Thereafter it complains much:
You are running Composer with SSL/TLS protection disabled.
Warning: Accessing getcomposer.org over http which is an insecure protocol.
However, it works the composer selfupdate (or whatever).
while one cannot easily “enable SSL in the php.ini” on Linux; PHP requires to be compiled with openSSL configured as shared library – in order to be able to access it from the PHP CLI SAPI.
Hence, after inventioning and looking for a while I found that my PHP.INI obviously didn’t look in the accurate directory for my PHP Extensions, so I went under:
“Directory in which the loadable extensions (modules) reside.” And casting the following:
; http://php.net/extension-dir
; extension_dir = “./”
; On windows:
;extension_dir = “ext”
And easily removed the ; infront of “extension_dir = “ext”, note this is just for Windows, remove the semicolon in front of the first extension_dir in case you are running a different operating system.
(SOLVED BELOW) I am stuck for a few days now trying to effectively use composer to install phpspreadsheet on a php project I am working on for a client. Since phpspreadsheet requires php >= 7.2 I installed multiple versions of php (5.6, 7.1,2,3,4, 8.0) on my Linux drive (ubuntu 20.04.2 LTS focal).
I uninstalled an Ampps server which only had php7.1. Apache2 was already installed. I installed mysql-server 8.0 after some difficulties (until I purged the ampps installation).
Composer did install globally, and I did initialize a basic composer.json in my webroot directory. A /vendor
dir was created containing a /composer
dir.
My most recent composer.json file:
{
"name": "john/t.cga.it8",
"description": "cga website",
"type": "project",
"license": "proprietary",
"authors": [
{
"name": "John Loughran",
"email": "example@gmail.com"
}
],
"minimum-stability": "dev",
"require": {}
}
If I run $ composer diagnose
from the web root dir in the terminal I got the following error:
[ComposerExceptionNoSslException]
The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable
this error, at your own risk, by setting the 'disable-tls' option to true.
Attempts to run $ composer update
or upgrade
stall with the same error.
When, as suggested, I configure composer to run without SSL using $ composer config -g -- disable-tls true
I get the following, in full technicolor:
You are running Composer with SSL/TLS protection disabled.
Checking composer.json: OK
Checking platform settings: FAIL
The openssl extension is missing, which means that secure HTTPS transfers
are impossible.
If possible you should enable it or recompile php with --with-openssl
The zlib extension is not loaded, this can slow down Composer a lot.
If possible, enable it or recompile php with --with-zlib
A php.ini file does not exist. You will have to create one.
If you can not modify the ini file, you can also run `php -d option=value`
to modify ini values on the fly. You can use -d multiple times.
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: FAIL
[ComposerDownloaderTransportException] The "https://repo.packagist.org
/packages.json" file could not be downloaded: Unable to find the wrapper
"https" - did you forget to enable it when you configured PHP?
failed to open stream: No such file or directory
Composer is configured to disable SSL/TLS protection. This will leave
remote HTTPS requests vulnerable to Man-In-The-Middle attacks.
Checking github.com rate limit: FAIL
[ComposerDownloaderTransportException] The "https://api.github.com
/rate_limit" file could not be downloaded: Unable to find the wrapper
"https" - did you forget to enable it when you configured PHP?
failed to open stream: No such file or directory
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: <I removed the public keys here and below>
Dev Public Key Fingerprint:
OK
Checking composer version: Warning: Accessing getcomposer.org over http which is an insecure protocol.
OK
Composer version: 2.0.14
PHP version: 7.4.16
PHP binary path: /usr/local/bin/php
OpenSSL version: missing
cURL version: missing, using php streams fallback, which reduces performance
zip: extension not loaded, unzip present
To answer some of the points in the errors:
-
Openssl IS installed, using snaps, in non standard locations. From the browser the php function
loaded_extension('openssl')
returns true. Based on advice from https://www.php.net/manual/en/imap.requirements.php I made a symlink from where I found the openssl file as:
$ ln -s /usr/bin/openssl /usr/local/ssl
and similarly$ ln -s /usr/local/ssl/include /usr/include/openssl
. -
Based on advice from Luke Welling’s books I installed JPEG, PNG, IMAP and zlib libraries.
-
To address the php.ini “missing” issue, from the terminal I got:
john@john-desktop:~$ php7.4 -i | grep -i openssl
Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried:
/usr/lib/php/20190902/openssl (/usr/lib/php/20190902/openssl: cannot open
shared object file: No such file or directory), /usr/lib/php/20190902
/openssl.so (/usr/lib/php/20190902/openssl.so: cannot open shared object
file: No such file or directory)) in Unknown on line 0
SSL Version => OpenSSL/1.1.1f
libSSH Version => libssh/0.9.3/openssl/zlib
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1f 31 Mar 2020
OpenSSL Header Version => OpenSSL 1.1.1f 31 Mar 2020
Openssl default config => /usr/lib/ssl/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
Native OpenSSL support => enabled
Perhaps my symlinks are wrong? Some configuration seems wrong but I am not sure how to fix it.
I do have php.ini files. For php7.4 the main one that phpinfo() shows is loading (in the browser) is in /etc/php/7.4/fpm/
. I have left this unaltered but added a phpcustomjl.ini
file (with priority 01) in /etc/php/7.4/mods-enabled/
which is symlinked by the system from /etc/php/7.4/fpm/conf.d/
. It shows up in phpinfo() from the browser among the Additional .ini files parsed. I learned to use $ sudo systemctl restart php7.4-fpm
after making changes to it, so that these changes take effect. The relevant lines from the .ini file are:
extension=zlib
;extension=/usr/lib/ssl
;extension=/usr/bin/openssl
extension=openssl
;extension=php_openssl
$ php7.4 --ini
shows that this file is loaded in the cli. It outputs:
Warning: PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/lib/php/20190902/openssl (/usr/lib/php/20190902/openssl: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/openssl.so (/usr/lib/php/20190902/openssl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Warning: Module 'curl' already loaded in Unknown on line 0
Configuration File (php.ini) Path: /etc/php/7.4/cli
Loaded Configuration File: /etc/php/7.4/cli/php.ini
Scan for additional .ini files in: /etc/php/7.4/cli/conf.d
Additional .ini files parsed: /etc/php/7.4/cli/conf.d/01-phpcustomjl.ini,
This shows that the custom ini file is being read from the cli, so some setting in it must be faulty perhaps?
- When I run
$ php -v
in the terminal I getPHP 7.4.16 (cli)
. In the browser when I want to enable php7.4 (as it is currently) I use a.htaccess
file in the web root, withSetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost/"
in a directive.
I hope I have enough details for someone to figure out the problem, or suggest any strategies. Until then I am stuck! Any help you can offer would be greatly appreciated. 🙂
John