" />
« octobre 2007 | Main | septembre 2008 »
Ruby on Rails - WORKING This is how I got Ruby on Rails (RoR) working on my Plesk machine. I didn't find any major problems with Plesk's implementation, although it took me about 6 hours of trial-and-error to get it working right. SWSoft - you could seriously use some documentation for each Operating System you support.
First thing's first: In your Plesk control panel, make sure that you have your server updated with Ruby On Rails is installed. To do so, go to Server > Updater and enable "Ruby on Rails Support."
After this, go to your domain, and enable FastCGI, which will allow your site to use RoR.
Change to your httpdocs directory:
Code:
Create a basic rails application. To do so, use this command:
Code:
Remember to replace {railsapp} with the name of your application.
Change the file ownership to the domains user/group:
Code:
Change the permissions on the sessions directory:
Code:
Note: Someone let me know if this is a bad idea ... I don't think it is, but I'm not sure. My system had problems writing to the sessions folder unless I chmod'd 777.
Change directory to your new application and edit your .htaccess file in the public/ directory:
Code:
On line 2, change:
Code:
To:
Code:
On line 32, change:
Code:
To:
Code:
Test your installation. Go to http://www.{domainname.com}/{railsapp}/public/
You should see the standard "Welcome Aboard" Rails index page.