質問編集履歴
1
インストール手順を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -155,3 +155,329 @@
|
|
155
155
|
Phusion Passenger 6.0.4
|
156
156
|
|
157
157
|
Redmine 4.1.0
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
### 追記
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
分かる限りでインストールした手順を説明致します。
|
166
|
+
|
167
|
+
基本的にRedmine.JP Blogにある手順を行いましたが、rubyはすでにインストールされていたものを使用しました(詳細不明)。
|
168
|
+
|
169
|
+
rubyのパスからすると、rbenvでインストールされているようです。
|
170
|
+
|
171
|
+
なお、SELinuxは無効化してあります。
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
```
|
176
|
+
|
177
|
+
$ sudo yum -y groupinstall "Development Tools"
|
178
|
+
|
179
|
+
$ sudo yum -y install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel libffi-devel
|
180
|
+
|
181
|
+
$ sudo yum -y install httpd-devel
|
182
|
+
|
183
|
+
$ sudo yum -y install ImageMagick ImageMagick-devel ipa-pgothic-fonts
|
184
|
+
|
185
|
+
$ gem install bundler
|
186
|
+
|
187
|
+
$ svn co https://svn.redmine.org/redmine/branches/4.1-stable/ /var/www/redmine
|
188
|
+
|
189
|
+
$ cd /var/www/redmine
|
190
|
+
|
191
|
+
$ bundle install --without development test --path vendor/bundle
|
192
|
+
|
193
|
+
```
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
passenger-install-apache2-moduleでいくつかのパッケージがインストールできませんでした。
|
198
|
+
|
199
|
+
そのため、sudoをつけroot権限で実行したところ、正常?に終了しました。
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
```
|
204
|
+
|
205
|
+
$ passenger-install-apache2-module --auto --languages ruby
|
206
|
+
|
207
|
+
Welcome to the Phusion Passenger Apache 2 module installer, v6.0.4.
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
This installer will guide you through the entire installation process. It
|
212
|
+
|
213
|
+
shouldn't take more than 3 minutes in total.
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
Here's what you can expect from the installation process:
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
1. The Apache 2 module will be installed for you.
|
222
|
+
|
223
|
+
2. You'll learn how to configure Apache.
|
224
|
+
|
225
|
+
3. You'll learn how to deploy a Ruby on Rails application.
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
Don't worry if anything goes wrong. This installer will advise you on how to
|
230
|
+
|
231
|
+
solve any problems.
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
Press Enter to continue, or Ctrl-C to abort.
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
--------------------------------------------
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
Which languages are you interested in?
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
Override selection with --languages.
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
‣ ⬢ Ruby
|
252
|
+
|
253
|
+
⬡ Python
|
254
|
+
|
255
|
+
⬡ Node.js
|
256
|
+
|
257
|
+
⬡ Meteor
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
--------------------------------------------
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
Checking for required software...
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
Package apr-1 was not found in the pkg-config search path.
|
270
|
+
|
271
|
+
Perhaps you should add the directory containing `apr-1.pc'
|
272
|
+
|
273
|
+
to the PKG_CONFIG_PATH environment variable
|
274
|
+
|
275
|
+
No package 'apr-1' found
|
276
|
+
|
277
|
+
cannot open /httpd/build/config_vars.mk: そのようなファイルやディレクトリはありません at /usr/bin/apxs line 214.
|
278
|
+
|
279
|
+
Package apr-1 was not found in the pkg-config search path.
|
280
|
+
|
281
|
+
Perhaps you should add the directory containing `apr-1.pc'
|
282
|
+
|
283
|
+
to the PKG_CONFIG_PATH environment variable
|
284
|
+
|
285
|
+
No package 'apr-1' found
|
286
|
+
|
287
|
+
cannot open /httpd/build/config_vars.mk: そのようなファイルやディレクトリはありません at /usr/bin/apxs line 214.
|
288
|
+
|
289
|
+
Package apr-1 was not found in the pkg-config search path.
|
290
|
+
|
291
|
+
Perhaps you should add the directory containing `apr-1.pc'
|
292
|
+
|
293
|
+
to the PKG_CONFIG_PATH environment variable
|
294
|
+
|
295
|
+
No package 'apr-1' found
|
296
|
+
|
297
|
+
cannot open /httpd/build/config_vars.mk: そのようなファイルやディレクトリはありません at /usr/bin/apxs line 214.
|
298
|
+
|
299
|
+
Package apr-1 was not found in the pkg-config search path.
|
300
|
+
|
301
|
+
Perhaps you should add the directory containing `apr-1.pc'
|
302
|
+
|
303
|
+
to the PKG_CONFIG_PATH environment variable
|
304
|
+
|
305
|
+
No package 'apr-1' found
|
306
|
+
|
307
|
+
cannot open /httpd/build/config_vars.mk: そのようなファイルやディレクトリはありません at /usr/bin/apxs line 214.
|
308
|
+
|
309
|
+
* Checking for C compiler...
|
310
|
+
|
311
|
+
Found: yes
|
312
|
+
|
313
|
+
Location: /home/linuxbrew/.linuxbrew/bin/cc
|
314
|
+
|
315
|
+
* Checking for C++ compiler...
|
316
|
+
|
317
|
+
Found: yes
|
318
|
+
|
319
|
+
Location: /home/linuxbrew/.linuxbrew/bin/c++
|
320
|
+
|
321
|
+
* Checking for Curl development headers with SSL support...
|
322
|
+
|
323
|
+
Found: yes
|
324
|
+
|
325
|
+
curl-config location: /home/linuxbrew/.linuxbrew/bin/curl-config
|
326
|
+
|
327
|
+
Header location: /home/linuxbrew/.linuxbrew/Cellar/curl/7.69.1/include/curl/curl.h
|
328
|
+
|
329
|
+
Version: libcurl 7.69.1
|
330
|
+
|
331
|
+
Usable: yes
|
332
|
+
|
333
|
+
Supports SSL: yes
|
334
|
+
|
335
|
+
* Checking for Zlib development headers...
|
336
|
+
|
337
|
+
Found: yes
|
338
|
+
|
339
|
+
Location: /home/linuxbrew/.linuxbrew/include/zlib.h
|
340
|
+
|
341
|
+
* Checking for Apache 2...
|
342
|
+
|
343
|
+
Found: no
|
344
|
+
|
345
|
+
* Checking for Rake (associated with /opt/rbenv/versions/2.6.0/bin/ruby)...
|
346
|
+
|
347
|
+
Found: yes
|
348
|
+
|
349
|
+
Location: /opt/rbenv/versions/2.6.0/bin/ruby /opt/rbenv/versions/2.6.0/bin/rake
|
350
|
+
|
351
|
+
* Checking for OpenSSL support for Ruby...
|
352
|
+
|
353
|
+
Found: yes
|
354
|
+
|
355
|
+
* Checking for RubyGems...
|
356
|
+
|
357
|
+
Found: yes
|
358
|
+
|
359
|
+
* Checking for Ruby development headers...
|
360
|
+
|
361
|
+
Found: yes
|
362
|
+
|
363
|
+
Location: /opt/rbenv/versions/2.6.0/include/ruby-2.6.0/ruby.h
|
364
|
+
|
365
|
+
* Checking for rack...
|
366
|
+
|
367
|
+
Found: yes
|
368
|
+
|
369
|
+
* Checking for OpenSSL development headers...
|
370
|
+
|
371
|
+
Found: no
|
372
|
+
|
373
|
+
* Checking for Apache 2 development headers...
|
374
|
+
|
375
|
+
Found: yes
|
376
|
+
|
377
|
+
Location of apxs2: /usr/bin/apxs
|
378
|
+
|
379
|
+
* Checking for Apache Portable Runtime (APR) development headers...
|
380
|
+
|
381
|
+
Found: no
|
382
|
+
|
383
|
+
* Checking for Apache Portable Runtime Utility (APU) development headers...
|
384
|
+
|
385
|
+
Found: no
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
Some required software is not installed.
|
390
|
+
|
391
|
+
But don't worry, this installer will tell you how to install them.
|
392
|
+
|
393
|
+
Press Enter to continue, or Ctrl-C to abort.
|
394
|
+
|
395
|
+
--------------------------------------------
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
Installation instructions for required software
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
* To install Apache 2:
|
404
|
+
|
405
|
+
Please install it with yum install httpd
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
* To install OpenSSL development headers:
|
410
|
+
|
411
|
+
Please install it with yum install openssl-devel
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
* To install Apache Portable Runtime (APR) development headers:
|
416
|
+
|
417
|
+
Please install it with yum install apr-devel
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
* To install Apache Portable Runtime Utility (APU) development headers:
|
422
|
+
|
423
|
+
Please install it with yum install apr-util-devel
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
If the aforementioned instructions didn't solve your problem, then please take
|
428
|
+
|
429
|
+
a look at our documentation for troubleshooting tips:
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
https://www.phusionpassenger.com/library/install/apache/
|
434
|
+
|
435
|
+
https://www.phusionpassenger.com/library/admin/apache/troubleshooting/
|
436
|
+
|
437
|
+
```
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
```
|
442
|
+
|
443
|
+
$ sudo passenger-install-apache2-module --auto --languages ruby
|
444
|
+
|
445
|
+
The Phusion Passenger Apache module is correctly installed :-)
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
Press Enter to learn how to deploy a web app on Apache.
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
--------------------------------------------
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
Deploying a web application
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
To learn how to deploy a web app on Passenger, please follow the deployment
|
462
|
+
|
463
|
+
guide:
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
https://www.phusionpassenger.com/library/deploy/apache/deploy/
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
Enjoy Phusion Passenger, a product of Phusion® (www.phusion.nl) :-)
|
472
|
+
|
473
|
+
https://www.phusionpassenger.com
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
Passenger® is a registered trademark of Phusion Holding B.V.
|
478
|
+
|
479
|
+
```
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
この後、RedmineとApacheの設定を書き換えました。
|