coolesting 发表于 2011-12-21 08:44

Ruby : Internal Server Error

<font size="3" color="#000000"><b>The sever show me this message as following ,<br><br></b></font><font size="3" color="#000000"><br></font><div id="codeText" class="codeText"><ol style="margin: 0pt 1px 0pt 0pt; padding: 5px 0pt;" start="1" class="dp-css"><li>Internal Server Error</li><li>
<br></li><li>
The server encountered an internal error or misconfiguration and was unable to complete your request.</li><li>
<br></li><li>
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.</li><li>
<br></li><li>
More information about this error may be available in the server error log.</li><li>
Apache/2.2.12 (Ubuntu) Server at 127.0.1.1 Port 80</li></ol></div><br><font size="3" color="#000000"><br><b>then i check the apache log at /var/log/apache2/error.log like this<br><br></b><br></font><div id="codeText" class="codeText"><ol style="margin: 0pt 1px 0pt 0pt; padding: 5px 0pt;" start="1" class="dp-css"><li>warning: Insecure world writable dir /var/www in LOAD_PATH, mode 040777   </li><li>
Jun 28 23:05:34 2011] mod_ruby: error in ruby</li><li>
Jun 28 23:05:34 2011] mod_ruby: /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `load': loadin</li><li>
Jun 28 23:05:34 2011] mod_ruby:   from /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handle</li></ol></div><br><font size="3" color="#000000"><br><b>Now,&nbsp; i setting the directory /var/www/&nbsp;&nbsp; by this command :&nbsp; </b></font><font size="3" color="#000000"><br><br></font><div id="codeText" class="codeText"><ol style="margin: 0pt 1px 0pt 0pt; padding: 5px 0pt;" start="1" class="dp-css"><li>sudo chmod go-w /var/www</li></ol></div><br><font size="3" color="#000000"><br><b>it works .</b><br></font>
页: [1]
查看完整版本: Ruby : Internal Server Error