{"id":167515,"date":"2013-01-29T18:39:05","date_gmt":"2013-01-29T14:39:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=167515"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=167515","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Redmine 2.2.2 + Passenger \u043d\u0430 FreeBsd 9.1<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430 \u0432\u0435\u043b\u0438\u043a\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0430\u0439\u0442\u0438 \u043d\u0443\u0436\u043d\u0443\u044e \u043c\u043d\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0430 \u043e\u0444\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 redmine \u043c\u043d\u0435 \u0433\u043e\u0440\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u043b \u00abNot found\u00bb. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0442\u0430\u043a\u0438 \u0441\u043c\u043e\u0433 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0438 \u0434\u0430\u0436\u0435 \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u044d\u0442\u043e \u0447\u0443\u0434\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438. \u041c\u0430\u043d\u0443\u0430\u043b \u043f\u0438\u0441\u0430\u043b \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043c\u043e\u0438 \u043f\u043e\u0438\u0441\u043a\u0438 \u0440\u0435\u0448\u0438\u043b \u0442\u0430\u043a\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>1. \u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 \u043c\u0430\u043b\u043e\u0433\u043e<\/h5>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Ruby \u0438 gem:  <\/p>\n<pre><code class=\"bash\">cd \/usr\/ports\/lang\/ruby18\/ && make install clean cd \/usr\/ports\/devel\/ruby-gems && make install clean <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c \u0442\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e.  <\/p>\n<h5>2. \u041f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043c Redmine<\/h5>\n<p>  \u0411\u044b\u043b\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c 2.0, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0432\u043d\u044f\u0442\u043d\u044b\u0435 \u043c\u0430\u043d\u044b\u2026 \u043d\u043e \u043d\u0435\u0442.<br \/>  \u0422\u044f\u043d\u0435\u043c \u0447\u0442\u043e \u043f\u043e\u0441\u0432\u0435\u0436\u0435\u0435:  <\/p>\n<pre><code class=\"bash\">cd \/www svn co http:\/\/svn.redmine.org\/redmine\/branches\/2.2-stable redmine <\/code><\/pre>\n<p>  <\/p>\n<h5>3. \u0422\u0430\u043a\u0436\u0435 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 bundler<\/h5>\n<p>  <\/p>\n<pre><code class=\"bash\">gem install bundler <\/code><\/pre>\n<p>  \u0421\u0430\u043c\u043e\u0435 \u043b\u0435\u0433\u043a\u043e\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.  <\/p>\n<h5>4. \u041f\u043e\u043f\u044b\u0442\u043a\u0438 \u21161-4<\/h5>\n<p>  <\/p>\n<pre><code class=\"bash\">cd \/www\/redmine\/ bundle install --without development test postgresql sqlite <\/code><\/pre>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0434\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443. \u0425\u043e\u0442\u044f \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u044f \u0442\u0430\u043a\u043e\u0439 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u0447\u0438\u043a.<br \/>  \u0422\u043e\u0447\u043d\u043e \u043a\u0430\u043a\u0443\u044e \u043d\u0435 \u0441\u043a\u0430\u0436\u0443 \u0438 \u0443 \u043c\u0435\u043d\u044f \u0438\u0445 \u043c\u043d\u043e\u0433\u043e \u0431\u044b\u043b\u043e, \u043d\u043e \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0438 \u0437\u0430 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u044f \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b \u0434\u0432\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:  <\/p>\n<pre><code class=\"bash\">cd \/usr\/ports\/graphics\/ImageMagick && make install clean cd \/usr\/ports\/ftp\/curl && make install clean <\/code><\/pre>\n<p>  <b>\u0412\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b<\/b>, \u0442\u043e \u044f \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0432\u043e\u0432\u0440\u0435\u043c\u044f \u043e\u0434\u0443\u043c\u0430\u043b\u0441\u044f.  <\/p>\n<h5>5.httpd.conf \u0434\u043b\u044f Apache<\/h5>\n<p>  \u041c\u0430\u043d\u044b \u043f\u043e apache \u0438 mysql \u043d\u0435 \u043f\u0438\u0448\u0443 \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043d\u0438\u043c\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e.<br \/>  \u0418\u043d\u0441\u0442\u0430\u043b\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0438<\/p>\n<pre><code class=\"bash\">gem install passenger passenger-install-apache2-module <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c httpd.conf \u0438 \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0438:  <\/p>\n<pre><code class=\"bash\">LoadModule passenger_module \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/passenger-3.0.19\/ext\/apache2\/mod_passenger.so PassengerRoot \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/passenger-3.0.19 PassengerRuby \/usr\/local\/bin\/ruby18 <\/code><\/pre>\n<p>  \u041d\u0435 \u0432\u0438\u0436\u0443 \u043f\u0440\u0438\u0447\u0438\u043d \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0442\u044c:  <\/p>\n<pre><code class=\"bash\">vi \/usr\/local\/etc\/apache22\/httpd.conf <\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 LoadModule \u0434\u043b\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b:  <\/p>\n<pre><code class=\"bash\">... LoadModule php5_module        libexec\/apache22\/libphp5.so LoadModule passenger_module \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/passenger-3.0.19\/ext\/apache2\/mod_passenger.so PassengerRoot \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/passenger-3.0.19 PassengerRuby \/usr\/local\/bin\/ruby18  &lt;IfModule !mpm_netware_module&gt; &lt;IfModule !mpm_winnt_module&gt; ... <\/code><\/pre>\n<p>  <\/p>\n<h5>6. \u041f\u0440\u0430\u0432\u0438\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0438\u044b\u0439 \u0445\u043e\u0441\u0442<\/h5>\n<p>  <\/p>\n<pre><code class=\"bash\">vi \/usr\/local\/etc\/apache22\/Includes\/jff <\/code><\/pre>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0432\u044b\u0437\u0432\u0430\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u043d\u044b\u0435 \u043c\u0430\u043d\u0443\u0430\u043b\u044b \u0442\u0440\u0430\u043a\u0442\u0443\u044e\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443.  <\/p>\n<pre><code class=\"bash\">&lt;VirtualHost *:80&gt;  DocumentRoot \/www\/ ... PassengerAppRoot \/www\/redmine RailsBaseURI \/redmine Alias \/redmine \/www\/redmine\/public &lt;Directory &quot;\/www\/redmine\/public&quot;&gt;   RailsEnv production   Options Indexes ExecCGI FollowSymLinks   AllowOverride all   Order allow,deny   Allow from all &lt;\/Directory&gt; ... <\/code><\/pre>\n<p>  <b>P.S.<\/b> \u041d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430 \u0437\u0432\u0430\u043d\u0438\u0435 \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f.  <\/p>\n<h5>7. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u044e\u0437\u0435\u0440\u0430 \u0438 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445<\/h5>\n<p>  <\/p>\n<pre><code class=\"bash\">mysql -uroot -p -e 'create database redmine character set utf8; grant all on redmine.* to redmine@localhost identified by &quot;passwd&quot;;flush privileges' ; <\/code><\/pre>\n<p>  <\/p>\n<h5>8. \u041a\u043e\u043d\u0444\u0438\u0433 db \u0434\u043b\u044f redmine<\/h5>\n<p>  <\/p>\n<pre><code class=\"bash\">mv \/www\/redmine\/config\/database.yml.example \/www\/redmine\/config\/database.yml vi \/www\/redmine\/config\/database.yml <\/code><\/pre>\n<p>  \u041c\u0435\u043d\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f production, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u043c \u043d\u0435 \u043d\u0430\u0434\u043e:  <\/p>\n<pre><code class=\"bash\">production:   adapter: mysql   database: redmine   host: localhost   username: redmine   password: &quot;*************&quot;   encoding: utf8 <\/code><\/pre>\n<p>  \u0414\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c.<br \/>  \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u044e\u0447\u0438:  <\/p>\n<pre><code class=\"bash\">rake generate_secret_token <\/code><\/pre>\n<p>  \u041c\u0438\u0433\u0440\u0438\u0440\u0443\u0435\u043c \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b:  <\/p>\n<pre><code class=\"bash\">rake db:migrate rake redmine:load_default_data <\/code><\/pre>\n<p>  \u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c Apache:  <\/p>\n<pre><code class=\"bash\">\/usr\/local\/etc\/rc.d\/apache22 restart <\/code><\/pre>\n<p>  <\/p>\n<h5>9. \u041a\u043e\u043d\u0435\u0446?<\/h5>\n<p>  \u041d\u0443 \u0443 \u043c\u0435\u043d\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u043b\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u044f \u0437\u0430\u0448\u0435\u043b \u0432 \u0441\u0432\u043e\u0439 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u043b\u0441\u044f \u043f\u043e\u0434 admin\/admin:  <\/p>\n<pre><code class=\"bash\">http:\/\/example.com\/redmine <\/code><\/pre>\n<p>  <b>P.S <\/b>\u0411\u043e\u043b\u0435\u0435 \u0438\u0437\u044f\u0449\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f \t\t\t \t\t\t<\/p>\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\/167515\/\"> http:\/\/habrahabr.ru\/post\/167515\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430 \u0432\u0435\u043b\u0438\u043a\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043d\u0430\u0439\u0442\u0438 \u043d\u0443\u0436\u043d\u0443\u044e \u043c\u043d\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0430 \u043e\u0444\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 redmine \u043c\u043d\u0435 \u0433\u043e\u0440\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u043b \u00abNot found\u00bb. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0442\u0430\u043a\u0438 \u0441\u043c\u043e\u0433 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u0438 \u0434\u0430\u0436\u0435 \u0437\u0430\u0439\u0442\u0438 \u043d\u0430 \u044d\u0442\u043e \u0447\u0443\u0434\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438. \u041c\u0430\u043d\u0443\u0430\u043b \u043f\u0438\u0441\u0430\u043b \u043f\u043e\u0434 \u0441\u0435\u0431\u044f, \u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043c\u043e\u0438 \u043f\u043e\u0438\u0441\u043a\u0438 \u0440\u0435\u0448\u0438\u043b \u0442\u0430\u043a\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c.<\/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-167515","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/167515","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=167515"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/167515\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=167515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=167515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=167515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}