From: Bhagavatheeswaran Mahadevan Date: 2001-11-28T20:08:00+09:00 Subject: [ruby-talk:26764] RE: SV: eRuby This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C177FD.50F6D730 Content-Type: text/plain This is what the error log says: Wed Nov 28 12:40:55 2001] [error] [client 127.0.0.1] c:/program files/apache group/apache/cgi-bin/first.rhtml is not executable; ensure interpreted scripts have "#!" first line [Wed Nov 28 12:40:55 2001] [error] [client 127.0.0.1] couldn't spawn child process: c:/program files/apache group/apache/cgi-bin/first.rhtml My code is this: ----------------------------- #!/ruby/bin/ruby eRuby Example

Enumeration

Suresh > -----Original Message----- > From: Mikkel Bruun [SMTP:mikkel.bruun@valtech.dk] > Sent: 28 November 2001 14:30 > To: ruby-talk@ruby-lang.org > Subject: [ruby-talk:26757] SV: eRuby > > lets see your error log!!! > > -----Oprindelig meddelelse----- > Fra: Bhagavatheeswaran Mahadevan [mailto:BMahadevan@NIIT.com] > Sendt: 28. november 2001 09:58 > Til: ruby-talk@ruby-lang.org > Emne: [ruby-talk:26756] eRuby > > > > Hi all > > I am trying to use eRuby with Apache Web server.........I have added > the reqd. two lines, > > AddType application/x-httpd-eruby .rhtml > Action application/x-httpd-eruby /cgi-bin/eruby > > in the httpd.conf file.............. > > My file also has the .rthml extension and it is in the cgi-bin > directory.......... > > but I get the error "500 Internal Server Error" > > Could anybody please heme out...... > > Suresh > > > ------_=_NextPart_001_01C177FD.50F6D730 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [ruby-talk:26757] SV: eRuby

This is what = the error log says:


Wed Nov 28 = 12:40:55 2001] [error] [client 127.0.0.1] c:/program files/apache = group/apache/cgi-bin/first.rhtml is not executable; ensure interpreted = scripts have "#!" first line

[Wed Nov 28 = 12:40:55 2001] [error] [client 127.0.0.1] couldn't spawn child process: = c:/program files/apache group/apache/cgi-bin/first.rhtml


My code is = this:
-----------------------------

#!/ruby/bin/ruby
<html>
<head>
<title>eRuby Example</title>
</head>
<body>
<h1>Enumeration</h1>
<ul>
<%(1..10).each do |i|%>
 <li>number = <%=3Di%></li>
<%end%>
</ul>
</body>
</html>


Suresh

------_=_NextPart_001_01C177FD.50F6D730--