# Media Temple Setup

**URL:** <https://www.ruby-forum.com/t/media-temple-setup/88063>\
**Category:** Radiant CMS\
**Created:** [March 7, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063 "2007-03-07T21:44:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/1 "2007-03-07T21:44:50Z")

</div>

Hi.

I’m soooo new to Ruby and Rails and wanted to try radiant on my media  
temple server.

Can somebody in here help me? I’m stuck. MT provides instructions on how  
to set up radiant.

Which is nice. Except when you get stuck and there’s nobody to help you.

Here’s their document/instructions:  
[http://kb.mediatemple.net/article.php?id=152](http://kb.mediatemple.net/article.php?id=152)

Step 8 says to run a script.

This is the command: …/script/setup\_database production

Run it how?! When one types this command into Termial, one gets a  
massive error! Does anybody know if I need to go to a specific directory  
before I run this command? If yes, does anybody know where I must go and  
what such a command would look like in Terminal?

I’m close, I just know it, but I cannot get this to work.

I have logged in and logged out a million times, and googled, and tried  
everything I can to get help.

Any advice would be appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/2 "2007-03-07T21:56:58Z")

</div>

Have you looked at the script?  
What does the first line say?  
What language is it in?  
Where is your ruby executable?

Jena Jena said the following on 03/07/2007 03:44 PM:

> Here’s their document/instructions:
> 
> I’m close, I just know it, but I cannot get this to work.
> 
> I have logged in and logged out a million times, and googled, and tried  
> everything I can to get help.
> 
> Any advice would be appreciated.
> 
> Thank you!

–  
Men fear thought as they fear nothing else on earth, more than ruin,  
more  
even than death. . . . Thought is subversive and revolutionary,  
destructive  
and terrible, thought is merciless to privilege, established  
institutions,  
and comfortable habit. Thought looks into the pit of hell and is not  
afraid.  
Thought is great and swift and free, the light of the world, and the  
chief  
glory of man.  
– Bertrand Russell

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/3 "2007-03-07T22:00:43Z")

</div>

Hi!

The first line says: #!/usr/bin/env ruby

I have no idea what language it is in. I’m not a programmer and I’m just  
trying to teach myself this stuff.

I also don’t know where my ruby is executable.

If I could figure that out, I’d know how to access the script from  
terminal, yes?

Am I even on the right track?

Thank you!

Anton A. wrote:

> Have you looked at the script?  
> What does the first line say?  
> What language is it in?  
> Where is your ruby executable?
> 
> Jena Jena said the following on 03/07/2007 03:44 PM:
> 
> > Here’s their document/instructions:
> > 
> > I’m close, I just know it, but I cannot get this to work.
> > 
> > I have logged in and logged out a million times, and googled, and tried  
> > everything I can to get help.
> > 
> > Any advice would be appreciated.
> > 
> > Thank you!
> 
> –  
> Men fear thought as they fear nothing else on earth, more than ruin,  
> more  
> even than death. . . . Thought is subversive and revolutionary,  
> destructive  
> and terrible, thought is merciless to privilege, established  
> institutions,  
> and comfortable habit. Thought looks into the pit of hell and is not  
> afraid.  
> Thought is great and swift and free, the light of the world, and the  
> chief  
> glory of man.  
> – Bertrand Russell

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/4 "2007-03-07T22:23:07Z")

</div>

Hi Jena,

Try running the script with the word ‘ruby’ in front of it. If you do  
not have Ruby installed, well then I am afraid you have to ask again.

> ruby …/script/setup\_database production

Regards,  
Erik.

Jena Jena wrote:

> terminal, yes?
> 
> > Where is your ruby executable?
> > 
> > > Any advice would be appreciated.  
> > > institutions,  
> > > and comfortable habit. Thought looks into the pit of hell and is not  
> > > afraid.  
> > > Thought is great and swift and free, the light of the world, and the  
> > > chief  
> > > glory of man.  
> > > – Bertrand Russell

–  
Erik van Oosten

> **[Day to day stuff](http://day-to-day-stuff.blogspot.com/)**
>
> Experiences from a hard core JVM programmer. Likes to keep things simple.

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/5 "2007-03-07T22:24:07Z")

</div>

Jena Jena said the following on 03/07/2007 04:00 PM:

> Hi!
> 
> The first line says: #!/usr/bin/env ruby  
> ^^^^  
> Hint --------------------|

> I have no idea what language it is in. I’m not a programmer and I’m just  
> trying to teach myself this stuff.
> 
> I also don’t know where my ruby is executable.

Do you know what operating system you’re running under?

Hint:

```
   try running "/usr/bin/env ruby"

```

> If I could figure that out, I’d know how to access the script from  
> terminal, yes?

Yes.

> Am I even on the right track?

No.

I’m not trying to be obscure, I’m trying to get you to solve your  
problem  
instead of calling for help at every hurdle and blindly following  
instructions and learning nothing.

