Mod_ruby - eruby - apache 2?

anyone work on that? i’ve been struggling to get the above combination to
work happily. in fact I can’t even get it to work. helllllllllllllllpppp!

Just to let everybody know that I’ve successfully migrated my apps! :wink:

Apache 2.0.43 release
Ruby 1.7.3 CVS 2002-12-16
mod_ruby 1.1.0 CVS 2002-12-21

···

==========================
Apache Server Information

Server Settings, mod_ruby.c, proxy_connect.c, proxy_http.c, proxy_ftp.c,
mod_proxy.c, mod_rewrite.c, mod_alias.c, mod_userdir.c, mod_speling.c,
mod_actions.c, mod_imap.c, mod_dir.c, mod_negotiation.c,
mod_vhost_alias.c, mod_dav_fs.c, mod_cgi.c, mod_info.c, mod_asis.c,
mod_autoindex.c, mod_status.c, mod_dav.c, mod_mime.c, mod_setenvif.c,
mod_unique_id.c, mod_usertrack.c, mod_headers.c, mod_expires.c,
mod_cern_meta.c, mod_mime_magic.c, mod_env.c, mod_log_config.c,
mod_include.c, mod_auth_digest.c, mod_auth_dbm.c, mod_auth_anon.c,
mod_auth.c, mod_access.c, mod_ssl.c, mod_so.c, http_core.c, prefork.c,
core.c

Server Version: Apache/2.0.43 (Red Hat Linux) mod_ssl/2.0.43
OpenSSL/0.9.6b DAV/2 mod_ruby/1.1.0 Ruby/1.7.3
Server Built: Dec 21 2002 16:38:29
API Version: 20020903:0
Hostname/port: localhost:80
Timeouts: connection: 300 keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 150 Threaded: no Forked: yes
Server Root: /etc/httpd
Config File: conf/httpd.conf

Module Name: mod_ruby.c
Content handlers: yes
Configuration Phase Participation: Create Directory Config, Merge
Directory Configs, Create Server Config, Merge Server Configs
Request Phase Participation: Post-Read Request, Translate Path, Check
Access, Verify User ID, Verify User Access, Check Type, Fixups, Logging
Module Directives:
RubyKanjiCode - set $KCODE
RubyAddPath - add path to $:
RubyRequire - ruby script name, pulled in via require
RubyPassEnv - pass environment variables to ENV
RubySetEnv - Ruby ENV key and value
RubyTimeOut - time to wait execution of ruby script
RubySafeLevel - set default $SAFE
RubyOutputMode - set output mode (nosync|sync|syncheader)
RubyHandler - set ruby handler object
RubyTransHandler - set translation handler object
RubyAuthenHandler - set authentication handler object
RubyAuthzHandler - set authorization handler object
RubyAccessHandler - set access checker object
RubyTypeHandler - set type checker object
RubyFixupHandler - set fixup handler object
RubyLogHandler - set log handler object
RubyHeaderParserHandler - set header parser object
RubyPostReadRequestHandler - set post-read-request handler object
RubyInitHandler - set init handler object
RubyCleanupHandler - set cleanup handler object
Current Configuration:
RubyRequire apache/ruby-run
RubyPassEnv RUBYLIB ORACLE_SID ORACLE_HOME FOOBAR
<Location /ruby>
RubyHandler Apache::RubyRun.instance

RubyRequire apache/ruby-debug
<Location /ruby-debug>
RubyHandler Apache::RubyDebug.instance

<Files *.rbx>
RubyHandler Apache::RubyDebug.instance

RubyRequire apache/eruby-run
<Location /eruby>
RubyHandler Apache::ERubyRun.instance

<Files *.rhtml>
RubyHandler Apache::ERubyRun.instance

RubyRequire apache/erb-run
<Location /erb>
RubyHandler Apache::ERbRun.instance

Useko Netsumi wrote:

anyone work on that? i’ve been struggling to get the above combination to
work happily. in fact I can’t even get it to work. helllllllllllllllpppp!


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”

“Useko Netsumi” usenets@nyc.rr.com wrote in message news:atvav0$2t3o8$1@ID-159205.news.dfncis.de

anyone work on that? i’ve been struggling to get the above combination to
work happily. in fact I can’t even get it to work. helllllllllllllllpppp!

As far as i know there is no way to get this working with apache 2.
You must use Apache 1.X.X and wait for better times. Very annoying
indeed.

···


Lothar Scholz, CEO Scriptolutions
www.ruby-ide.com IDE’s for Ruby, Python, Perl and PHP

Congrats! Would you mind telling us how to get the “working” CVS code? Also,
I would be grateful if you can post a simple web testapps using the above
combination(Apache 2.0.43, Ruby 1.72, and mod_ruby_1.1.0)? Thanks again.

/useko

