{"id":210764,"date":"2014-02-05T21:28:02","date_gmt":"2014-02-05T17:28:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=210764"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=210764","title":{"rendered":"<span class=\"post_title\">PhpBrew. \u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0432\u0435\u0440\u0441\u0438\u0439 PHP. (+ \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 Ubuntu 13.10)<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u041b\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u21161<\/h4>\n<p>  PHP \u043d\u0435\u0443\u043a\u043b\u043e\u043d\u043d\u043e \u0432\u0437\u0440\u043e\u0441\u043b\u0435\u0435\u0442 \u0438 \u043e\u0431\u0437\u0430\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0443\u0436\u0435 \u043d\u0443 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u0430\u043a \u0443 \u0441\u0442\u0430\u0440\u0448\u0438\u0445 (\u0445\u043e\u0442\u044f \u0441\u043b\u043e\u0432\u043e \u00ab\u043c\u043b\u0430\u0434\u0448\u0438\u0445\u00bb \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u043b\u0443\u0447\u0448\u0435).<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043a\u043b\u044e\u0447\u0435 \u0441\u0442\u043e\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u043a\u0430\u043a \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 composer, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440, \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 namespace&#8217;\u043e\u0432 \u0438 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0439.<\/p>\n<p>  \u0421\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 OS \u0443 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f Ubuntu (13.10). \u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 PHP \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 (\u0432\u0438\u0434\u0438\u043c\u043e \u0432\u0435\u0437\u043b\u043e), \u043d\u043e \u0442\u0443\u0442 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u0438\u0448\u0435\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 5.3 (\u0430 \u0442\u043e \u0438 5.2, \u043d\u043e \u043f\u043e\u0434 5.3 \u0437\u0430\u0432\u0435\u043b\u0441\u044f), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 5.5.3, \u0447\u0442\u043e \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u0438 \u044f \u0431\u044b\u043b\u043e \u043e\u043f\u0435\u0447\u0430\u043b\u0438\u043b\u0441\u044f (\u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043e\u043f\u044b\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e PHP \u043d\u0430 Ubuntu, \u0445\u043e\u0442\u044c \u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439, \u043d\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0433\u0440\u0443\u0441\u0442\u043d\u044b\u0439), \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b ruby \u0438 rvm.io \u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043a\u043e\u043b\u043b\u0435\u0433\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b \u043e\u0437\u0432\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0432\u0435\u0449\u044c.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0446 \u043b\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e. \u041a \u0444\u0430\u043a\u0442\u0430\u043c. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u2013 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <a href=\"https:\/\/github.com\/c9s\/phpbrew\">phpbrew<\/a> \u2013 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 PHP \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. \u0411\u044b\u0441\u0442\u0440\u043e, \u043f\u0440\u043e\u0441\u0442\u043e, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u043d\u0430\u0440\u043e\u0434\u043d\u044b\u043c\u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. (\u043d\u0435 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d, \u043d\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430, \u043d\u043e \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435).<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0441\u0442\u0435\u043a\u0430\u0442\u044c\u0441\u044f \u043c\u044b\u0441\u043b\u044c\u044e \u043f\u043e \u0434\u0440\u0435\u0432\u0443 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 (\u043f\u043b\u043e\u0445\u043e) \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0434\u0435\u0440\u0436\u043a\u0443 \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e <a href=\"https:\/\/github.com\/c9s\/phpbrew\/blob\/master\/README.md\">readme<\/a>:<\/p>\n<p>  <b>phpbrew<\/b> \u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 PHP \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>  \u0422\u0430\u043a\u0436\u0435 phpbrew \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u2013 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0430\u043d\u0434 use \u0438 switch \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 PHP.<\/p>\n<p>  \u0427\u0442\u043e \u0443\u043c\u0435\u0435\u0442 phpbrew:  <\/p>\n<ul>\n<li>\u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c PHP \u0441 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043c\u0438 (PDO, mysql, sqlite, debug\u2026 \u0438 \u0442.\u0434.)<\/li>\n<li>\u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 \u0434\u043b\u044f Apache (\u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e)<\/li>\n<li>\u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c PHP \u043f\u0440\u044f\u043c\u043e \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u2013 \u043d\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c root \u043f\u0440\u0430\u0432\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b<i> (\u0442\u0443\u0442 \u0441 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u043c\u0438 \u2013 \u043f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430, \u0441\u043c. \u043d\u0438\u0436\u0435)<\/i><\/li>\n<li>\u041b\u0435\u0433\u043a\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0438 PHP \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434, \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 bash\/zsh <\/li>\n<li>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0444\u0438\u0447\u0438 <i>(\u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f \u043d\u0435 \u043f\u043e\u043d\u044f\u043b \u043e \u0447\u0435\u043c \u044d\u0442\u043e \u2014 \u043f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430)<\/i><\/li>\n<li>\u041b\u0435\u0433\u043a\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 environment<\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u0439 PHP \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443<\/li>\n<li>\u0418\u0442\u0430\u043a, \u043a\u043e\u0440\u043e\u0442\u043a\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043f\u043e\u0434 Ubuntu 13.10 (\u0425\u043e\u0442\u044f \u0432 readme \u0432\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0435\u043f\u043e\u0441\u0442) \u0441 \u043e\u0431\u0437\u043e\u0440\u043e\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u0435\u0439.<\/li>\n<\/ul>\n<p>  C\u0442\u043e\u0438\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0447\u0442\u043e \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u043e\u043d \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 <b>nginx<\/b>.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h4>\n<p>  1) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0443 \u0441 <a href=\"https:\/\/github.com\/c9s\/phpbrew\/wiki\/Requirement\">requirements<\/a><\/p>\n<pre><code class=\"bash\"># apt-get build-dep php5 # apt-get install -y php5 php5-dev php-pear autoconf automake curl build-essential libxslt1-dev re2c libxml2 libxml2-dev php5-cli bison libbz2-dev libreadline-dev # apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev # libjpeg8-dev libjpeg8  libgd-dev libgd3 libxpm4 # apt-get install -y libssl-dev openssl # apt-get install -y gettext libgettextpo-dev libgettextpo0 # apt-get install -y libicu48 libicu-dev # apt-get install -y libmhash-dev libmhash2 # apt-get install -y libmcrypt-dev libmcrypt4 # apt-get install -y mysql-server mysql-client libmysqlclient-dev libmysqld-dev <\/code><\/pre>\n<p>  \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0430\u043c \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0412\u0421\u0415 \u044d\u0442\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u0447\u0438\u0441\u0442\u043e\u0433\u043e PHP \u043d\u0430\u0431\u043e\u0440, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f PHP&#8217;\u0448\u043e\u0433\u043e configure, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c.<\/p>\n<p>  2) \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e <b>phpbrew<\/b>, \u0432\u0441\u0435 \u043f\u043e \u0442\u043e\u0439 \u0436\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/p>\n<pre><code class=\"bash\">$ cd \/tmp\/ $ curl -O https:\/\/raw.github.com\/c9s\/phpbrew\/master\/phpbrew $ chmod +x phpbrew $ sudo cp phpbrew \/usr\/bin\/phpbrew <\/code><\/pre>\n<p>  3) \u041f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043f\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/p>\n<pre><code class=\"bash\">$ phpbrew init<\/code><\/pre>\n<p>  4) \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 .bashrc (\u0438\u043b\u0438 .zhrc)<\/p>\n<pre><code class=\"bash\">source ~\/.phpbrew\/bashrc<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0438 \u0441\u043d\u043e\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c (\u043d\u0443 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c logout\/login, \u044d\u0442\u043e \u043f\u043e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438) \u0447\u0442\u043e\u0431\u044b \u043d\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 bashrc \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c. \u0418\u043b\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 <\/p>\n<pre><code class=\"bash\">$ source ~\/.phpbrew\/bashrc<\/code><\/pre>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/h4>\n<p>  \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c readme. \u0418 \u0447\u0430\u0441\u0442\u044c \u0435\u0435 \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0433\u0430\u0439\u0434\u0435 <a href=\"https:\/\/github.com\/c9s\/phpbrew\/wiki\/Troubleshooting\">troubleshooting<\/a>.<\/p>\n<pre><code class=\"bash\">$ phpbrew known<\/code><\/pre>\n<p>  \u041f\u043e\u043a\u0430\u0436\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 (\u0435\u0441\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0441\u0442\u0430\u0440\u0448\u0435 \u2013 \u0434\u043b\u044f \u043d\u0438\u0445 \u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043b\u044e\u0447 \u2013old)<\/p>\n<pre><code class=\"bash\">$ phpbrew variants  <\/code><\/pre>\n<p>  \u041f\u043e\u043a\u0430\u0436\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 PHP. (\u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 PHP \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f)<br \/>  phpbrew install [version] [variants] \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 PHP \u043d\u0443\u0436\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f\u043c\u0438. \u0412\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b, \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u201c+\u201d. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<pre><code class=\"bash\">$ phpbrew install 5.3.28 +default <\/code><\/pre>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442 \u0438 \u0441\u043e\u0431\u0435\u0440\u0435\u0442 PHP 5.3.28 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 (\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 zip, json, mbstring \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e-\u0443\u0442\u0438\u043b\u0438\u0442\u0430\u0440\u043d\u043e\u0435)<\/p>\n<pre><code class=\"bash\">$ phpbrew install 5.3.28 +default +dbs +icu +intl <\/code><\/pre>\n<p>  <em>* \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e (\u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0442\u0430\u043a \u0443 \u0432\u0430\u0441 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0431\u0435\u0440\u0435\u0442\u0441\u044f, \u0441\u043c. \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"#Troubleshooting\">Troubleshooting<\/a> \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/em><\/p>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442 \u0438 \u0441\u043e\u0431\u0435\u0440\u0435\u0442 PHP 5.3.28 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441 icu \u0438 intl (intl \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043d\u0435 \u0441\u043e\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0431\u0435\u0437 ICU, \u0430 \u0431\u0435\u0437 intl \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f PHP 5.3 \u043d\u0430 Ubuntu)<\/p>\n<h5>\u0422\u0443\u0442 \u043b\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u21162, \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 root:<\/h5>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f apache2 \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 phpbrew install \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <b>+apxs2<\/b>. \u041d\u043e. <br \/>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e Apache \u0438 \u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0435 \u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u0445, \u0430 \u043f\u043e\u0441\u0435\u043c\u0443 phpbrew \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u0432\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0438\u043a\u0443\u0434\u0430 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0438 \u0443\u043f\u0430\u0434\u0435\u0442 \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e.<\/p>\n<p>  Workaround&#8217;\u0430 \u0434\u0432\u0430 \u2013 \u043e\u0431\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u044b \u0430\u0432\u0442\u043e\u0440\u043e\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <a href=\"https:\/\/github.com\/c9s\/phpbrew\/wiki\/Cookbook\">coockbook<\/a> \u0438 \u043e\u0431\u0430 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f:<br \/>  1) \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c phpbrew \u0438 \u0432\u0441\u0435 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0448\u0442\u0443\u043a\u0438 \u043d\u0435 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0430 system-wide (\u0432\u0441\u0435 \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 root) \u2013 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u043a\u0430\u043a-\u0442\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0442 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d \u0432 coockbook.<br \/>  2) \u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438.\u041f\u043e\u0442\u043e\u043c \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u041d\u0443 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043a-\u0442\u043e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0414\u043b\u044f Ubuntu 13.10 \u0438 apache 2.4.6 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \/usr\/lib\/apache2\/modules\/ \u0438 \/etc\/apache2\/mods-available\/<\/p>\n<pre><code class=\"bash\"># chmod a+w \/usr\/lib\/apache2\/modules\/ # chmod a+w \/etc\/apache2\/mods-available\/ <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440 \u0442\u0430\u043a\u0438 \u0441\u0442\u0430\u0432\u0438\u043c PHP 5.3.28 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c apache, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441 icu \u0438 intl:<\/p>\n<pre><code class=\"bash\">$ phpbrew install 5.3.28 +default +dbs +apxs2  +icu +intl  <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<pre><code class=\"bash\">$ php -v  PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:24:35) $ phpbrew use php-5.3.28  $ php -v  PHP 5.3.28 (cli) (built: Jan 29 2014 00:55:42)  <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c apache2 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0435\u0433\u043e:<\/p>\n<pre><code class=\"bash\"># service apache2 restart <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a55\/647\/368\/a5564736854f4c9ff97cabdad1779fae.png\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0449\u0435 \u043e\u0434\u043d\u0443 \u0432\u0435\u0440\u0441\u0438\u044e \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c:<\/p>\n<pre><code class=\"bash\">$ phpbrew install 5.5.8 +default +apxs2 +dbs +icu +intl  $ phpbrew use php-5.5.8  $ php -v  PHP 5.5.8 (cli) (built: Jan 29 2014 01:53:33) <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c apache2 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/d3b\/941\/7e5\/d3b9417e58f80f2c5dc4d7a7deb024bb.png\"\/><\/p>\n<p>  \u0412\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0431\u0440\u0430\u0442\u044c \u0445\u0432\u043e\u0441\u0442\u044b. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u044b \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c apache \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0432\u043b\u0430\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u043c\u0438 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 root&#8217;\u0443 (\u043d\u0443 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0432\u044b\u0431\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0438\u0437 \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430):<\/p>\n<pre><code class=\"bash\"># chmod a-w \/usr\/lib\/apache2\/modules\/ # chmod a-w \/etc\/apache2\/mods-available\/ # chown root:root \/usr\/lib\/apache2\/modules\/libphp5.* <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439<\/h4>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u043e\u043c\u0435\u043d\u0442 \u2014 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439. \u0412\u0441\u0435 \u043f\u0440\u043e\u0449\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u2014 phpbrew \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0441 PEAR.<br \/>  \u041f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  $ phpbrew ext install [extension_name]<br \/>  \u0418 \u0434\u0430\u043b\u044c\u0448\u0435 phpbrew \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441\u0430\u043c. \u0421\u043a\u0430\u0447\u0430\u0435\u0442 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u0441\u043e\u0431\u0435\u0440\u0435\u0442 \u0435\u0433\u043e \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0434\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 php. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"bash\">$ phpbrew ext install apc <\/code><\/pre>\n<p>  \u0438\u043b\u0438:<\/p>\n<pre><code class=\"bash\">$ phpbrew etx install xdebug <\/code><\/pre>\n<p>  <\/p>\n<h5>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0439<\/h5>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0434\u0430\u043b\u0435\u0435, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e CLI \u2013 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c phpbrew use [version] (\u0438\u043b\u0438 phpbrew switch [version]), \u0435\u0441\u043b\u0438 \u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u043b\u044f apache2 \u2013 \u0438\u0449\u0435\u043c \u0433\u0434\u0435 \u0443 apache \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f (\u0432 \u0441\u043b\u0443\u0447\u0430\u0435 Apache 2.4.6 \u0438 Ubuntu 13.10 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \/etc\/apache2\/mods-available\/php5.load (\u0438\u043b\u0438 \u0441\u0438\u043c\u043b\u0438\u043d\u043a \u0432 mods-enabled), \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043b\u044e\u0431\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u043c \u0438 \u0432 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440):<\/p>\n<pre><code class=\"bash\">LoadModule php5_module        \/usr\/lib\/apache2\/modules\/libphp5.5.8.so <\/code><\/pre>\n<p>  \u043c\u0435\u043d\u044f\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u043d\u0430 \u043d\u0443\u0436\u043d\u0443\u044e \u043d\u0430\u043c (\u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440)<\/p>\n<pre><code class=\"bash\">LoadModule php5_module        \/usr\/lib\/apache2\/modules\/libphp5.3.28.so <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c apache \u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a55\/647\/368\/a5564736854f4c9ff97cabdad1779fae.png\"\/><br \/>  <em>(\u0434\u0430, \u0432\u044b \u043f\u0440\u0430\u0432\u044b, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044d\u0442\u043e\u0442 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442, \u0447\u0442\u043e \u0438 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u043d \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.)<\/em><\/p>\n<h4>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b:<\/h4>\n<p>  \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0435\u0449\u0435 (\u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c) <a href=\"https:\/\/github.com\/phpenv\/phpenv\">phpenv<\/a> \u0438 <a href=\"http:\/\/wilmoore.github.io\/php-version\/\">php-version<\/a>. \u0421 \u043d\u0438\u043c\u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e (\u0431\u0443\u0434\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442 \u0442\u0430\u043a\u0430\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c)<\/p>\n<h4>Troubleshooting<\/h4>\n<p><a name=\"Troubleshooting\"><\/a><br \/>  \u0412 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u0432\u0441\u0435 \u0435\u0441\u0442\u044c \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0433\u0430\u0439\u0434\u0435. \u0414\u0432\u0430 \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u043b\u0438\u0447\u043d\u043e:<\/p>\n<p>  1) \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 config \u0436\u0430\u043b\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 libpcre.(a|so) \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043f\u043e\u0434 \u0442\u0430\u043a\u0438\u043c \u043d\u0435\u0431\u043b\u0430\u0433\u043e\u0432\u0438\u0434\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0433\u043e\u043c.<\/p>\n<p>  \u042d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 phpbrew, \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0441\u0442\u044b\u043a\u0435 ubuntu \u0438 php \u2014 php \u0438 \u043d\u0435 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u043e \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u044f\u043c, Ubuntu, \u0437\u0430\u0447\u0435\u043c-\u0442\u043e \u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u0445 \u0432 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>  \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e phpbrew \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u044e\u0447\u0430 \u2014 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 make \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0412\u0430\u043c \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u044d\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 phpbrew install.<\/p>\n<p>  \u0414\u043b\u044f Ubuntu 13.10 (\u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 Debian \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432) \u0440\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 php \u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">$ phpbrew install 5.3.28 +default +dbs +apxs2  +icu +intl --  --with-libdir=lib\/x86_64-linux-gnulibpcre.a <\/code><\/pre>\n<p>  2) \u041f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 php 5.3 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u0438\u0434\u0430:<\/p>\n<pre><code class=\"bash\">libtool: unrecognized option `-export-dynamic'  Try `libtool --help' for more information. <\/code><\/pre>\n<p>  \u0411\u0430\u0433 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f 5.3. \u041f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a phpbrew install \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b &quot;+icu +intl&quot; (\u043a\u0430\u043a \u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0437\u0434\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438).<\/p>\n<p>  \u0415\u0449\u0435 \u0440\u0430\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438:  <\/p>\n<ol>\n<li>phpbrew: <a href=\"https:\/\/github.com\/c9s\/phpbrew\">github.com\/c9s\/phpbrew<\/a><\/li>\n<li>Readme: <a href=\"https:\/\/github.com\/c9s\/phpbrew\/blob\/master\/README.md\">github.com\/c9s\/phpbrew\/blob\/master\/README.md<\/a><\/li>\n<li>Troubleshooting: <a href=\"https:\/\/github.com\/c9s\/phpbrew\/wiki\/Troubleshooting\">github.com\/c9s\/phpbrew\/wiki\/Troubleshooting<\/a><\/li>\n<li>Coockbook: <a href=\"https:\/\/github.com\/c9s\/phpbrew\/wiki\/Cookbook\">github.com\/c9s\/phpbrew\/wiki\/Cookbook<\/a><\/li>\n<\/ol>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/210764\/\"> http:\/\/habrahabr.ru\/post\/210764\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u041b\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u21161<\/h4>\n<p>  PHP \u043d\u0435\u0443\u043a\u043b\u043e\u043d\u043d\u043e \u0432\u0437\u0440\u043e\u0441\u043b\u0435\u0435\u0442 \u0438 \u043e\u0431\u0437\u0430\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u0443\u0436\u0435 \u043d\u0443 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u0430\u043a \u0443 \u0441\u0442\u0430\u0440\u0448\u0438\u0445 (\u0445\u043e\u0442\u044f \u0441\u043b\u043e\u0432\u043e \u00ab\u043c\u043b\u0430\u0434\u0448\u0438\u0445\u00bb \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u043b\u0443\u0447\u0448\u0435).<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043a\u043b\u044e\u0447\u0435 \u0441\u0442\u043e\u0438\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u043a\u0430\u043a \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 composer, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440, \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0435 namespace&#8217;\u043e\u0432 \u0438 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0439.<\/p>\n<p>  \u0421\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 OS \u0443 \u043c\u0435\u043d\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f Ubuntu (13.10). \u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 PHP \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 (\u0432\u0438\u0434\u0438\u043c\u043e \u0432\u0435\u0437\u043b\u043e), \u043d\u043e \u0442\u0443\u0442 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u0438\u0448\u0435\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 5.3 (\u0430 \u0442\u043e \u0438 5.2, \u043d\u043e \u043f\u043e\u0434 5.3 \u0437\u0430\u0432\u0435\u043b\u0441\u044f), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 5.5.3, \u0447\u0442\u043e \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u0438 \u044f \u0431\u044b\u043b\u043e \u043e\u043f\u0435\u0447\u0430\u043b\u0438\u043b\u0441\u044f (\u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043e\u043f\u044b\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e PHP \u043d\u0430 Ubuntu, \u0445\u043e\u0442\u044c \u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439, \u043d\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0433\u0440\u0443\u0441\u0442\u043d\u044b\u0439), \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b ruby \u0438 rvm.io \u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043a\u043e\u043b\u043b\u0435\u0433\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u043b \u043e\u0437\u0432\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0432\u0435\u0449\u044c.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0446 \u043b\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e. \u041a \u0444\u0430\u043a\u0442\u0430\u043c. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u2013 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <a href=\"https:\/\/github.com\/c9s\/phpbrew\">phpbrew<\/a> \u2013 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 PHP \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435. \u0411\u044b\u0441\u0442\u0440\u043e, \u043f\u0440\u043e\u0441\u0442\u043e, \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0437 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u043d\u0430\u0440\u043e\u0434\u043d\u044b\u043c\u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. (\u043d\u0435 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d, \u043d\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430, \u043d\u043e \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-210764","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210764"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/210764\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}