I suspect that your are going to have to learn a modicum of, if not  
programming in the sense of “C++”, then basic command line scripting and  
bit  
about Ruby and some background about how Rails works.

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/6 "2007-03-07T22:24:32Z")

</div>

Ruby is totally installed - it comes with the package…

I’ll try this now…

Thanks!

Erik van Oosten wrote:

> Hi Jena,
> 
> Try running the script with the word ‘ruby’ in front of it. If you do  
> not have Ruby installed, well then I am afraid you have to ask again.
> 
> > ruby …/script/setup\_database production
> 
> Regards,  
> Erik.
> 
> Jena Jena wrote:
> 
> > terminal, yes?
> > 
> > > Where is your ruby executable?
> > > 
> > > > Any advice would be appreciated.  
> > > > institutions,  
> > > > and comfortable habit. Thought looks into the pit of hell and is not  
> > > > afraid.  
> > > > Thought is great and swift and free, the light of the world, and the  
> > > > chief  
> > > > glory of man.  
> > > > – Bertrand Russell
> 
> –  
> Erik van Oosten  
> [http://day-to-day-stuff.blogspot.com/](http://day-to-day-stuff.blogspot.com/)

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/7 "2007-03-07T22:26:56Z")

</div>

Nope. No go.

I give up. It’s in there someplace, but I can’t seem to figure out how  
to target it.

Thanks for the help!

-Jena

Jena Jena wrote:

> Ruby is totally installed - it comes with the package…
> 
> I’ll try this now…
> 
> Thanks!
> 
> Erik van Oosten wrote:
> 
> > Hi Jena,
> > 
> > Try running the script with the word ‘ruby’ in front of it. If you do  
> > not have Ruby installed, well then I am afraid you have to ask again.
> > 
> > > ruby …/script/setup\_database production
> > 
> > Regards,  
> > Erik.
> > 
> > Jena Jena wrote:
> > 
> > > terminal, yes?
> > > 
> > > > Where is your ruby executable?
> > > > 
> > > > > Any advice would be appreciated.  
> > > > > institutions,  
> > > > > and comfortable habit. Thought looks into the pit of hell and is not  
> > > > > afraid.  
> > > > > Thought is great and swift and free, the light of the world, and the  
> > > > > chief  
> > > > > glory of man.  
> > > > > – Bertrand Russell
> > 
> > –  
> > Erik van Oosten  
> > [http://day-to-day-stuff.blogspot.com/](http://day-to-day-stuff.blogspot.com/)

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [April 14, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/8 "2007-04-14T20:22:24Z")

</div>

Jena Jena wrote:

> I missed a step in my inital setup.
> 
> I’m an idiot. My paths were all wrong.
> 
> It’s ok now, and MT were, in the end, helpful in helping me.
> 
> Thanks so much!
> 
> -Jena

Would you be prepared to share the solution? I’m currently wrestling  
with a similar problem. (i.e. Attempting to install Radiant in my MT  
container)

The answer is probably blatantly obvious; but I’ve been looking for so  
long now it could be right under my nose and I’d miss it!

To cut a long story short, when I run ‘setup\_database’ from the root of  
the Radiant directory using:

```
                    ruby script/setup_database production

```

The database is not populated. (I’ll spare you the output from PuTTY,  
for now).

---

<div class="post-metadata">

**Author:** ![jena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jena](https://www.ruby-forum.com/u/jena)\
**Post date:** [March 7, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/media-temple-setup/88063/9 "2007-03-07T22:38:09Z")

</div>

I missed a step in my inital setup.

I’m an idiot. My paths were all wrong.

It’s ok now, and MT were, in the end, helpful in helping me.

Thanks so much!

-Jena

Jena Jena wrote:

> Nope. No go.
> 
> I give up. It’s in there someplace, but I can’t seem to figure out how  
> to target it.
> 
> Thanks for the help!
> 
> -Jena
> 
> Jena Jena wrote:
> 
> > Ruby is totally installed - it comes with the package…
> > 
> > I’ll try this now…
> > 
> > Thanks!
> > 
> > Erik van Oosten wrote:
> > 
> > > Hi Jena,
> > > 
> > > Try running the script with the word ‘ruby’ in front of it. If you do  
> > > not have Ruby installed, well then I am afraid you have to ask again.
> > > 
> > > > ruby …/script/setup\_database production
> > > 
> > > Regards,  
> > > Erik.
> > > 
> > > Jena Jena wrote:
> > > 
> > > > terminal, yes?
> > > > 
> > > > > Where is your ruby executable?
> > > > > 
> > > > > > Any advice would be appreciated.  
> > > > > > institutions,  
> > > > > > and comfortable habit. Thought looks into the pit of hell and is not  
> > > > > > afraid.  
> > > > > > Thought is great and swift and free, the light of the world, and the  
> > > > > > chief  
> > > > > > glory of man.  
> > > > > > – Bertrand Russell
> > > 
> > > –  
> > > Erik van Oosten  
> > > [http://day-to-day-stuff.blogspot.com/](http://day-to-day-stuff.blogspot.com/)
