teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

忘れていたところ

2017/05/14 10:47

投稿

Helvetic
Helvetic

スコア6

title CHANGED
File without changes
body CHANGED
@@ -1,18 +1,42 @@
1
1
  ###Apache2で特定の.rbファイルが読み込めない
2
2
  ・Rubyでできたどどんとふという物をインストール
3
- →が、DodontoFServer.rb(動作確認ができる)は実行されず表示するためのindex.htmlと~~.swfしか表示されない (なぜか同じディレクトリにあるHello Rubyのテストコードは実行できる)
3
+ →が、DodontoFServer.rb(動作確認ができる)は実行されず(ブラウザで500が返される)表示するためのindex.htmlと~~.swfしか表示されない (なぜか同じディレクトリにあるHello Rubyのテストコードは実行できる)
4
4
 
5
5
  /var/www/html/でcgiが実行できるようにしています(使用する人物は限られているので)
6
6
 
7
+ エラーコードで探しても全く解決方法が見つかりません
7
8
 
9
+
8
10
  ###エラーメッセージ
11
+ パスを/usr/lib/rubyにしたとき
9
12
 
10
13
  ```
11
14
  [Sun May 14 19:10:57.158227 2017] [cgi:error] [pid 20846] [client 192.168.1.5:57979] AH01215: (13)Permission denied: exec of '/var/www/html/DodontoF_WebSet/public_html/DodontoF/DodontoFServer.rb' failed
12
15
  [Sun May 14 19:10:57.160919 2017] [cgi:error] [pid 20846] [client 192.168.1.5:57979] End of script output before headers: DodontoFServer.rb
13
16
 
14
17
  ```
18
+ パスを/usr/bin/rubyにしたとき
19
+ ```
20
+ [Sun May 14 19:42:54.755894 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: /usr/lib/ruby/2.1.0/logger.rb:592:in `initialize': Permission denied @ rb_sysopen - log.txt (Errno::EACCES)
21
+ [Sun May 14 19:42:54.756260 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/logger.rb:592:in `open'
22
+ [Sun May 14 19:42:54.756390 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/logger.rb:592:in `open_logfile'
23
+ [Sun May 14 19:42:54.756507 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/logger.rb:549:in `initialize'
24
+ [Sun May 14 19:42:54.756613 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/logger.rb:318:in `new'
25
+ [Sun May 14 19:42:54.756728 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/logger.rb:318:in `initialize'
26
+ [Sun May 14 19:42:54.756900 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /var/www/html/DodontoF_WebSet/public_html/DodontoF/src_ruby/dodontof/logger.rb:27:in `new'
27
+ [Sun May 14 19:42:54.757077 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /var/www/html/DodontoF_WebSet/public_html/DodontoF/src_ruby/dodontof/logger.rb:27:in `reset'
28
+ [Sun May 14 19:42:54.757262 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /var/www/html/DodontoF_WebSet/public_html/DodontoF/src_ruby/dodontof/logger.rb:14:in `initialize'
29
+ [Sun May 14 19:42:54.757371 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/singleton.rb:141:in `new'
30
+ [Sun May 14 19:42:54.757500 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/singleton.rb:141:in `block in instance'
31
+ [Sun May 14 19:42:54.757621 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/singleton.rb:139:in `synchronize'
32
+ [Sun May 14 19:42:54.757737 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /usr/lib/ruby/2.1.0/singleton.rb:139:in `instance'
33
+ [Sun May 14 19:42:54.757911 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /var/www/html/DodontoF_WebSet/public_html/DodontoF/DodontoFServer.rb:5812:in `getCgiParams'
34
+ [Sun May 14 19:42:54.758105 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /var/www/html/DodontoF_WebSet/public_html/DodontoF/DodontoFServer.rb:5836:in `executeDodontoServerCgi'
35
+ [Sun May 14 19:42:54.758275 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] AH01215: \tfrom /var/www/html/DodontoF_WebSet/public_html/DodontoF/DodontoFServer.rb:5851:in `<main>'
36
+ [Sun May 14 19:42:54.781176 2017] [cgi:error] [pid 2571] [client 192.168.1.5:58360] End of script output before headers: DodontoFServer.rb
15
37
 
38
+ ```
39
+
16
40
  ###試したこと
17
41
  DodontoFServer.rbの一行目のRubyのパスをwhereis rubyで出てきたものを全て試す
18
42