1- if you use AMPPS Software check (AMPPS installation directory)\PHP for existing file "cacert.pem" if dosen`t exist Make File "cacert.pem" in PHP directory of installation Path.
2- copy content of this file then Paste in "cacert.pem" in PHP directory.
now we need make path to file "cacert.pem":
3- open PHP.INI file ( if you use AMPPS you can right click on AMPPS icon on taskbar then Configuration then php )
4- search tag [curl] , then
5- under tag [curl] change line ";curl.cainfo =" to curl.cainfo ="{$path}\{$php_dir}\cacert.pem" (this is path of cacert.pem )
6- save file php.ini
7- you need to restart php
Regards,
HERY PURNAMA
No comments:
Post a Comment