“Wai-Sun Chia” waisun.chia@hp.com wrote in message
news:3E0433D9.5040007@hp.com

Just to let everybody know that I’ve successfully migrated my apps! :wink:

Apache 2.0.43 release
Ruby 1.7.3 CVS 2002-12-16
mod_ruby 1.1.0 CVS 2002-12-21

==========================
Apache Server Information

Server Settings, mod_ruby.c, proxy_connect.c, proxy_http.c, proxy_ftp.c,
mod_proxy.c, mod_rewrite.c, mod_alias.c, mod_userdir.c, mod_speling.c,
mod_actions.c, mod_imap.c, mod_dir.c, mod_negotiation.c,
mod_vhost_alias.c, mod_dav_fs.c, mod_cgi.c, mod_info.c, mod_asis.c,
mod_autoindex.c, mod_status.c, mod_dav.c, mod_mime.c, mod_setenvif.c,
mod_unique_id.c, mod_usertrack.c, mod_headers.c, mod_expires.c,
mod_cern_meta.c, mod_mime_magic.c, mod_env.c, mod_log_config.c,
mod_include.c, mod_auth_digest.c, mod_auth_dbm.c, mod_auth_anon.c,
mod_auth.c, mod_access.c, mod_ssl.c, mod_so.c, http_core.c, prefork.c,
core.c

Server Version: Apache/2.0.43 (Red Hat Linux) mod_ssl/2.0.43
OpenSSL/0.9.6b DAV/2 mod_ruby/1.1.0 Ruby/1.7.3
Server Built: Dec 21 2002 16:38:29
API Version: 20020903:0
Hostname/port: localhost:80
Timeouts: connection: 300 keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 150 Threaded: no Forked: yes
Server Root: /etc/httpd
Config File: conf/httpd.conf

Module Name: mod_ruby.c
Content handlers: yes
Configuration Phase Participation: Create Directory Config, Merge
Directory Configs, Create Server Config, Merge Server Configs
Request Phase Participation: Post-Read Request, Translate Path, Check
Access, Verify User ID, Verify User Access, Check Type, Fixups, Logging
Module Directives:
RubyKanjiCode - set $KCODE
RubyAddPath - add path to $:
RubyRequire - ruby script name, pulled in via require
RubyPassEnv - pass environment variables to ENV
RubySetEnv - Ruby ENV key and value
RubyTimeOut - time to wait execution of ruby script
RubySafeLevel - set default $SAFE
RubyOutputMode - set output mode (nosync|sync|syncheader)
RubyHandler - set ruby handler object
RubyTransHandler - set translation handler object
RubyAuthenHandler - set authentication handler object
RubyAuthzHandler - set authorization handler object
RubyAccessHandler - set access checker object
RubyTypeHandler - set type checker object
RubyFixupHandler - set fixup handler object
RubyLogHandler - set log handler object
RubyHeaderParserHandler - set header parser object
RubyPostReadRequestHandler - set post-read-request handler object
RubyInitHandler - set init handler object
RubyCleanupHandler - set cleanup handler object
Current Configuration:
RubyRequire apache/ruby-run
RubyPassEnv RUBYLIB ORACLE_SID ORACLE_HOME FOOBAR
<Location /ruby>
RubyHandler Apache::RubyRun.instance

RubyRequire apache/ruby-debug
<Location /ruby-debug>
RubyHandler Apache::RubyDebug.instance

<Files *.rbx>
RubyHandler Apache::RubyDebug.instance

RubyRequire apache/eruby-run
<Location /eruby>
RubyHandler Apache::ERubyRun.instance

<Files *.rhtml>
RubyHandler Apache::ERubyRun.instance

RubyRequire apache/erb-run
<Location /erb>
RubyHandler Apache::ERbRun.instance

Useko Netsumi wrote:

anyone work on that? i’ve been struggling to get the above combination
to
work happily. in fact I can’t even get it to work.
helllllllllllllllpppp!

···


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”

Oooh! Good job.

James

···

-----Original Message-----
From: Wai-Sun Chia [mailto:waisun.chia@hp.com]
Sent: Saturday, December 21, 2002 2:32 AM
To: ruby-talk ML; modruby@modruby.net
Subject: Apache2, mod_ruby, ruby 1.7.3 SUCCESS!

Just to let everybody know that I’ve successfully migrated my apps! :wink:

Apache 2.0.43 release
Ruby 1.7.3 CVS 2002-12-16
mod_ruby 1.1.0 CVS 2002-12-21

Instructions for anonymous CVS are on their respective web site’s
download page.

You can use this app:

===================== test.rbx =================
require “cgi”

cgi = CGI.new
print cgi.header(“type” => “text/html”)

puts “”
puts “

Your mod_ruby installation was successful!


puts “”

puts “



puts cgi.params.inspect
puts “

