I found these websites truly helpful for me in learning ROR, from installing the apache-server to having every essential component of ROR. By the way, I'm currently learning ROR running on Ubuntu Linux.
Check out these sites:
Installing the LAMP-server on Ubuntu Linux
Installing Ruby on Rails and a few more configurations
Installing some apache mods
In Ubuntu Linux, I encountered a problem when I typed "script/console" in the terminal, took me a few days to search for the answer. The solution was I just had to install the shell irb. :D Below here is the solution.
sudo apt-get install irb