{"id":2627,"date":"2015-02-08T23:58:32","date_gmt":"2015-02-08T15:58:32","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2627"},"modified":"2015-02-09T00:02:37","modified_gmt":"2015-02-08T16:02:37","slug":"php-5-6-apache-2-4-laravel","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2015\/02\/08\/php-5-6-apache-2-4-laravel\/","title":{"rendered":"php 5.6 + apache 2.4 + laravel"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u6700\u8fd1\u628a\u4e00\u4e9b\u539f\u672c\u8dd1 php 5.5 \u8ddf apache 2.2 \u7684\u7db2\u7ad9\u66f4\u65b0\u5230 php 5.6 + apache 2.4\uff0c\u9047\u5230\u4e86\u4e00\u4e9b\u72c0\u6cc1\uff0c\u9996\u5148\u662f composer \u5728\u57f7\u884c\u7684\u6642\u5019\u5674\u51fa\u9019\u6a23\u5b50\u7684\u932f\u8aa4\u8a0a\u606f\uff1a<\/p>\n<pre lang=\"file\">\r\nThe \"https:\/\/packagist.org\/packages.json\" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:\r\nerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed\r\n<\/pre>\n<p>\u5f88\u660e\u986f\u8ddf openssl \u6709\u95dc\uff0c\u7814\u7a76\u4e86\u4e00\u4e0b\u767c\u73fe php 5.6 \u5c0d\u9019\u500b\u8981\u6c42\u6bd4\u8f03\u56b4\u683c\u4e9b\uff0c\u9996\u5148\u8981\u627e\u5230\u9069\u5408\u7684 CA\uff0c\u7136\u5f8c\u5728 php.ini \u88e1\u9762\u628a openssl.cafile \u6307\u5230\u90a3\u500b CA \u7684\u6a94\u6848\u5c31\u53ef\u4ee5\u4e86\uff0c\u9810\u8a2d\u503c\u662f \/etc\/ssl\/cert.pem\uff0c\u4e0d\u60f3\u6539 php.ini \u7684\u8a71\u76f4\u63a5\u6539 CA \u6a94\u540d\u4e1f\u904e\u53bb\u4e5f\u53ef\u4ee5\uff0c\u5728 FreeBSD \u4e0b\u66f4\u7701\u4e8b\u7684\u65b9\u5f0f\u662f\u7528 ports \u5b89\u88dd security\/ca_root_nss \u7136\u5f8c\u628a ETCSYMLINK \u6253\u958b\uff0c\u88dd\u597d\u4e4b\u5f8c composer \u5c31\u4e0d\u6703\u518d\u62b1\u6028\u4e86<\/p>\n<p>\u7136\u5f8c laravel \u7684 mod_rewrite \u5931\u6548\uff0cindex.php\/auth\/login \u6c92\u8fa6\u6cd5\u8b8a\u6210 \/auth\/login\uff0c\u9996\u5148\u8981\u628a mod_rewrite \u6253\u958b\uff0c\u800c\u4e14 AllowOverride \u8981\u8a2d\u6210 All (\u9810\u8a2d\u662f none) \u624d\u6703\u6709\u6548\u679c\uff0c\u53ea\u958b mod_rewrite \u662f\u4e0d\u5920\u7684<\/p>\n<p>\u518d\u88dc\u5145\u4e00\u9ede composer (laravel \u7684 artisan \u4e5f\u662f) \u7684 ansi color \u6548\u679c\u57fa\u672c\u4e0a unix-like os \u90fd\u51fa\u5f97\u4f86\uff0c\u4e0d\u904e\u5982\u679c\u6c92\u88dd posix \u7684\u8a71\u5c31\u5f97\u6bcf\u6b21\u624b\u52d5 &#8211;ansi \u624d\u6703\u6709\u984f\u8272\uff0c\u70ba\u4e86\u65b9\u4fbf\u8d77\u898b sysutils\/php56-posix \u9084\u662f\u4e56\u4e56\u88dd\u4e00\u4e0b\u6bd4\u8f03\u597d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u6700\u8fd1\u628a\u4e00\u4e9b\u539f\u672c\u8dd1 php 5.5 \u8ddf apache 2.2 \u7684\u7db2\u7ad9\u66f4\u65b0\u5230 php 5.6 + apache 2.4\uff0c\u9047\u5230\u4e86\u4e00\u4e9b\u72c0\u6cc1\uff0c\u9996\u5148\u662f composer \u5728\u57f7\u884c\u7684\u6642\u5019\u5674\u51fa\u9019\u6a23\u5b50\u7684\u932f\u8aa4\u8a0a\u606f\uff1a The &#8220;https:\/\/packagist.org\/packages.json&#8221; file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed \u5f88\u660e\u986f\u8ddf openssl \u6709\u95dc\uff0c\u7814\u7a76\u4e86\u4e00\u4e0b\u767c\u73fe php&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[13,4591,4566,4262],"class_list":["post-2627","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-apache","tag-freebsd","tag-laravel","tag-php"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2627"}],"version-history":[{"count":7,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2627\/revisions"}],"predecessor-version":[{"id":2634,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2627\/revisions\/2634"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}