Ruby Rails Apache Mongrel
Open windows exporer and copy file
InstantRails-2.0-win/mysql/bin/libmySQL.dll to InstantRails-2.0-win/ruby/bin directory
Locate the term "MD5.new" and replace it with "MD5.hexdigest"
Type "Ctrl C" and kill mongrel in the command window.
Close the command window.
Go to InstantRails manager and restart Typo.
The above will fix a bug in version 2.0. If your version is higher than 2.0, the bug is possibly not there anymore.
Open a browser and go to URL
create admin login at that page, configure the site and post an article.
Open another browser (or tab) and read the article from
See what you get if you type the URL as
Points to note:
-You don't need mongrel if you want real time world deployment;
you need Apache. Mongrel runs in port 3001 or 3002
(look in instantrails.ini file or the mongrel command window).
If you open a browser and type
https://localhost:3002 Mongrel will respond.
https://localhost/ Apache will respond. The Apache default port is 80.
-To configure Apache you basically edit the httpd.conf file. Instructions are given in the same file.
You can create and test your site with mongrel and deploy it using apache - simply change the destination folder to "www".
-mysql is a database server. To access the data server you need a username and password, usually an administrative one. After accessing the server you also need to access specific databases in that server, since different people can create databases in the same server. For this, you can create more usernames.
We will learn to program in Ruby and then come back to MySQL and Rails and how to create larger websites.
Locate the file "fxri.rbw" in .../ruby/bin directory. Right click on it and see which program will open that file. If "unknown" set it to open with "rubyw.exe".
Click on fxri.rbw and open the Ruby Interactive Shell. It will load many ruby classes.. so it will be slooooooow...
Go to ruby-page 3 ... Back to ruby-page 1 ...