ENV.each { |foo|
puts foo.inspect
}
puts “

ENV.each{|e| puts e.inspect, “
”}

···

=================================================

Useko Netsumi wrote:

Congrats! Would you mind telling us how to get the “working” CVS code? Also,
I would be grateful if you can post a simple web testapps using the above
combination(Apache 2.0.43, Ruby 1.72, and mod_ruby_1.1.0)? Thanks again.

/useko

“Wai-Sun Chia” waisun.chia@hp.com wrote in message
news:3E0433D9.5040007@hp.com

Just to let everybody know that I’ve successfully migrated my apps! :wink:

Apache 2.0.43 release
Ruby 1.7.3 CVS 2002-12-16
mod_ruby 1.1.0 CVS 2002-12-21

==========================
Apache Server Information

Server Settings, mod_ruby.c, proxy_connect.c, proxy_http.c, proxy_ftp.c,
mod_proxy.c, mod_rewrite.c, mod_alias.c, mod_userdir.c, mod_speling.c,
mod_actions.c, mod_imap.c, mod_dir.c, mod_negotiation.c,
mod_vhost_alias.c, mod_dav_fs.c, mod_cgi.c, mod_info.c, mod_asis.c,
mod_autoindex.c, mod_status.c, mod_dav.c, mod_mime.c, mod_setenvif.c,
mod_unique_id.c, mod_usertrack.c, mod_headers.c, mod_expires.c,
mod_cern_meta.c, mod_mime_magic.c, mod_env.c, mod_log_config.c,
mod_include.c, mod_auth_digest.c, mod_auth_dbm.c, mod_auth_anon.c,
mod_auth.c, mod_access.c, mod_ssl.c, mod_so.c, http_core.c, prefork.c,
core.c

Server Version: Apache/2.0.43 (Red Hat Linux) mod_ssl/2.0.43
OpenSSL/0.9.6b DAV/2 mod_ruby/1.1.0 Ruby/1.7.3
Server Built: Dec 21 2002 16:38:29
API Version: 20020903:0
Hostname/port: localhost:80
Timeouts: connection: 300 keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 150 Threaded: no Forked: yes
Server Root: /etc/httpd
Config File: conf/httpd.conf

Module Name: mod_ruby.c
Content handlers: yes
Configuration Phase Participation: Create Directory Config, Merge
Directory Configs, Create Server Config, Merge Server Configs
Request Phase Participation: Post-Read Request, Translate Path, Check
Access, Verify User ID, Verify User Access, Check Type, Fixups, Logging
Module Directives:
RubyKanjiCode - set $KCODE
RubyAddPath - add path to $:
RubyRequire - ruby script name, pulled in via require
RubyPassEnv - pass environment variables to ENV
RubySetEnv - Ruby ENV key and value
RubyTimeOut - time to wait execution of ruby script
RubySafeLevel - set default $SAFE
RubyOutputMode - set output mode (nosync|sync|syncheader)
RubyHandler - set ruby handler object
RubyTransHandler - set translation handler object
RubyAuthenHandler - set authentication handler object
RubyAuthzHandler - set authorization handler object
RubyAccessHandler - set access checker object
RubyTypeHandler - set type checker object
RubyFixupHandler - set fixup handler object
RubyLogHandler - set log handler object
RubyHeaderParserHandler - set header parser object
RubyPostReadRequestHandler - set post-read-request handler object
RubyInitHandler - set init handler object
RubyCleanupHandler - set cleanup handler object
Current Configuration:
RubyRequire apache/ruby-run
RubyPassEnv RUBYLIB ORACLE_SID ORACLE_HOME FOOBAR
<Location /ruby>
RubyHandler Apache::RubyRun.instance

RubyRequire apache/ruby-debug
<Location /ruby-debug>
RubyHandler Apache::RubyDebug.instance

<Files *.rbx>
RubyHandler Apache::RubyDebug.instance

RubyRequire apache/eruby-run
<Location /eruby>
RubyHandler Apache::ERubyRun.instance

<Files *.rhtml>
RubyHandler Apache::ERubyRun.instance

RubyRequire apache/erb-run
<Location /erb>
RubyHandler Apache::ERbRun.instance

Useko Netsumi wrote:

anyone work on that? i’ve been struggling to get the above combination

to

work happily. in fact I can’t even get it to work.

helllllllllllllllpppp!


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”

Wai-Sun Chia, thanks again. After adding some configuration on the apache’s
httpd.conf, and then put the test.rbx on the cgi-bin directory, when I
access it from the browser, instead of executing the script, it just display
the content of the script. Any idea? Thanks.

“Wai-Sun Chia” waisun.chia@hp.com wrote in message
news:3E05C480.10305@hp.com

Instructions for anonymous CVS are on their respective web site’s
download page.

You can use this app:

