# Need ruby run like php in apache

**URL:** https://rubytalk.org/t/need-ruby-run-like-php-in-apache/32684
**Category:** ruby-talk
**Created:** [6 November 2006 09:59 UTC](https://rubytalk.org/t/need-ruby-run-like-php-in-apache/32684 "2006-11-06T09:59:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Haoqi\_Haoqi](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@Haoqi\_Haoqi](https://rubytalk.org/u/Haoqi_Haoqi)
#### Post date: [6 November 2006 09:59 UTC](https://rubytalk.org/t/need-ruby-run-like-php-in-apache/32684/1 "2006-11-06T09:59:03Z")

</div>

I hope that run index.rb in apache like php index.php without rails  
I think rails is great,but i do not like rails  
php's page next page is normal,such as html in web  
but rails's url rule is not good  
....  
ok,how to run ruby like php?

i know about eruby,erb...and erubies. Erubies may be is my need,but i do  
not know how to install for apache.  
...

I hope run index.rb like php's index.php without rails!  
thanks!

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

### Author: ![Jason\_R](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Jason\_R](https://rubytalk.org/u/Jason_R)
#### Post date: [6 November 2006 17:45 UTC](https://rubytalk.org/t/need-ruby-run-like-php-in-apache/32684/2 "2006-11-06T17:45:41Z")

</div>

[http://www.modruby.net/en/](http://www.modruby.net/en/)

Any reason you don't like Rails? I see 'rails's url rule is not good', what  
does that mean?

Jason

> **···**
>
> On 11/6/06, Haoqi Haoqi \<axgle@126.com\> wrote:
> 
> > I hope that run index.rb in apache like php index.php without rails  
> > I think rails is great,but i do not like rails  
> > php's page next page is normal,such as html in web  
> > but rails's url rule is not good  
> > ....  
> > ok,how to run ruby like php?
> > 
> > i know about eruby,erb...and erubies. Erubies may be is my need,but i do  
> > not know how to install for apache.  
> > ...
> > 
> > I hope run index.rb like php's index.php without rails!  
> > thanks!
> > 
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

### Author: ![Wilson\_Bilkovich](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/wilson_bilkovich/32/8247_2.png) [@Wilson\_Bilkovich](https://rubytalk.org/u/Wilson_Bilkovich)
#### Post date: [6 November 2006 17:58 UTC](https://rubytalk.org/t/need-ruby-run-like-php-in-apache/32684/3 "2006-11-06T17:58:05Z")

</div>

I assume he wants the file extensions on the end, so that when he  
changes tools down the road, all his URLs will be broken. 🙂

This link may help, though:  
[http://cyll.org/blog/tech/2006-08-26-makingrubyintophp.html](http://cyll.org/blog/tech/2006-08-26-makingrubyintophp.html)

> **···**
>
> On 11/6/06, Jason Roelofs \<jameskilton@gmail.com\> wrote:
> 
> > [modruby.net](http://www.modruby.net/en/)
> > 
> > Any reason you don't like Rails? I see 'rails's url rule is not good', what  
> > does that mean?
> > 
> > Jason
> > 
> > On 11/6/06, Haoqi Haoqi \<axgle@126.com\> wrote:  
> > \>  
> > \> I hope that run index.rb in apache like php index.php without rails  
> > \> I think rails is great,but i do not like rails  
> > \> php's page next page is normal,such as html in web  
> > \> but rails's url rule is not good  
> > \> ....  
> > \> ok,how to run ruby like php?  
> > \>  
> > \> i know about eruby,erb...and erubies. Erubies may be is my need,but i do  
> > \> not know how to install for apache.  
> > \> ...  
> > \>  
> > \> I hope run index.rb like php's index.php without rails!  
> > \> thanks!  
> > \>  
> > \> --  
> > \> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).  
> > \>

---

<div class="post-metadata">

### Author: ![David\_Vallner](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@David\_Vallner](https://rubytalk.org/u/David_Vallner)
#### Post date: [6 November 2006 23:08 UTC](https://rubytalk.org/t/need-ruby-run-like-php-in-apache/32684/4 "2006-11-06T23:08:31Z")

</div>

Wilson Bilkovich wrote:

> I assume he wants the file extensions on the end, so that when he  
> changes tools down the road, all his URLs will be broken. 🙂
> 
> This link may help, though:  
> [http://cyll.org/blog/tech/2006-08-26-makingrubyintophp.html](http://cyll.org/blog/tech/2006-08-26-makingrubyintophp.html)

I could've sworn mod\_ruby had an Erb handler of some sort to handle  
pages like .rhtml even without that hideous hack.

And if it doesn't, well, \*cough\* -hint- 😛

David Vallner

---

<div class="post-metadata">

### Author: ![David\_Vallner](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@David\_Vallner](https://rubytalk.org/u/David_Vallner)
#### Post date: [6 November 2006 23:28 UTC](https://rubytalk.org/t/need-ruby-run-like-php-in-apache/32684/5 "2006-11-06T23:28:07Z")

</div>

Wilson Bilkovich wrote:

> I assume he wants the file extensions on the end, so that when he  
> changes tools down the road, all his URLs will be broken. 🙂

Also, on that note: [http://www.w3.org/Provider/Style/URI\](http://www.w3.org/Provider/Style/URI%5C).

The fact that newly developed PHP / JSP / other CGI still happily  
violates rules that were published in an eight year old document (and  
were a bad idea ages before anyway) makes me cringe. The fact  
half-decent support for clean URLs is only a recend development in web  
frameworks makes me cringe more... (Ugh, mod\_rewrite)

David Vallner
