<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://kb.idcspy.com/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>https://kb.idcspy.com/index.php?action=history&amp;feed=atom&amp;title=HostMonster%3A500-_Premature_end_of_script.</id>
		<title>HostMonster:500- Premature end of script. - 修订历史</title>
		<link rel="self" type="application/atom+xml" href="https://kb.idcspy.com/index.php?action=history&amp;feed=atom&amp;title=HostMonster%3A500-_Premature_end_of_script."/>
		<link rel="alternate" type="text/html" href="https://kb.idcspy.com/index.php?title=HostMonster:500-_Premature_end_of_script.&amp;action=history"/>
		<updated>2026-05-13T21:42:08Z</updated>
		<subtitle>本站上此页的修订历史</subtitle>
		<generator>MediaWiki 1.16.5</generator>

	<entry>
		<id>https://kb.idcspy.com/index.php?title=HostMonster:500-_Premature_end_of_script.&amp;diff=285&amp;oldid=prev</id>
		<title>大象无形: 新页面: 当我尝试执行我的 Ruby on Rails程序时收到了&quot;500- Premature end of script.&quot; （&quot;500- 脚本过早结束&quot;）提示   这个错误有2个可能的导致原因:  •	文件权限...</title>
		<link rel="alternate" type="text/html" href="https://kb.idcspy.com/index.php?title=HostMonster:500-_Premature_end_of_script.&amp;diff=285&amp;oldid=prev"/>
				<updated>2008-04-25T14:25:03Z</updated>
		
		<summary type="html">&lt;p&gt;新页面: 当我尝试执行我的 Ruby on Rails程序时收到了&amp;quot;500- Premature end of script.&amp;quot; （&amp;quot;500- 脚本过早结束&amp;quot;）提示   这个错误有2个可能的导致原因:  •	文件权限...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新建页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;当我尝试执行我的 Ruby on Rails程序时收到了&amp;quot;500- Premature end of script.&amp;quot; （&amp;quot;500- 脚本过早结束&amp;quot;）提示&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
这个错误有2个可能的导致原因:&lt;br /&gt;
&lt;br /&gt;
•	文件权限没有正确设置到允许dispatch.cgi 正确执行。&lt;br /&gt;
Chmod the dispatch.cgi to 0755.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
•	dispatch.cgi文件中的到Ruby的路径错误. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
文件的第一行叫做the shebang—在这里设置编译器的位置 (在ruby例子里).&lt;br /&gt;
将 shebang 改变成到Ruby的正确路径 (/usr/bin/ruby).&lt;br /&gt;
dispatch.cgi 文件的第一行 应该是这样: &lt;br /&gt;
#!/usr/bin/ruby&lt;/div&gt;</summary>
		<author><name>大象无形</name></author>	</entry>

	</feed>