===================== test.rbx =================
require “cgi”

cgi = CGI.new
print cgi.header(“type” => “text/html”)

puts “”
puts “

Your mod_ruby installation was successful!


puts “”

puts “

puts cgi.params.inspect
puts “

ENV.each { |foo|
puts foo.inspect
}
puts “

ENV.each{|e| puts e.inspect, “
”}

Useko Netsumi wrote:

Congrats! Would you mind telling us how to get the “working” CVS code?
Also,
I would be grateful if you can post a simple web testapps using the
above

···

combination(Apache 2.0.43, Ruby 1.72, and mod_ruby_1.1.0)? Thanks again.

/useko

“Wai-Sun Chia” waisun.chia@hp.com wrote in message
news:3E0433D9.5040007@hp.com

Just to let everybody know that I’ve successfully migrated my apps! :wink:

Apache 2.0.43 release
Ruby 1.7.3 CVS 2002-12-16
mod_ruby 1.1.0 CVS 2002-12-21

==========================
Apache Server Information

Server Settings, mod_ruby.c, proxy_connect.c, proxy_http.c, proxy_ftp.c,
mod_proxy.c, mod_rewrite.c, mod_alias.c, mod_userdir.c, mod_speling.c,
mod_actions.c, mod_imap.c, mod_dir.c, mod_negotiation.c,
mod_vhost_alias.c, mod_dav_fs.c, mod_cgi.c, mod_info.c, mod_asis.c,
mod_autoindex.c, mod_status.c, mod_dav.c, mod_mime.c, mod_setenvif.c,
mod_unique_id.c, mod_usertrack.c, mod_headers.c, mod_expires.c,
mod_cern_meta.c, mod_mime_magic.c, mod_env.c, mod_log_config.c,
mod_include.c, mod_auth_digest.c, mod_auth_dbm.c, mod_auth_anon.c,
mod_auth.c, mod_access.c, mod_ssl.c, mod_so.c, http_core.c, prefork.c,
core.c

Server Version: Apache/2.0.43 (Red Hat Linux) mod_ssl/2.0.43
OpenSSL/0.9.6b DAV/2 mod_ruby/1.1.0 Ruby/1.7.3
Server Built: Dec 21 2002 16:38:29
API Version: 20020903:0
Hostname/port: localhost:80
Timeouts: connection: 300 keep-alive: 300
MPM Name: Prefork
MPM Information: Max Daemons: 150 Threaded: no Forked: yes
Server Root: /etc/httpd
Config File: conf/httpd.conf

Module Name: mod_ruby.c
Content handlers: yes
Configuration Phase Participation: Create Directory Config, Merge
Directory Configs, Create Server Config, Merge Server Configs
Request Phase Participation: Post-Read Request, Translate Path, Check
Access, Verify User ID, Verify User Access, Check Type, Fixups, Logging
Module Directives:
RubyKanjiCode - set $KCODE
RubyAddPath - add path to $:
RubyRequire - ruby script name, pulled in via require
RubyPassEnv - pass environment variables to ENV
RubySetEnv - Ruby ENV key and value
RubyTimeOut - time to wait execution of ruby script
RubySafeLevel - set default $SAFE
RubyOutputMode - set output mode (nosync|sync|syncheader)
RubyHandler - set ruby handler object
RubyTransHandler - set translation handler object
RubyAuthenHandler - set authentication handler object
RubyAuthzHandler - set authorization handler object
RubyAccessHandler - set access checker object
RubyTypeHandler - set type checker object
RubyFixupHandler - set fixup handler object
RubyLogHandler - set log handler object
RubyHeaderParserHandler - set header parser object
RubyPostReadRequestHandler - set post-read-request handler object
RubyInitHandler - set init handler object
RubyCleanupHandler - set cleanup handler object
Current Configuration:
RubyRequire apache/ruby-run
RubyPassEnv RUBYLIB ORACLE_SID ORACLE_HOME FOOBAR
<Location /ruby>
RubyHandler Apache::RubyRun.instance

RubyRequire apache/ruby-debug
<Location /ruby-debug>
RubyHandler Apache::RubyDebug.instance

<Files *.rbx>
RubyHandler Apache::RubyDebug.instance

RubyRequire apache/eruby-run
<Location /eruby>
RubyHandler Apache::ERubyRun.instance

<Files *.rhtml>
RubyHandler Apache::ERubyRun.instance

RubyRequire apache/erb-run
<Location /erb>
RubyHandler Apache::ERbRun.instance

Useko Netsumi wrote:

anyone work on that? i’ve been struggling to get the above combination

to

work happily. in fact I can’t even get it to work.

helllllllllllllllpppp!


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”


Wai-Sun “Squidster” Chia
Consulting & Integration
Linux/Unix/Web Developer Dude
“Just Another Ruby Miner”