# How to install PHP and MySQL on Ruby (Webrick)

**URL:** <https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982>\
**Category:** Rails\
**Created:** [April 16, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982 "2008-04-16T19:52:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgvalle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/838e76/32.png) [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Post date:** [April 16, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982/1 "2008-04-16T19:52:32Z")

</div>

Hi all.  
I have Ruby 1.8.6  
and Rails 2.0.2

and I want to install php5 and mysql, on webrick, or some server (if you  
know good server, which we can install ruby on rails, php5 and mysql  
tell me)

Thanks and sorry for my English, I’m from Georgia 🙂

---

<div class="post-metadata">

**Author:** ![lgvalle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/838e76/32.png) [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Post date:** [April 17, 2008, 10:53am UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982/2 "2008-04-17T10:53:10Z")

</div>

please anybody help mee =(

---

<div class="post-metadata">

**Author:** ![lgvalle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/838e76/32.png) [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Post date:** [April 17, 2008, 11:34am UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982/3 "2008-04-17T11:34:13Z")

</div>

On 16 Apr 2008, at 18:52, Luka Lukako wrote:

> Hi all.  
> I have Ruby 1.8.6  
> and Rails 2.0.2
> 
> and I want to install php5 and mysql, on webrick, or some server (if  
> you  
> know good server, which we can install ruby on rails, php5 and mysql  
> tell me)

I don’t quite understand the question. Are you asking if webrick can  
serve up php (the answer is no), which operating system would work  
nicely, something else ?

Fred

---

<div class="post-metadata">

**Author:** ![lgvalle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/838e76/32.png) [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Post date:** [April 17, 2008, 11:54am UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982/4 "2008-04-17T11:54:35Z")

</div>

> I don’t quite understand the question. Are you asking if webrick can  
> serve up php (the answer is no), which operating system would work  
> nicely, something else ?
> 
> Fred

yes, which operating system would work nicely.

---

<div class="post-metadata">

**Author:** ![lgvalle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/838e76/32.png) [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Post date:** [April 17, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982/5 "2008-04-17T12:18:25Z")

</div>

On 17 Apr 2008, at 10:54, Luka Lukako wrote:

> > I don’t quite understand the question. Are you asking if webrick can  
> > serve up php (the answer is no), which operating system would work  
> > nicely, something else ?
> > 
> > Fred
> 
> yes, which operating system would work nicely.

A lot of people deploy on some variety of linux.

Fred

---

<div class="post-metadata">

**Author:** ![lgvalle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/838e76/32.png) [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Post date:** [April 17, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982/6 "2008-04-17T12:40:15Z")

</div>

We use Linux (Fedora, but Ubuntu would be better) and have Apache  
proxying requests to a mongrel cluster. Requests to files that  
actually exist don’t go to mongrel, and if you have php installed on  
the server, apache will route them to the php interpreter. We needed  
this because we use a PHP based WYSIWYG editor in our rails app, nice  
and complicated!

Brendon

On Apr 17, 10:17 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
