กำลังจะทำการติดตั้ง package ผ่าน composer แต่ติดปัญหาเกี่ยวกับ SSL ผ่าน curl นี้เข้า
[ball@myserver mycode]# composer install Loading composer repositories with package information [RuntimeException] Failed to clone https://github.com/gaspaio/net_gearman.git, could not read pac error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify fai fatal: HTTP request failed install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-po|--optimize-autoloader] [packages1] ... [packagesN]
ให้ทำการแก้ไขดังนี้ครับ ใส่ “env GIT_SSL_NO_VERIFY=true” ไว้หน้า command composer
เช่น
[ball@myserver mycode]# env GIT_SSL_NO_VERIFY=true composer install
[ball@myserver mycode]# env GIT_SSL_NO_VERIFY=true composer install Loading composer repositories with package information Installing dependencies (including require-dev) - Installing alptis/net-gearman (dev-master b8a46c8) Cloning b8a46c827175dcb69330219aa492f21a41bf6690 - Installing twig/twig (v1.15.0) Downloading: 100% - Installing symfony/routing (v2.3.9) Downloading: 100% - Installing symfony/event-dispatcher (v2.1.13) Downloading: 100% - Installing symfony/http-foundation (v2.1.13) Downloading: 100% - Installing symfony/http-kernel (v2.1.13) Downloading: 100% - Installing pimple/pimple (v1.1.1) Downloading: 100% - Installing silex/silex (1.0.x-dev ddcec07) Cloning ddcec0796ed78750b5b3091b4a946913a88ba2f4 - Installing symfony/twig-bridge (v2.1.13) Downloading: 100% - Installing monolog/monolog (1.1.0) Downloading: 100% - Installing symfony/monolog-bridge (v2.1.13) Downloading: 100% - Installing symfony/yaml (v2.1.13) Downloading: 100% symfony/routing suggests installing symfony/config () symfony/routing suggests installing doctrine/common () symfony/event-dispatcher suggests installing symfony/dependency-injection (2.1.* symfony/http-kernel suggests installing symfony/browser-kit (2.1.*) symfony/http-kernel suggests installing symfony/class-loader (2.1.*) symfony/http-kernel suggests installing symfony/config (2.1.*) symfony/http-kernel suggests installing symfony/console (2.1.*) symfony/http-kernel suggests installing symfony/dependency-injection (2.1.*) symfony/http-kernel suggests installing symfony/finder (2.1.*) silex/silex suggests installing symfony/browser-kit (>=2.1,<2.4-dev) silex/silex suggests installing symfony/css-selector (>=2.1,<2.4-dev) silex/silex suggests installing symfony/dom-crawler (>=2.1,<2.4-dev) silex/silex suggests installing symfony/form (>= 2.1.4,<2.4-dev) symfony/twig-bridge suggests installing symfony/form (2.1.*) symfony/twig-bridge suggests installing symfony/templating (2.1.*) symfony/twig-bridge suggests installing symfony/translation (2.1.*) symfony/twig-bridge suggests installing symfony/security (2.1.*) monolog/monolog suggests installing mlehner/gelf-php (Allow sending log messages Writing lock file Generating autoload files [ball@myserver mycode]#