This forum is no longer active. Please post your questions to our new community site

Beta 3 released: Rails 2.0, Apache and phpMyAdmin

Subscribe to Beta 3 released: Rails 2.0, Apache and phpMyAdmin 9 post(s), 3 voice(s)

Avatar Manuel 71 post(s)

We are glad to to present you our new version of RubyStack with the following features:

  • Updated to Rails 2.0.1
  • Includes Apache 2.0.61, PHP 5.2.5 and phpMyAdmin 2.11.0
  • Includes mongrel_service gem and its dependencies.

We hope you like the new version and let us know any suggestions you can have for future releases.


Avatar Subash Manickam 4 post(s)

Nice to hear it.
I have downloaded the Bitnami Ruby stack on Monday. So how can I update my Ruby stack, since the rails 2.0.1 included in the latest version. Is there any upgrade script in the folder?



Avatar Manuel 71 post(s)

Hi Subash,

Upgrading RubyStack is an easy task, it is just a matter of installing and copying some files. But upgrading your application to support Rails 2 is a bit harder, I’ll explain how to do both for a very simple Rails app.

Upgrading RubyStack

Install RubyStack in another directory, from now we are going to assume that you have the following directories:

C:\Program Files\BitNami RubyStack <- old version of RubyStack
C:\Program Files\BitNami RubyStack beta3 <- new version of RubyStack

Copy your application to the new RubyStack location

COPY "C:\Program Files\BitNami RubyStack\projects\rubystack" "C:\Program Files\BitNami RubyStack beta3\projects\rubystack-new"

Substitute your old config\database.yml for the new one:

COPY "C:\Program Files\BitNami RubyStack beta3\projects\rubystack\config\database.yml" "C:\Program Files\BitNami RubyStack beta3\projects\rubystack-new\config\database.yml"

Now your application will use the new Rails environment shipped with RubyStack beta3. Yo can now uninstall the previous versions of RubyStack if you want.

Updating your application to support Rails 2.0

First of all, You’ll have to indicate your application that it has to use Rails 2.0. So, edit C:\Program Files\BitNami RubyStack beta3\projects\rubystack\config\environment.rb and substitute this:

RAILS_GEM_VERSION = '1.8.6' unless defined? RAILS_GEM_VERSION

for this

RAILS_GEM_VERSION = '2.0.1' unless defined? RAILS_GEM_VERSION

Rails 2.0 requires a secret phrase to use for encrypting cookies, we will have to set one. So, also in C:\Program Files\BitNami RubyStack beta3\projects\rubystack\config\environment.rb, substitute this: do |config|

for this do |config|
 config.action_controller.session = {
   :session_key => '_rubystack_session',
   :secret      => 'super-extra-long secret password that knowbody knows and will encrypt the cookie'

If you use the paginate method (you probably do) you will have to install its plugin, as long as Rails 2.0 does not include it. From an “Use Ruby” console do:

cd projects\rubystack-new
ruby script/plugin install svn://

And finally you should be able to run your migrations and launch the server:

rake db:migrate
ruby script\server

Now you can cross your fingers and point your browser to http://localhost:3000/ to see what happen. Keep in mind that some methods or plugins that you use in your application can be Rails 2.0 incompatible, so may you will have more work to do.

We hope this helped :)

Avatar Subash Manickam 4 post(s)

Thanks for your steps, Manuel.

Avatar sapsford 3 post(s)

I am trying to install rubystack. It stops at the the end of copying all the files, at the point of trying to run mysql, I have disabled my firewall (ZoneAlarm), my antivirus (iolo) and spyware (adware). I have also disabled internet access, with no avail so 5 installations later I investigated the directory folders to see what might be the problem. In servceinstall.bat and servicerun.bat there is reference to c:\program files\bitnami rubystack\apache tomcat and c:\program files\bitnami rubystack\openoffice both of which do not exsist. Apache2 is present. When both of these files are run to install and start the service, mysqld does not appear as a running process.

Any ideas where else I might look?


Avatar Manuel 71 post(s)

Hi sapsford,

If MySQL service does not start it is usually a permissions issue. Are you running Vista? Did you get any questions from Windows Vista during the installation about MySQL/Apache? How did you disabled Internet access?

The references to Tomcat/Open Office are ok to be there, they are simply ignored in the case of the RubyStack.

You can also mail us ( a copy of the installation log, located at:

C:\Documents and Settings\your-user-name\Local Settings\Temp\bitrock_installer_*.log


Avatar sapsford 3 post(s)

Thanks for your help.
I am running XP. I disabled internet access by unplugging the router.
I downloaded beta 4 with the same problem. However this time I started MySQLd from a console with no problem, I then went on to re install bitnami to another directory, with MySQL on port 3300 and this also had no problems SUCCESS! The sample app also is ok.
Now I have the problem what to do with the first install ?just delete it ? does it change the registry ?should I shut down MySQL port 3306 ?are there any other things I should do.
I have e-mailed you the original log and the second successful install log.

Avatar Manuel 71 post(s)

Hi sapsford,

It seems that there are problems binding port 3306. Is Windows XP firewall enabled? Anyway, it is ok to make MySQL listen on another port.

Now I have the problem what to do with the first install ?

  • Shut down MySQL 3306 if there is any, you can do that from services.msc.
  • Delete useless MySQL services, but make sure you do not delete the MySQL service of the latest RubyStack installation. They are named like rubystackMySQL, rubystackMySQL2, rubystackMySQL3 and so on. Remove all but the latest one. To delete a service you can do:

    sc delete rubystackMySQL

  • Remove the files.

No registry entries are generated. If you have any doubt, problem or suggestion just post again and we will be glad to help you.


Avatar sapsford 3 post(s)

Thanks for all your help.