Eruby0.9.8/winxp/apache1.3.27 - eruby don't parse my files

my configurations is
-eruby 0.9.8 http://www.dm4lab.to/~usa/ruby/index_en.html
-winxp without servicepacks
-apache 1.3.27

http.conf extract
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

problem:
when i call a ruby file like this

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%> <%=ENV[key]%>

then i got this result page

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%> <%=ENV[key]%>

So the ruby tags are unchanged and no error messages was created. Does
anybody know what’s the problem
or ist there another solution to use rubyscript on windows?

I had a similar problem on a linux system.

Final got it to work correctly by changing the AddType to AddHandler.

I also needed to place a copy of eruby in my cgi-bin directory.

···

11/12/2002 3:49:27 AM, “sven” sven.rosner@gmx.de wrote:

my configurations is
-eruby 0.9.8 http://www.dm4lab.to/~usa/ruby/index_en.html
-winxp without servicepacks
-apache 1.3.27

http.conf extract
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

problem:
when i call a ruby file like this

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

then i got this result page

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

So the ruby tags are unchanged and no error messages was created. Does
anybody know what’s the problem
or ist there another solution to use rubyscript on windows?

You can see your code working at 3wplace.com/rb/GetEnv.rhtml

···

11/12/2002 3:49:27 AM, “sven” sven.rosner@gmx.de wrote:

my configurations is
-eruby 0.9.8 http://www.dm4lab.to/~usa/ruby/index_en.html
-winxp without servicepacks
-apache 1.3.27

http.conf extract
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

problem:
when i call a ruby file like this

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

then i got this result page

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

So the ruby tags are unchanged and no error messages was created. Does
anybody know what’s the problem
or ist there another solution to use rubyscript on windows?

thx for this but i have now another problem.

http.conf extract
ScriptAlias /cgi-bin/ “D:/Apache Group/Apache/cgi-bin/”
Action application/x-httpd-eruby “/cgi-bin/eruby.exe”
AddType application/x-httpd-eruby .rhtml

request result

···

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, admin@mshome.net and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.


Apache/1.3.27 Server at 127.0.0.1 Port 80

Any Idea???

“John Feezell” JohnFeezell@3wplace.com schrieb im Newsbeitrag
news:LG0RL62MHG1U86RNCUICB75473U.3dd12071@feezellj…

You can see your code working at 3wplace.com/rb/GetEnv.rhtml

11/12/2002 3:49:27 AM, “sven” sven.rosner@gmx.de wrote:

my configurations is
-eruby 0.9.8 http://www.dm4lab.to/~usa/ruby/index_en.html
-winxp without servicepacks
-apache 1.3.27

http.conf extract
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

problem:
when i call a ruby file like this

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

then i got this result page

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

So the ruby tags are unchanged and no error messages was created. Does
anybody know what’s the problem
or ist there another solution to use rubyscript on windows?

I’m not sure what your problem is but it could relate to using
the quotes in the http.conf statements. You may also need some additional
settings. I have found the following resource helpful:
http://httpd.apache.org/docs/howto/cgi.html#explicitlyusingoptionstopermit
cgiexecution

Perhaps you can find your answer there.

thx for this but i have now another problem.

http.conf extract
ScriptAlias /cgi-bin/ “D:/Apache Group/Apache/cgi-bin/”
Action application/x-httpd-eruby “/cgi-bin/eruby.exe”
AddType application/x-httpd-eruby .rhtml

request result

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable
to complete your request.
Please contact the server administrator, admin@mshome.net and inform them
of
the time the error occurred, and anything you might have done that may
have
caused the error.

More information about this error may be available in the server error
log.

···

11/13/2002 6:17:27 AM, “sven” sven.rosner@gmx.de wrote:



Apache/1.3.27 Server at 127.0.0.1 Port 80

Any Idea???

“John Feezell” JohnFeezell@3wplace.com schrieb im Newsbeitrag
news:LG0RL62MHG1U86RNCUICB75473U.3dd12071@feezellj…

You can see your code working at 3wplace.com/rb/GetEnv.rhtml

11/12/2002 3:49:27 AM, “sven” sven.rosner@gmx.de wrote:

my configurations is
-eruby 0.9.8 http://www.dm4lab.to/~usa/ruby/index_en.html
-winxp without servicepacks
-apache 1.3.27

http.conf extract
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

problem:
when i call a ruby file like this

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

then i got this result page

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

So the ruby tags are unchanged and no error messages was created. Does
anybody know what’s the problem
or ist there another solution to use rubyscript on windows?

i tried to invoke my script directly (cmd>eruby.exe) and it has gone.
I you have a similar configuration perhaps it’s possible to sent my your
configuraten.

“John Feezell” JohnFeezell@3wplace.com schrieb im Newsbeitrag
news:ZTMIGE8631DBA6SNED61UQ93PNC8C8OM.3dd25710@feezellj…

···

I’m not sure what your problem is but it could relate to using
the quotes in the http.conf statements. You may also need some additional
settings. I have found the following resource helpful:
Apache Tutorial: Dynamic Content with CGI - Apache HTTP Server Version 2.4
cgiexecution

Perhaps you can find your answer there.

11/13/2002 6:17:27 AM, “sven” sven.rosner@gmx.de wrote:

thx for this but i have now another problem.

http.conf extract
ScriptAlias /cgi-bin/ “D:/Apache Group/Apache/cgi-bin/”
Action application/x-httpd-eruby “/cgi-bin/eruby.exe”
AddType application/x-httpd-eruby .rhtml

request result

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable
to complete your request.
Please contact the server administrator, admin@mshome.net and inform them
of
the time the error occurred, and anything you might have done that may
have
caused the error.

More information about this error may be available in the server error
log.



Apache/1.3.27 Server at 127.0.0.1 Port 80

Any Idea???

“John Feezell” JohnFeezell@3wplace.com schrieb im Newsbeitrag
news:LG0RL62MHG1U86RNCUICB75473U.3dd12071@feezellj…

You can see your code working at 3wplace.com/rb/GetEnv.rhtml

11/12/2002 3:49:27 AM, “sven” sven.rosner@gmx.de wrote:

my configurations is
-eruby 0.9.8 http://www.dm4lab.to/~usa/ruby/index_en.html
-winxp without servicepacks
-apache 1.3.27

http.conf extract
AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby

problem:
when i call a ruby file like this

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

then i got this result page

eruby example

Enumeration

    <%(1..10).each do|i|%>
  • number <%=i%>
  • <%end%>

Environment variables

<%ENV.keys.sort.each do |key|%> <%end%>
<%=key%><%=ENV[key]%>

So the ruby tags are unchanged and no error messages was created. Does
anybody know what’s the problem
or ist there another solution to use rubyscript on windows?