# Need ruby run like php in apache

**URL:** <https://www.ruby-forum.com/t/need-ruby-run-like-php-in-apache/74392>\
**Category:** Ruby\
**Created:** [November 6, 2006, 10:59am UTC](https://www.ruby-forum.com/t/need-ruby-run-like-php-in-apache/74392 "2006-11-06T10:59:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![haoqi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Post date:** [November 6, 2006, 10:59am UTC](https://www.ruby-forum.com/t/need-ruby-run-like-php-in-apache/74392/1 "2006-11-06T10:59:00Z")

</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!

---

<div class="post-metadata">

**Author:** ![haoqi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Post date:** [November 7, 2006, 11:07am UTC](https://www.ruby-forum.com/t/need-ruby-run-like-php-in-apache/74392/2 "2006-11-07T11:07:17Z")

</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

---

<div class="post-metadata">

**Author:** ![haoqi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Post date:** [November 7, 2006, 11:07am UTC](https://www.ruby-forum.com/t/need-ruby-run-like-php-in-apache/74392/3 "2006-11-07T11:07:21Z")

</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)

---

<div class="post-metadata">

**Author:** ![haoqi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Post date:** [November 7, 2006, 11:08am UTC](https://www.ruby-forum.com/t/need-ruby-run-like-php-in-apache/74392/4 "2006-11-07T11:08:23Z")

</div>

Wilson B. 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).

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 V.

---

<div class="post-metadata">

**Author:** ![haoqi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ed655f/32.png) [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Post date:** [November 7, 2006, 11:08am UTC](https://www.ruby-forum.com/t/need-ruby-run-like-php-in-apache/74392/5 "2006-11-07T11:08:19Z")

</div>

Wilson B. 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 V.
